foreach ($pages as $page) { $cat_page_sort_array[$cat][$page] = "null"; } } $sort_array = var_export($cat_page_sort_array, true); if (true != mo_file_put_contents(SORT_CAT_PAGE, "<?php if(!defined('IS_CMS')) die();\n\$cat_page_sort_array = " . $sort_array . ";\n?>")) { $message .= returnMessage(false, "Achtung kann SortCatPage nicht Schreiben"); } } require_once BASE_DIR_CMS . 'idna_convert.class.php'; $Punycode = new idna_convert(); require_once BASE_DIR_CMS . "CatPageClass.php"; $CatPage = new CatPageClass(); $GALLERY_CONF = new Properties(BASE_DIR_CMS . CONF_DIR_NAME . "/gallery.conf.php"); $USER_SYNTAX = new Properties(BASE_DIR_CMS . CONF_DIR_NAME . "/syntax.conf.php"); define("ALLOWED_SPECIALCHARS_REGEX", $specialchars->getSpecialCharsRegex()); # hier das tabs array $array_tabs = array("home", "catpage", "files", "gallery", "config", "admin", "plugins", "template"); if ($_SESSION['username'] == $loginpassword->get("username")) { $array_tabs = $ADMIN_CONF->get("tabs"); define("ROOT", false); } else { define("ROOT", true); } # Plugin-Tab nur anzeigen wenn plugin Ordner mit mind. einem plugin vorhanden ist /* if (count(getDirAsArray(PLUGIN_DIR_REL, "dir")) < 1 ) { foreach($array_tabs as $key => $value) { if($value == "plugins") { unset($array_tabs[$key]); break; }