예제 #1
0
        $root .= "../";
        $level += 1;
    }
    if (file_exists($root . '/framework/class.secure.php')) {
        include $root . '/framework/class.secure.php';
    } else {
        trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
    }
}
// this one is only used for the frontend!
if (!FRONTEND_LOGIN) {
    // no frontend login, no preferences
    if (INTRO_PAGE) {
        die(header('Location: ' . CAT_URL . PAGES_DIRECTORY . '/index.php'));
    } else {
        die(header('Location: ' . CAT_URL . '/index.php'));
    }
}
// check if user is authenticated
if (CAT_Users::getInstance()->is_authenticated() === false) {
    die(header('Location: ' . CAT_URL . '/account/login.php'));
}
CAT_Helper_Page::getVirtualPage('Preferences');
/**
 *	Set the page content include file
 */
define('PAGE_CONTENT', CAT_PATH . '/account/preferences_form.php');
/**
 *	Include the index (wrapper) file
 */
require CAT_PATH . '/index.php';
예제 #2
0
    $root = "../";
    $level = 1;
    while ($level < 10 && !file_exists($root . '/framework/class.secure.php')) {
        $root .= "../";
        $level += 1;
    }
    if (file_exists($root . '/framework/class.secure.php')) {
        include $root . '/framework/class.secure.php';
    } else {
        trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
    }
}
$val = CAT_Helper_Validate::getInstance();
$user = CAT_Users::getInstance();
$id = $user->get_user_id();
// this one is only used for the frontend!
if (!FRONTEND_LOGIN || !FRONTEND_SIGNUP) {
    // no frontend login, no sign up
    if (INTRO_PAGE) {
        die(header('Location: ' . CAT_URL . PAGES_DIRECTORY . '/index.php'));
    } else {
        die(header('Location: ' . CAT_URL . '/index.php'));
    }
}
CAT_Helper_Page::getVirtualPage('Sign-up');
CAT_Helper_Page::addCSS(CAT_URL . '/account/css/preferences.css');
CAT_Registry::register('PAGE_CONTENT', CAT_PATH . '/account/signup_form.php', true);
// Set auto authentication to false
$auto_auth = false;
// Include the index (wrapper) file
require CAT_PATH . '/index.php';
예제 #3
0
 *
 */
if (defined('CAT_PATH')) {
    include CAT_PATH . '/framework/class.secure.php';
} else {
    $root = "../";
    $level = 1;
    while ($level < 10 && !file_exists($root . '/framework/class.secure.php')) {
        $root .= "../";
        $level += 1;
    }
    if (file_exists($root . '/framework/class.secure.php')) {
        include $root . '/framework/class.secure.php';
    } else {
        trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
    }
}
// this one is only used for the frontend!
if (!FRONTEND_LOGIN) {
    // no frontend login, no preferences
    if (INTRO_PAGE) {
        die(header('Location: ' . CAT_URL . PAGES_DIRECTORY . '/index.php'));
    } else {
        die(header('Location: ' . CAT_URL . '/index.php'));
    }
}
CAT_Helper_Page::getVirtualPage('Please login');
// Set the page content include file
define('PAGE_CONTENT', CAT_PATH . '/account/login_form.php');
// Include the index (wrapper) file
require CAT_PATH . '/index.php';
예제 #4
0
if (defined('CAT_PATH')) {
    include CAT_PATH . '/framework/class.secure.php';
} else {
    $root = "../";
    $level = 1;
    while ($level < 10 && !file_exists($root . '/framework/class.secure.php')) {
        $root .= "../";
        $level += 1;
    }
    if (file_exists($root . '/framework/class.secure.php')) {
        include $root . '/framework/class.secure.php';
    } else {
        trigger_error(sprintf("[ <b>%s</b> ] Can't include class.secure.php!", $_SERVER['SCRIPT_NAME']), E_USER_ERROR);
    }
}
// this one is only used for the frontend!
if (!FRONTEND_LOGIN) {
    // no frontend login, no forgot form
    if (INTRO_PAGE) {
        die(header('Location: ' . CAT_URL . PAGES_DIRECTORY . '/index.php'));
    } else {
        die(header('Location: ' . CAT_URL . '/index.php'));
    }
}
CAT_Helper_Page::getVirtualPage('Forgot');
// Set the page content include file
define('PAGE_CONTENT', CAT_PATH . '/account/forgot_form.php');
// Set auto authentication to false
$auto_auth = false;
// Include the index (wrapper) file
require CAT_PATH . '/index.php';