本文整理汇总了PHP中CmsDev\Security\loginIntent类的典型用法代码示例。如果您正苦于以下问题:PHP loginIntent类的具体用法?PHP loginIntent怎么用?PHP loginIntent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了loginIntent类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: UserQuery
private static function UserQuery()
{
$SKTDB = SKT_DB::connect();
$USER_EXIST = \CmsDev\Security\loginIntent::action('validateUser');
if ($USER_EXIST === true) {
$user_row = $SKTDB->get_row("SELECT *\r\n FROM users as user, userprofile as profile \r\n WHERE user.md5 = " . \GetSQLValueString($_SESSION['login'], 'text') . " AND profile.IDX = user.id ");
if ($user_row) {
return $user_row;
} else {
return false;
}
} else {
return false;
}
}
示例2: GetDataSet
public function GetDataSet()
{
$SKTDB = SKT_DB::connect();
$USER_EXIST = \CmsDev\Security\loginIntent::action('validateUser');
if ($USER_EXIST === true) {
$user_list = $SKTDB->get_row("SELECT *\r\n FROM users as user join userprofile as profile \r\n ON user.md5 = " . \GetSQLValueString($_SESSION['login'], 'int') . "\r\n WHERE user.id = profile.IDX \r\n ");
if ($user_list) {
$this->user_list = $user_list;
$this->UserOk = true;
} else {
$this->UserOk = false;
$MessageBox = SKT_INFO\Asistance::get();
$MessageBox->TipError(\SKT_ADMIN_User_max_attempts . \SKT_ADMIN_User_max_attempts_TXT, true);
}
} else {
$this->UserOk = false;
$MessageBox = SKT_INFO\Asistance::get();
$MessageBox->TipError(\SKT_ADMIN_User_max_attempts . \SKT_ADMIN_User_max_attempts_TXT, true);
}
}
示例3: session_start
<?php
if (!isset($GLOBALS['SKT'])) {
if (session_id() == '') {
session_start();
}
$SKTAJAX = 'AJAX';
require '../../../Config.php';
require '../../../db.php';
require '../../Core.php';
}
$SKTDB = \CmsDev\sql\db_Skt::connect();
if (\CmsDev\Security\loginIntent::action('validate', 'PlainText', 'Edit') === true) {
$ID = $_POST['ID'];
$content = $SKTDB->get_row("SELECT * FROM " . DB_PREFIX . "content WHERE ID = '{$ID}'");
echo str_replace('[title]', \SKT_ADMIN_EditPlainText, \SKT_ADMIN_AdminWraperOpen);
?>
<form action="" method="post" id="FormEditPlainText">
<div class="skts_content">
<div id="server_response_CreateContentHtml"></div>
<div class="SKTrow row">
<div class="col-md-8 first">
<fieldset>
<label>
<span>Recortes de código, Ejemplos:</span>
<select name="CodeSnippets" id="CodeSnippets">
<option value="">Reemplazará su código!</option>
<option value="YouTube">Video de YouTube</option>
<option value="GoogleMap">Mapa de Google</option>
<option value="Twitter">Twitter</option>
<option value="Facebook">Facebook</option>
示例4: isset
<?php
$SKT_CC = new \CmsDev\CustomControl\LoadControl();
$Company = isset($_GET['usr']) ? $_GET['usr'] : 0;
$SKTDB = \CmsDev\Sql\db_Skt::connect();
$Query = "SELECT *\nFROM users as user join userprofile as profile \nON user.id = profile.IDX\nWHERE user.isactive = '1' AND user.id = " . GetSQLValueString($Company, "int") . "";
$User = $SKTDB->get_row($Query);
echo '<script>' . 'var MapAddress = "' . $User->Address . '";' . 'var MapLat = "' . $User->Lat . '";' . 'var MapLon = "' . $User->Lon . '";' . 'var MapZoom = ' . $User->zoom . ';' . 'var MapCompany = "' . $User->Company . '";' . 'var MapIcon = "' . \SKT_URL_BASE . $User->ClientAuth_picture . '";' . 'var MapPhone = "' . $User->Phone . '";' . 'var MapEmail = "' . $User->email . '";' . '</script>';
$ValidateUser = \CmsDev\Security\loginIntent::action('validate');
$ValidateSelfUser = \CmsDev\Security\loginIntent::action('validate', 'SelfUser', $User->id);
$ValidateAction = isset($_GET['uAction']) ? $_GET['uAction'] : '0';
$DirectoryCompany = dirname(__FILE__) . DS . 'Company' . DS;
$DirectoryUser = dirname(__FILE__) . DS . 'User' . DS;
$CCParams_Products_List = array('id' => $User->id, 'User' => $User);
if ($User->level === 'Publishers') {
?>
<div class="container Company-page">
<div class="row row-wrap">
<div class="alert alert-info" id="SKT_UpdateDataInfo" style="display: none;"></div>
<?php
// var_dump($_SESSION);
// var_dump($_GET);
if ($User) {
if ($ValidateSelfUser === TRUE && $User->ViewHelp != 0) {
require $DirectoryCompany . 'ViewHelpFirstTime.php';
}
if ($ValidateSelfUser === TRUE && $_GET['uAction'] == 'Resumen') {
require $DirectoryCompany . 'Resumen.php';
} elseif ($ValidateSelfUser === TRUE && $_GET['uAction'] == 'Edit') {
require $DirectoryCompany . 'Edit.php';
} elseif ($ValidateSelfUser === TRUE && $_GET['uAction'] == 'Messager') {
示例5: session_start
<?php
if (!isset($GLOBALS['SKT'])) {
if (session_id() == '') {
session_start();
}
$SKTAJAX = 'AJAX';
require '../../../../../../Config.php';
require '../../../../../../db.php';
require '../../../../Core.php';
}
if (\CmsDev\Security\loginIntent::action('validate') === true || isset($_POST['tokenValidate']) && $_POST['tokenValidate'] != '') {
if (isset($_POST['ID'])) {
$Users = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Users\_classes();
$Users->GoUpdateInterests($_POST['ID']);
}
}
示例6: session_start
<?php
if (!isset($GLOBALS['SKT'])) {
if (session_id() == '') {
session_start();
}
$SKTAJAX = 'AJAX';
require '../../../Config.php';
require '../../../db.php';
require '../../Core.php';
}
include_once \SKTPATH_TemplateSite . 'Config.php';
$SKTDB = \CmsDev\sql\db_Skt::connect();
if (\CmsDev\Security\loginIntent::action('validate', 'ViewEditElementsAsList', 'Edit') === true) {
echo \CmsDev\Security\LoadHeader::loadOnFileSystem();
?>
<body style="padding: 0 !important;">
<style media="all" type="text/css">
body { margin: 0 !important; overflow: hidden !important; padding: 0 !important; border:0 none !important}
</style>
<div class="skt SKTNotRemove" id="ListViewElementsSKT">
<form action="" method="post" id="FormLists">
<div class="SKTrow6 bg-2-i padding">
<?php
\CmsDev\CRUD\ViewEditElementsAsList\_ViewList::get();
?>
<input name="InputSelectedListID" id="InputSelectedListID" class="InputSelectedListID" type="hidden" value="0">
<a id="RefreshList" href="javascript:void(0);" class="color-4-i size-4-i"><i class="skt-icon-spin3 color-4-i size-4-i"></i> Recargar esta vista</a>
</div>
</form>
示例7: nav
public function nav($Sections_Menu, $ID = 1, $URLNameParent = '')
{
$this->ID = $ID;
$this->URLNameParent = $URLNameParent;
$this->Sections_Menu = $Sections_Menu;
$ShowHidden = " RecycleBin = '0' AND";
$this->SKTDB = \CmsDev\Sql\db_Skt::connect();
$this->SectionValues = \CmsDev\Content\Section::get();
$this->Language = $this->SectionValues->Language;
$this->LoggedInAdmin = \CmsDev\Security\loginIntent::action('validateAdmin');
if ($this->LoggedInAdmin === true) {
$ShowHidden = "";
}
$result = $this->SKTDB->get_results("SELECT *\r\n FROM " . \DB_PREFIX . "sections\r\n WHERE (" . $ShowHidden . " Language = '" . $this->Language . "' AND SectionType = '1' AND DisplayOnMenu = '" . $this->Sections_Menu['Nav_DisplayMenu'] . "') \r\n OR (" . $ShowHidden . " Language = '" . $this->Language . "' AND SectionType = '1' AND DisplayOnMenu = '4') \r\n ORDER BY SID, Position, Title", ARRAY_A);
//var_dump($result);
//exit();
if ($result) {
$this->menu = array('items' => array(), 'parents' => array());
foreach ($result as $items) {
$this->menu['items'][$items['ID']] = $items;
$this->menu['parents'][$items['SID']][] = $items['ID'];
}
return static::globalNav();
}
}
示例8: 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';
//.........这里部分代码省略.........
示例9: array
?>
">
</div>
<?php
}
if (\CmsDev\Security\loginIntent::action('validateUser') === true) {
$PurchaseRequestsFields = array('Seller' => $item->IDUser, 'Customer' => $_SESSION['UserIDU'], 'PID' => $item->ProductUID, 'Currency' => $item->Currency, 'UnitPrice' => $item->Price, 'OrderDate' => date('Y-m-d'), 'OrderPurchase' => base64_encode(microtime()), 'SellerOpinion' => '', 'CustomerOpinion' => '', 'SellerSemaphore' => '1', 'CustomerSemaphore' => '1', 'Finalized' => '0', 'FinalizedDate' => 'Null', 'ProductType' => 'Product');
$dataProdBlockJSON = json_encode($PurchaseRequestsFields);
$dataProdBlock = CmsDev\skt_Code::Encode($dataProdBlockJSON);
echo '<input name="data" type="hidden" value="' . $dataProdBlock . '">' . '<div class="gap-big"></div><input type="button" id="BtnBuyCheck" value="Confirmar Compra" class="btn btn-primary btn-block">';
}
?>
</form>
<?php
if (\CmsDev\Security\loginIntent::action('validateUser') !== true) {
?>
<div class="gap-large"></div>
<div class="gap-border"></div>
<ul class="dialog-alt-links">
<li>
<a class="popup-text btn btn-primary" href="#login-dialog" data-effect="mfp-zoom-out">Ingresar con mi usuario</a>
</li>
<li>
<a class="btn btn-warning" href="<?php
echo \SKT_URL_BASE;
?>
UserRegistration" target="_self">Aún no soy miembro</a>
</li>
</ul>
<?php
示例10: define
<div class="col-md-6">
<div class="search-area hidden-sm hidden-xs">
<?php
$SKT_CC->Render('Search');
?>
</div>
</div>
<div class="col-md-3">
<ul class="login-register float-right">
<?php
$Markup_Google = new \CmsDev\google\oauth();
$googleUser = $Markup_Google->GoogleUser();
$GoogleLoginLink = $Markup_Google->createAuthUrl;
define('GoogleLoginLink', $GoogleLoginLink);
if (\CmsDev\Security\loginIntent::action('validate', 'UserBoxActions') === true) {
?>
<?php
$UserBoxActions = new \CmsDev\Security\UserBoxActions();
echo "<li>" . $UserBoxActions->Render() . "</li>";
?>
<?php
} else {
?>
<li class="mt10"><a class="popup-text" href="#login-dialog" onclick="javascript:ActivateRightPush();" data-effect="mfp-move-from-top"><i class="fa fa-sign-in"></i>Ingresar</a>
</li>
<li class="mt10"><a href="<?php
echo \SKT_URL_BASE;
?>
UserRegistration" onclick="javascript:ActivateRightPush();"><i class="fa fa-edit"></i>Registrarse</a>
示例11: nav
public static function nav($Sections_Menu, $ID = 1, $URLNameParent = '')
{
$ShowHidden = " RecycleBin = '0' AND";
$SKTDB = \CmsDev\Sql\db_Skt::connect();
$SectionValues = \CmsDev\Content\Section::get();
$Language = $SectionValues->Language;
$LoggedInAdmin = \CmsDev\Security\loginIntent::action('validateAdmin');
if ($LoggedInAdmin === true) {
$ShowHidden = "";
}
$result = $SKTDB->get_results("SELECT ID,Title,Description,URLName,SID,Position,SectionType,RecycleBin,DisplayOnMenu, LinkActive, Link_ID\r\n FROM " . \DB_PREFIX . "sections\r\n WHERE (" . $ShowHidden . " Language = '" . $Language . "' AND SectionType = '1' AND DisplayOnMenu = '" . $Sections_Menu['DisplayMenu'] . "') \r\n OR (" . $ShowHidden . " Language = '" . $Language . "' AND SectionType = '1' AND DisplayOnMenu = '4') \r\n ORDER BY SID, Position, Title", ARRAY_A);
if ($result) {
$menu = array('items' => array(), 'parents' => array());
foreach ($result as $items) {
$menu['items'][$items['ID']] = $items;
$menu['parents'][$items['SID']][] = $items['ID'];
}
return static::globalNav($ID, $menu, $URLNameParent, $Sections_Menu, false);
}
}
示例12: session_start
<?php
if (!isset($GLOBALS['SKT'])) {
if (session_id() == '') {
session_start();
}
$SKTAJAX = 'AJAX';
require '../../../Config.php';
require '../../../db.php';
require '../../Core.php';
}
$SKTDB = \CmsDev\sql\db_Skt::connect();
if (\CmsDev\Security\loginIntent::action('validate') === true && $_POST['ID'] != '') {
$Query_Lists_DELETE = $SKTDB->query("DELETE FROM lists WHERE ID = '{$_POST['ID']}' LIMIT 1");
$Query_Lists_Fields_DELETE = $SKTDB->query("DELETE FROM lists_fields WHERE IDLists = '{$_POST['ID']}' ");
$Query_Lists_Values_DELETE = $SKTDB->query("DELETE FROM lists_values WHERE IDList = '{$_POST['ID']}' ");
}
示例13: session_start
<?php
if (!isset($GLOBALS['SKT'])) {
if (session_id() == '') {
session_start();
}
$SKTAJAX = 'AJAX';
require '../../../Config.php';
require '../../../db.php';
require '../Core.php';
$SKTDB = \CmsDev\sql\db_Skt::connect();
}
use CmsDev\skt_Code as Code;
if (\CmsDev\Security\loginIntent::action('validate', 'FolderRename') === true) {
$DS = DIRECTORY_SEPARATOR;
$find = array('\\/', '\\/', '//', '\\//', '\\', '//', '/');
$replace = array($DS, $DS, $DS, $DS, $DS, $DS, $DS);
//
$folder = Code::Decode($_POST['folder']);
$folderN = Code::Decode($_POST['folderN']);
//
$folder = str_replace($find, $replace, $folder);
$folderN = str_replace($find, $replace, $folderN);
//
@rename($folder, $folderN);
echo "Yes";
}
示例14: session_start
<?php
if (!isset($GLOBALS['SKT'])) {
if (session_id() == '') {
session_start();
}
$SKTAJAX = 'AJAX';
require '../../../Config.php';
require '../../../db.php';
require '../../Core.php';
}
$SKTDB = \CmsDev\sql\db_Skt::connect();
if (\CmsDev\Security\loginIntent::action('validate', 'Product', 'Add') === true) {
$USER = new \CmsDev\Query\UserProfile();
$USER->GetDataSet();
$Section_AutoID = $Products_AutoID = CmsDev\Dataset\Section::new_auto_increment_ID();
$getAutoID = $Section_AutoID . '_' . date('Y-m-d');
$AdminWraperOpen = str_replace('[title]', $CMSText_CreateProduct . ': <em>' . $MetaDataTitle . '</em>.', \SKT_ADMIN_AdminWraperOpen);
$AdminWraperOpen = str_replace('validateTips', 'validateTipsProduct', $AdminWraperOpen);
echo $AdminWraperOpen;
?>
<style media="all">
#dialog-form-Administrator label input { font-size: 13px; font-weight: bold; padding: 3px 6px !important; width: 92%; }
</style>
<div class="container_16" >
<div class="CreateContentHtml" id="AddProductBox" style="display:none;">
<form action="" method="post" id="FormCreateContent">
<input name="ProductAutoID" id="ProductAutoID" type="hidden" value="<?php
echo $Products_AutoID;
?>
" />
示例15:
<?php
if (\CmsDev\Security\loginIntent::action('validate') === true) {
$sections = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Sections\_classes();
$sections->AddToList();
}