Esempio n. 1
0
// include_once the language file
if (!isset($manager_language)) {
    $manager_language = "english";
    // if not set, get the english language file.
}
$_lang = array();
include_once "includes/lang/english.inc.php";
$length_eng_lang = count($_lang);
if ($manager_language != "english") {
    include_once "includes/lang/" . $manager_language . ".inc.php";
}
// include_once the error handler
include_once "includes/error.class.inc.php";
$e = new errorHandler();
// first we check to see if this is a frameset request
if (!isset($_POST['a']) && !isset($_GET['a']) && $e->getError() == 0) {
    // this looks to be a top-level frameset request, so let's serve up a frameset
    include_once "frames/1.php";
    exit;
}
// retrieve the action directive form the request
if (isset($_GET['a']) && isset($_POST['a'])) {
    $e->setError(100);
    $e->dumpError();
    // set $e to a corresponding errorcode
    // we know that if an error occurs here, something's wrong,
    // so we dump the error, thereby stopping the script.
} else {
    $action = $_REQUEST['a'];
}
// now we decide what to do according to the action request.
Esempio n. 2
0
    include_once "media/style/" . $manager_theme . "/style.php";
}
// check if user is allowed to access manager interface
if (isset($allow_manager_access) && $allow_manager_access == 0) {
    include_once "manager.lockout.inc.php";
}
// include_once the error handler
include_once "error.class.inc.php";
$e = new errorHandler();
// Initialize System Alert Message Queque
if (!isset($_SESSION['SystemAlertMsgQueque'])) {
    $_SESSION['SystemAlertMsgQueque'] = array();
}
$SystemAlertMsgQueque =& $_SESSION['SystemAlertMsgQueque'];
// first we check to see if this is a frameset request
if (!isset($_POST['a']) && !isset($_GET['a']) && $e->getError() == 0 && !isset($_POST['updateMsgCount'])) {
    // this looks to be a top-level frameset request, so let's serve up a frameset
    include_once "frames/1.php";
    exit;
}
// OK, let's retrieve the action directive from the request
if (isset($_GET['a']) && isset($_POST['a'])) {
    $e->setError(100);
    $e->dumpError();
    // set $e to a corresponding errorcode
    // we know that if an error occurs here, something's wrong,
    // so we dump the error, thereby stopping the script.
} else {
    $action = (int) $_REQUEST['a'];
}
if (isset($_POST['updateMsgCount']) && $modx->hasPermission('messages')) {