本文整理匯總了PHP中Authenticate::selectSessionData方法的典型用法代碼示例。如果您正苦於以下問題:PHP Authenticate::selectSessionData方法的具體用法?PHP Authenticate::selectSessionData怎麽用?PHP Authenticate::selectSessionData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在類Authenticate
的用法示例。
在下文中一共展示了Authenticate::selectSessionData方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。
示例1: htmlspecialchars
$view = htmlspecialchars($_GET["view"]);
if ($view == "homeView") {
go_homeforlogedin();
} else {
if ($view == "adminView") {
//include_once 'adminmainpage.php';
if (!$auth->isAdmin($_SESSION["user_id"])) {
//direct user to the admin main page
header("Location:../melnet/admin");
} else {
go_homeforlogedin();
}
} else {
if ($view == "totalView") {
//check if user has acces to total view
if ($auth->isUser1($auth->selectSessionData($_SESSION["user_id"]))) {
//direct user to the total homepage
header("Location:../melnet/total");
} else {
go_homeforlogedin();
}
} else {
if ($view == "ubnkView") {
//ceck if user has acces to view uba
if ($auth->isUser1($auth->selectSessionData($_SESSION["user_id"]))) {
//direct user to the admin main page
header("Location:../melnet/ubnk");
} else {
go_homeforlogedin();
//add error notice
}
示例2: Course
go_homeforlogedin();
} else {
if ($view == "userCourses") {
$course = new Course();
$smarty->assign('courses', $course->displayAllCourse());
$smarty->assign('title', '..::ECE_E-Learning:userCouses');
$smarty->assign('mainContent', $smarty->fetch("userCourses.tpl"));
} else {
if ($view == "userEvaluation") {
$smarty->assign('evalHome', $eval->goHome());
$smarty->assign('mainContent', $smarty->fetch("userEvaluation.tpl"));
$smarty->assign('title', '..::ECE_E-Learning:userCourses');
} else {
if ($view == "adminView") {
//include_once 'adminmainpage.php';
if ($auth->isAdmin($auth->selectSessionData($id))) {
//direct user to the admin main page
header("Location:../usr/admin/?suid=" . $id . "token=" . $token . "&view=enable_disableUser");
} else {
go_homeforlogedin();
}
} else {
go_homeforlogedin();
}
}
}
}
}
}
}
}