예제 #1
0
writeLogData("messages", "Index: Setting up the user object");
$jzUSER = new jzUser();
// class handles _SESSION stuff.
writeLogData("messages", "Index: Loading user services");
if (isset($_GET['user']) && isset($_GET['pass'])) {
    $store_cookie = true;
    $prehashed = isset($_REQUEST['pw_hashed']) && $_REQUEST['pw_hashed'] == 'true';
    // Are they ok?
    if ($jzUSER->login($_GET['user'], $_GET['pass'], $store_cookie, $prehashed) === false) {
        //echo "login failed";
        //exit();
    }
} else {
    $prehashed = true;
}
$jzSERVICES->loadUserServices();
if (!isset($_POST['action']) || $_POST['action'] != "login") {
    handleUserInit();
    writeLogData("messages", "Index: Including the icons");
    include_once $include_path . "frontend/icons.lib.php";
    writeLogData("messages", "Index: Creating a new frontend object");
} else {
    handleSetFrontend(false);
}
@(include_once $include_path . "lang/{$jz_language}-simple.php");
@(include_once $include_path . "lang/{$jz_language}-extended.php");
writeLogData("messages", "Index: Testing the frontend file for security and including");
@(include_once $include_path . 'frontend/frontends/' . $my_frontend . '/settings.php');
// Now let's see what the user was doing?
if (isset($_GET['action'])) {
    if ($_GET['action'] == "logout") {