예제 #1
0
파일: index.php 프로젝트: Vatia13/funtime
    include 'export.php';
}
if ($_GET['logout'] == 1) {
    $user->logout('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']);
}
if (!$user->is_loaded()) {
    if (isset($_POST['uname']) && isset($_POST['pwd'])) {
        if (!$user->login($_POST['uname'], $_POST['pwd'], $_POST['remember'])) {
            $err = 2;
            header('Location: /com/login/');
        } else {
            header('Location: http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']);
        }
    }
} else {
    if (!$user->is_active() and $_GET['code'] == '') {
        $err = 1;
    }
}
@(include $theme . '.model.php');
if ($component == '') {
    $com_path = 'frontpage';
} else {
    $com_path = $component;
}
if ($section == '') {
    $sec_path = 'default';
} else {
    $sec_path = $section;
}
$contents_view = $theme . 'component/' . $com_path . '/' . $sec_path . '.php';
예제 #2
0
파일: index.php 프로젝트: Vatia13/funtime
    setcookie('showOrHide', 0);
}
if ($_GET['logout'] == 1) {
    $user->logout('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']);
}
if (!$user->is_loaded()) {
    if (isset($_POST['uname']) && isset($_POST['pwd'])) {
        if (!$user->login($_POST['uname'], $_POST['pwd'], $_POST['remember'])) {
            $err = 2;
        } else {
            $LOG->saveLog($user->get_property('userID'), 'Вход в систему');
            header('Location: http://' . $_SERVER['HTTP_HOST'] . $_SERVER['PHP_SELF']);
        }
    }
} else {
    if (!$user->is_active()) {
        $err = 1;
    }
}
if ($component == '') {
    $com_path = 'frontpage';
} else {
    $com_path = $component;
}
if ($section == '') {
    $sec_path = 'default';
} else {
    $sec_path = $section;
}
$contents_view = $theme_admin . 'component/' . $com_path . '/' . $sec_path . '.php';
if (!file_exists($contents_view)) {