
| Summary by Month | ||||||||||
|---|---|---|---|---|---|---|---|---|---|---|
| Month | Daily Avg | Monthly Totals | ||||||||
| Hits | Files | Pages | Visits | Sites | KBytes | Visits | Pages | Files | Hits | |
| Sep 2008 | 7027 | 4558 | 679 | 263 | 271 | 16313 | 263 | 679 | 4558 | print_menu($id); $gCacher->write(LANGUAGE."TopMenuIndex", $menu); } $gDirSmarty->assign('menu', $menu); /** categories box formation **/ $num_subcategories = $config->get('subcats_display') ? $config->get('subcats_display') : 0; if(!($categories = $gCacher->get("CategoriesByParent_".$id, 86400, true))) { $categories = $Category->getAllByParent($id, $num_subcategories); $gCacher->write("CategoriesByParent_".$id,$categories); } // Optimize if(!empty($categories)) { if(!($cats = $gCacher->get("PrintCategories_".$id, 86400, false))) { $categories = $gDirLayout->print_categories($categories, $config->get('num_categories_cols'), $num_subcategories); $gCacher->write("PrintCategories_".$id, $categories); } else { $categories = $cats; unset($cats); } } else { $categories = ''; } $gDirSmarty->assign_by_ref('categories', $categories); /** gets number of links for this category for navigation **/ $gDirSmarty->assign('total_links', $category['num_links']); /** get links for this category **/ $featured_top = ($config->get('order_featured') && $config->get('featured_links')) ? TRUE : FALSE; $sponsored_top = ($config->get('sponsored_top') && $config->get('sponsored_links')) ? TRUE : FALSE; $links = $Category->getLinks($id, $start, $config->get('num_index_links'), $featured_top, $sponsored_top, $gDirEditor['id']); $p = ''; if($category['id'] != '0') { $p = $category['path'].'/'; } $c = count($links); for($i=0; $i < $c; $i++) { $links[$i]['path'] = $p; } $gDirSmarty->assign_by_ref('links', $links); if($config->get('mod_rewrite')) { $t = empty($category['path']) ? "" : "/"; $url = $config->get('base').$config->get('dir').$category['path'].$t.'index%1.html'; } else { $url = $config->get('base').$config->get('dir').'index.php?category='.$category['id']; } $gDirSmarty->assign('url', $url); /** get related categories **/ if ($config->get('related')) { $related_categories = $Category->getRelated($id); $related_categories = $related_categories ? $gDirLayout->print_categories($related_categories) : ''; $gDirSmarty->assign_by_ref('related_categories', $related_categories); } /** get neighbour categories **/ if ($config->get('neighbour')) { $neighbour_categories = $Category->getNeighbours($id, $category['neighbour']); $neighbour_categories = $neighbour_categories ? $gDirLayout->print_categories($neighbour_categories) : ''; $gDirSmarty->assign_by_ref('neighbour_categories', $neighbour_categories); } /** number of links for current category and subcategories **/ $gDirSmarty->assign('num_links', $category['num_all_links']); /** number of subcategories for current category **/ $num_categories = $Category->getNumSubcategories($id); $gDirSmarty->assign_by_ref('num_categories', $num_categories); } // if unique template _not_ exists, then reset to default if(!file_exists($gDirSmarty->template_dir.$render)) { $render = "index.tpl"; } $gDirSmarty->display($render, $cache_id); |