relations = $objectCateg->getCategoryRelations(); $CID = $objectCateg->relations; $CID = $objectCateg->relations[1]['id']; } else { $CID = intval($_GET['CID']); } ?>
getRole(), array('admin','user', 'editor'))) { header('Location: login/login.php'); } ?>

 

:
:
:
:
' . pan_on . ''); } else { echo('' . pan_off . ''); } ?>
:
' . pan_on . ''); } else { echo('' . pan_off . ''); } ?>
:
:
setAllSubCategories($CID); $subCategories = $objectNewCategories->getSubCategories($CID); if (!SHOW_FRONT_PAGE_FOLDER_INFO && $CID == 0 ){ $myTempVar = mysql_query("SELECT * FROM " . db_table_pref . "categories ORDER BY cat_id ASC LIMIT 1") or die(mysql_error()); $assocArray = mysql_fetch_assoc($myTempVar); $CID = $assocArray['cat_id']; } $opCat = mysql_query("SELECT * FROM " . db_table_pref . "categories WHERE cat_id=" . $CID . " ORDER BY cat_id") or die(mysql_error()); $opCatRs = mysql_fetch_assoc($opCat); $foldName = $opCatRs['slug']; $limit = pan_set_stock_limit; $limit_dir = pan_set_stock_limit; $pgGo = @$_GET["pgGo"]; if (!is_numeric(@$_GET["ID"])) { $ID = 0; } else { $ID = $_GET["ID"]; } if (empty($pgGo) or !is_numeric($pgGo)) { $pgGo = 1; } $search = @$_GET["search"]; if (empty($search) || strlen($search) < 3) { $search = ""; } $my_search = mysql_real_escape_string($search); if ($search) { $searchVar = "search=" . $search; $count = mysql_num_rows(mysql_query("SELECT file_id FROM " . db_table_pref . "stock_files where cat_id=" . $CID . " AND file_name LIKE '%" . $search . "%'")); $FoldStat = mysql_fetch_assoc(mysql_query("SELECT SUM(file_size) AS TotalSize FROM " . db_table_pref . "stock_files where cat_id=" . $CID . " AND file_name LIKE '%" . $search . "%'")); $count_total_files = $count; $totalPages = ceil($count / $limit); if ($pgGo > $totalPages) { $pgGo = 1; } $pgStarted = ($pgGo - 1) * $limit; } else { $searchVar = ""; $count1 = $objectNewCategories->getAllSubCategoriesCount(); $count2 = mysql_num_rows(mysql_query("SELECT file_id FROM " . db_table_pref . "stock_files where cat_id=" . $CID . "")); $totalNoOfDirectories = count($subCategories); $subCategories = array_slice($subCategories, ($pgGo-1) * $limit_dir, $limit_dir); $count3 = count($subCategories); $count = $count2 + $totalNoOfDirectories; $FoldStat = $objectNewCategories->getAllSubCategoriesSize(); $count_total_files = $count1; $totalPages = ceil($count / $limit); if ($pgGo > $totalPages) { $pgGo = 1; } $pgStarted = ($pgGo - 1) * $limit; $pgStarted -= $totalNoOfDirectories - $count3; $limit -= $count3; if($pgStarted < 0){ $pgStarted = 0; $limit = 0; } } ?>

' . bytesToSize1024($FoldStat['TotalSize']) . ' Total Files: ' . $count_total_files . ''); ?>

Please wait until the files are downloaded!
0 && $pgStarted >= 0) { $opFile = mysql_query("SELECT * FROM " . db_table_pref . "stock_files WHERE cat_id=" . $CID . " ORDER BY cat_id DESC LIMIT $pgStarted,$limit") or die(mysql_error()); } } if ($objectNewCategories->hasSubCategories($CID)) { if (empty($search)){ foreach ($subCategories as $subCategory) { ?>
folder_image){?>

name); ?>

getCategorySize($subCategory->id))); ?>
25) ? substr($opFileRs['file_name'],0,22).'...' : $opFileRs['file_name']; ?>

No search results found!

'; } elseif (!$objectNewCategories->hasSubCategories($CID)) { echo '

' . pan_folder_empty . '

'; } } ?> 1) { ?>