/acp/inc/config.php konnte nicht gefunden werden. Sie können zunächst versuchen, die Datei über das Webinterface zu erstellen, doch diese Methode funktioniert leider nicht auf allen Webservern. Der einfachste Weg ist es daher, die Datei von Hand zu erstellen.'); } // ****** INCLUDE CORE FUNCTIONS ****** // ************************************ require_once './global.php'; $title = $lang->get('Startseite'); $index_cat = ''; $linkcount = array(); $cat_ids = array(); $cache_cats = array(); $main_cats = array(); $children_cats = array(); // ================================================================ // // Statistiken ermitteln / einlesen // ================================================================ // $pr = $Cache->get('stats-pagerank'); $DirectoryStats = $Cache->get('stats-directory'); $sum_links = $DirectoryStats['TotalLinks']; $sum_cats = $DirectoryStats['TotalCats']; // ****** GET MAIN CATS ****** // *************************** $result = $db->query(" SELECT cat_id, name, image, description, links FROM " . TABLE_PREFIX . "cats WHERE parent_cat_id = 0 AND links > ". (int) $core->options['hide_empty_cats'] ." ORDER BY pos ASC, name ASC "); while ($cache_cats[] = $db->fetch_array($result)); // :FIXME: // Das letzte leere Element im Array löschen // um eine korrekte Berechung zu erreichen array_pop($cache_cats); // ****** GET DIRECT CHILDREN OF MAIN CATS ****** // ********************************************** if ($core->options['show_subcats'] == 1) { if (is_array($cache_cats)) { foreach ($cache_cats as $key => $value) { if ($value) { $main_cats[] = $value['cat_id']; } } } $result = $db->query(" SELECT cat_id, name, description, links, parent_cat_id FROM " . TABLE_PREFIX . "cats WHERE parent_cat_id IN (".implode(',', $main_cats).") ORDER BY pos ASC, name ASC "); while ($children_cats[] = $db->fetch_array($result)); } // ****** DISPLAY MAIN CATS ****** // ******************************* if (is_array($cache_cats)) { $cat_count = count($cache_cats); // Anzahl der Spalten $columns = (int) $core->options['cat_colums']; // Zeilen berechnen $table_rows = ($cat_count % $columns) ? (($cat_count - ($cat_count % $columns)) / $columns + 1) : $cat_count / $columns; for ($i = 0; $i < $table_rows; ++$i) { $index_cat .= "