$message = NULL; #define("ICON_SIZE","24x24"); # 16x16 22x22 24x24 32x32 48x48 #define("ADMIN_ICONS", URL_BASE.ADMIN_DIR_NAME."/gfx/icons/".ICON_SIZE."/"); #define("ADMIN_ICONS_TABS",URL_BASE.ADMIN_DIR_NAME."/gfx/icons/22x22/"); define("ICON_URL", URL_BASE . ADMIN_DIR_NAME . '/gfx/'); define("ICON_URL_SLICE", URL_BASE . ADMIN_DIR_NAME . '/gfx/clear.gif'); require_once BASE_DIR_ADMIN . "default_conf.php"; require_once BASE_DIR_CMS . "Properties.php"; require_once BASE_DIR_CMS . "SpecialChars.php"; $specialchars = new SpecialChars(); $ADMIN_CONF = new Properties(BASE_DIR_ADMIN . CONF_DIR_NAME . "/basic.conf.php"); $CMS_CONF = new Properties(BASE_DIR_CMS . CONF_DIR_NAME . "/main.conf.php"); #$LANGUAGE = new Properties(BASE_DIR_ADMIN."sprachen/language_".$ADMIN_CONF->get("language").".txt"); require_once BASE_DIR_CMS . "Language.php"; $LANGUAGE = new Language(BASE_DIR_ADMIN . LANGUAGE_DIR_NAME . "/language_" . $ADMIN_CONF->get("language") . ".txt"); setTimeLocale($LANGUAGE); $LOGINCONF = new Properties(BASE_DIR_ADMIN . CONF_DIR_NAME . "/logindata.conf.php"); # Achtung die loginpass darf nur mit php Angelegt werden if (is_file(BASE_DIR_ADMIN . CONF_DIR_NAME . "/loginpass.conf.php")) { @chmod(BASE_DIR_ADMIN . CONF_DIR_NAME . "/loginpass.conf.php", 0600); } $loginpassword = new Properties(BASE_DIR_ADMIN . CONF_DIR_NAME . "/loginpass.conf.php"); // Login ueberpruefen $LoginContent = (require_once BASE_DIR_ADMIN . "login.php"); # der user wurde automatisch abgemeldet und hat sich über ajax wieder angemeldet if ($LoginContent === true and isset($_POST['ajaxlogin']) and $_POST['ajaxlogin'] == "true") { ajax_return("success", true, returnMessage(true, getLanguageValue("login_ajax_success")), true, true); } if (!defined('LOGIN')) { define("LOGIN", false); }
function environment() { $html_ret = ""; $status = true; // conf dateien anlegen $conf = makeConfFiles(); if (true === $conf) { $html = array(getLanguageValue("install_environment_conf"), getLanguageValue("yes")); $html_ret .= contend_template($html, true); } else { $html = array(getLanguageValue("install_environment_conf"), getLanguageValue("no")); $html_ret .= contend_template($html, false); $status = false; } // Zeile "PHP-Version" if (version_compare(PHP_VERSION, '5.1.2') >= 0) { $html = array(getLanguageValue("home_phpversion_text"), phpversion()); $html_ret .= contend_template($html, true); } else { $status = false; $html = array(getLanguageValue("home_phpversion_text"), phpversion()); $html_ret .= contend_template($html, false); } // Zeile "Safe Mode" if (ini_get('safe_mode')) { $html = array(getLanguageValue("home_text_safemode") . "<br /><b>" . getLanguageValue("home_error_safe_mode") . "</b>", getLanguageValue("yes")); $html_ret .= contend_template($html, false); } else { $html = array(getLanguageValue("home_text_safemode"), getLanguageValue("no")); $html_ret .= contend_template($html, true); } // Zeile "GDlib installiert" if (!extension_loaded("gd")) { $status = false; $html = array(getLanguageValue("home_text_gd"), getLanguageValue("no")); $html_ret .= contend_template($html, false); } else { $html = array(getLanguageValue("home_text_gd"), getLanguageValue("yes")); $html_ret .= contend_template($html, true); } // Zeile session test $_SESSION["test"] = "test"; #!!!! das muss geprüft werden ob das so geht if (isset($_SESSION["test"]) and $_SESSION["test"] == "test") { $html = array(getLanguageValue("install_environment_session"), getLanguageValue("yes")); $html_ret .= contend_template($html, true); } else { $html = array(getLanguageValue("install_environment_session"), getLanguageValue("no")); $html_ret .= contend_template($html, false); $status = false; } # MULTI_USER if (defined('MULTI_USER') and MULTI_USER) { $mu_string = ""; $rest_time = MULTI_USER_TIME; if ($rest_time >= 86400) { $mu_string .= floor(MULTI_USER_TIME / 86400) . " " . (floor(MULTI_USER_TIME / 86400) > 1 ? getLanguageValue("days") : getLanguageValue("day")) . " "; $rest_time = $rest_time - floor(MULTI_USER_TIME / 86400) * 86400; } if ($rest_time >= 3600) { $mu_string .= floor($rest_time / 3600) . " " . (floor($rest_time / 3600) > 1 ? getLanguageValue("hours") : getLanguageValue("hour")) . " "; $rest_time = $rest_time - floor($rest_time / 3600) * 3600; } if ($rest_time >= 60) { $mu_string .= floor($rest_time / 60) . " " . (floor($rest_time / 60) > 1 ? getLanguageValue("minutes") : getLanguageValue("minute")) . " "; $rest_time = $rest_time - floor($rest_time / 60) * 60; } if ($rest_time > 0) { $mu_string .= $rest_time . " " . ($rest_time > 1 ? getLanguageValue("seconds") : getLanguageValue("second")); } $html = array(getLanguageValue("home_multiuser_mode_text"), $mu_string); $html_ret .= contend_template($html, ""); } else { $html = array(getLanguageValue("home_multiuser_mode_text"), getLanguageValue("no")); $html_ret .= contend_template($html, ""); } # backupsystem if (function_exists('gzopen')) { $html = array(getLanguageValue("home_text_backupsystem"), getLanguageValue("yes")); $html_ret .= contend_template($html, ""); } else { $html = array(getLanguageValue("home_error_backupsystem"), getLanguageValue("no")); $html_ret .= contend_template($html, ""); } // Aktueles Datum if (true === $conf and function_exists('date_default_timezone_get')) { global $CMS_CONF, $LANG; $CMS_CONF = new Properties(BASE_DIR_CMS . CONF_DIR_NAME . '/main.conf.php'); setTimeLocale($LANG); $time_zone = @date_default_timezone_get(); } else { $time_zone = date("T"); } $html = array(getLanguageValue("home_date_text"), date("Y-m-d H.i.s") . " " . $time_zone); $html_ret .= contend_template($html, ""); if ($status) { $html_ret .= '<input type="hidden" name="environment" value="true" />'; } $help = contend_template(installHelp("install_environment_help"), ""); return array($status, $help . $html_ret); }
$_POST = cleanREQUEST($_POST); #------------------------------ # manche Provider sind auf iso eingestelt header('content-type: text/html; charset=' . CHARSET . ''); require_once BASE_DIR_CMS . "SpecialChars.php"; require_once BASE_DIR_CMS . "Properties.php"; $specialchars = new SpecialChars(); $CMS_CONF = new Properties(BASE_DIR_CMS . CONF_DIR_NAME . "/main.conf.php"); $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("URL_BASE",substr($_SERVER['PHP_SELF'],0,strpos($_SERVER['PHP_SELF'],"index.php"))); require_once BASE_DIR_CMS . 'idna_convert.class.php'; $Punycode = new idna_convert(); require_once BASE_DIR_CMS . "Language.php"; $language = new Language(); setTimeLocale($language); $activ_plugins = array(); $deactiv_plugins = array(); $plugin_first = array(); # Vorhandene Plugins finden und in array $activ_plugins und $deactiv_plugins einsetzen # wird für Search und Pluginplatzhaltern verwendet list($activ_plugins, $deactiv_plugins, $plugin_first) = findPlugins(); require_once BASE_DIR_CMS . "Syntax.php"; require_once BASE_DIR_CMS . "Smileys.php"; $syntax = new Syntax(); $smileys = new Smileys(BASE_DIR_CMS . "smileys"); require_once BASE_DIR_CMS . "Plugin.php"; $tmp_layout = $CMS_CONF->get("cmslayout"); if ($CMS_CONF->get("draftmode") == "true" and $CMS_CONF->get("draftlayout") != "false" and getRequestValue('draft') != "true") { $tmp_layout = $CMS_CONF->get("draftlayout"); }