Exemplo n.º 1
0
$_GET = cleanREQUEST($_GET);
$_REQUEST = cleanREQUEST($_REQUEST);
$_POST = cleanREQUEST($_POST);
if (isset($_FILE)) {
    $_FILE = cleanREQUEST($_FILE);
}
$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
Exemplo n.º 2
0
    exit;
}
if (is_file(BASE_DIR_CMS . "DefaultFunc.php")) {
    require_once BASE_DIR_CMS . "DefaultFunc.php";
} else {
    die("Fatal Error " . BASE_DIR_CMS . "DefaultFunc.php Datei existiert nicht");
}
$_GET = cleanREQUEST($_GET);
$_REQUEST = cleanREQUEST($_REQUEST);
$_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();