本文整理汇总了PHP中CmsDev\Security\loginIntent::checkAction方法的典型用法代码示例。如果您正苦于以下问题:PHP loginIntent::checkAction方法的具体用法?PHP loginIntent::checkAction怎么用?PHP loginIntent::checkAction使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CmsDev\Security\loginIntent
的用法示例。
在下文中一共展示了loginIntent::checkAction方法的1个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: render
public static function render()
{
$SectionValues = \CmsDev\Content\Section::get();
$Template = $SectionValues->Template;
if ($Template === '') {
$Template = 'home';
}
/* ------------------------------------------------------------------------------- */
/* ------------------------- LOAD SEARCH ENGINE -------------------------------- */
/* ------------------------------------------------------------------------------- */
if (\SKTURL_Here == 'Google_Search') {
$Template = 'System/Google_Search';
$LoadTemplate = \SKTPATH_TemplateSite . 'SKT_Theme_Pages/System/Google_Search.php';
}
/* ------------------------------------------------------------------------------- */
/* ------------------------- LOGIN AS ADMINISTRATOR ---------------------------- */
/* ------------------------------------------------------------------------------- */
if (\SKTURL_Here === 'admin' or \SKTURL_Here === 'admin?invalid-admin' or \SKTURL_Here === 'admin') {
if (isset($_POST['SKT_AdminName']) && isset($_POST['SKT_AdminPassword'])) {
$checkAction = \CmsDev\Security\loginIntent::checkAction('Admin');
}
$Template = 'System/admin';
}
if (isset($_GET['invalid-admin'])) {
$MessageBox = SKT_INFO\Asistance::get();
$MessageBox->TipError(\SKT_ADMIN_User_Invalid, true);
$Template = 'System/admin';
}
if (\THIS_URL_REAL === 'CloseAdmin') {
$checkAction = \CmsDev\Security\loginIntent::checkAction('close');
exit;
}
/* ------------------------------------------------------------------------------- */
/* ------------------------- USERS, LOGIN, REGISTER, CONNECT -------------------- */
/* ------------------------------------------------------------------------------- */
if (\SKTURL_Here === 'UserProfile') {
$Template = 'System/Profile';
}
if (\SKTURL_Here === 'UserRegistration') {
$Template = 'System/NewUser';
}
if (\SKTURL_Here === 'PasswordRecovery') {
$Template = 'System/PasswordRecovery';
}
if (\SKTURL_Here === 'UserLogin' || \THIS_URL_REAL == 'UserLogin?invalid-user') {
$Template = 'System/user';
}
if (\SKTURL_Here === 'ValidateUser') {
$Template = 'System/ValidateUser';
}
if (\SKTURL_Here === 'UserLogout') {
$checkAction = \CmsDev\Security\loginIntent::checkAction('close');
exit;
}
if (\SKTURL_Here === 'index.php' || \THIS_URL_REAL === '?logout') {
\CmsDev\Header\refresh::refreshNow(\SERVER_DIR);
exit;
}
if (\THIS_URL_REAL === 'login_with_facebook') {
\CmsDev\Header\refresh::refreshNow(\SERVER_DIR . '?login_with_facebook');
exit;
}
if (isset($_POST['SKT_UserName']) && isset($_POST['SKT_Password'])) {
\CmsDev\Security\loginIntent::checkAction('login');
}
if (isset($_GET['invalid-user'])) {
$MessageBox = SKT_INFO\Asistance::get();
$MessageBox->TipError(\SKT_ADMIN_User_Invalid, true);
}
if (defined("error")) {
if (\error == 'error500') {
$Template = 'System/500';
} elseif (\error == 'error404') {
$Template = 'System/404';
} elseif (\error == 'error403') {
$Template = 'System/403';
}
}
if (isset($_GET['usr'])) {
$Template = 'System/Company';
}
if (isset($_GET['empresas'])) {
$Template = 'Empresas';
}
if (isset($_GET['Detail'])) {
$Template = 'System/Detail';
}
if (isset($_GET['Type']) && $_GET['Type'] == 'Search') {
$Template = 'System/Search';
$LoadTemplate = \SKTPATH_TemplateSite . 'SKT_Theme_Pages/System/Search.php';
}
/* ------------------------------------------------------------------------------- */
/* ------------------------- LOAD DYNAMIC SECTION ------------------------------ */
/* ------------------------------------------------------------------------------- */
if (!isset($_GET['SKTGoTo']) && !isset($_GET['SKTFiles']) && !isset($_GET['SKTDir']) && !isset($_GET['SKTFiles']) && !isset($_GET['SKTFSys'])) {
if (\is_file(\SKTPATH_TemplateSite . 'SKT_Theme_Pages/' . $Template . '.php')) {
include \SKTPATH_TemplateSite . 'SKT_Theme_Pages/' . $Template . '.php';
} else {
echo \SKTPATH_TemplateSite . 'SKT_Theme_Pages/' . $Template . '.php';
include \SKTPATH_TemplateSite . 'SKT_Theme_Pages/System/500.php';
//.........这里部分代码省略.........