Esempio n. 1
0
        if ($where == NULL) {
            $where = " AND `lang`='{$lang}' ";
        } else {
            $where = " AND `lang`='{$lang}' AND ({$where})";
        }
        $data = $this->_model->_webMenu(0, '', NULL, $where);
        return $data;
    }
    public function viewDatetime($time)
    {
        return date('Y-m-d H:i', $time);
    }
}
include_once 'error/admin.php';
$c = new administrator();
$lang = $c->language();
$error = '';
if (isset($_POST['btnLogin'])) {
    $cUser = new controlUsers();
    $user = trim($_POST['username']);
    $pass = $_POST['password'];
    $group = 3;
    $ip = $_SERVER['REMOTE_ADDR'];
    $error = $cUser->login($user, $pass, $ip, $group);
}
//print_r($arrUrl);
//session_destroy();
if (!isset($_SESSION['adminId'])) {
    include_once 'view/admin_login.php';
} else {
    include_once 'view/admin.php';