Example #1
0
$action = "";
$id = "";
$pos = "";
$action = $_GET['action'];
$id = $_GET['id'];
$pos = $_GET['pos'];
// if ($action == "")  $action = $_SESSION['action'];
// if ($pos == "")  $pos = $_SESSION['page'];
$_SESSION['action'] = $action;
$_SESSION['page'] = $pos;
$p = array();
$p['user_id'] = $_SESSION['USERID'];
$a = new IndexController($conn);
$a->lang = $lang;
$a->UserLevel = $UserLevel;
$a->UserID = $UserID;
$a->lang_str = $lang_str;
switch ($action) {
    case "login":
        $a->login();
        //browse($p, $pagesize, $pos)
        break;
    case "verify":
        $vars = $_POST;
        $a->verify($vars['uid'], $vars['upass'], $vars['vcode']);
        break;
    default:
        //echo "startting...";
        $a->login();
        break;
}