本文整理汇总了PHP中CmsDev\Security\loginIntent::action方法的典型用法代码示例。如果您正苦于以下问题:PHP loginIntent::action方法的具体用法?PHP loginIntent::action怎么用?PHP loginIntent::action使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类CmsDev\Security\loginIntent
的用法示例。
在下文中一共展示了loginIntent::action方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。
示例1: dirname
function __construct()
{
$MessageBox = \CmsDev\Info\Asistance::get();
if (Login::action('validateAdmin') === true) {
require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . '/SKTEditor.php';
require dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . '/Layout/EditorLayouts.php';
require_once dirname(dirname(__FILE__)) . DIRECTORY_SEPARATOR . '/CRUD/Xtras/ColectorData.php';
}
}
示例2:
function __construct()
{
if (Login::action('validateAdmin') === true) {
$DS = DIRECTORY_SEPARATOR;
$app = \file_get_contents(dirname(dirname(__FILE__)) . $DS . '_appjs' . $DS . 'app.js');
$appPack = new \CmsDev\JavaScriptPacker($app);
$SKTFSys = \file_get_contents(dirname(dirname(__FILE__)) . $DS . '_appjs' . $DS . 'SKTFSys.js');
$SKTFSysPack = new \CmsDev\JavaScriptPacker($SKTFSys);
echo '<script type="text/javascript">' . $appPack->pack() . $SKTFSysPack->pack() . '</script>';
$MessageBox = \CmsDev\Info\Asistance::get();
$MessageBox->Render();
}
}
示例3: 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;
}
}
示例4: loadOnFileSystem
public static function loadOnFileSystem()
{
$loadAdmin = '';
if (Login::action('validateAdmin') === true) {
self::loadEveryTime(true);
$SKT_Header = \CmsDev\Header\Make::instance();
$SKT_Header->addMeta('robots', 'noindex,nofollow');
$loadOnFileSystem = '' . 'var editorCMS = "1";' . 'var SKTServerURL = "' . \SERVER_DIR . \SUBSITE . '";' . 'var SKTURL_FileSystems = "' . \SKTURL_FileSystems . '";' . 'var URL_VERSION = "../";';
$SKT_Header->custom('<script type="text/javascript">' . $loadOnFileSystem . '</script>', true);
$SKT_Header->addCss(\ASSETS . 'css/skt.fs.styles.combined.php');
$SKT_Header->addScript(\ASSETS . 'skt.fs.script.combined.php', 'text/javascript', true, 'fs');
$SKT_Header->addScript(\SKTURL_CmsDev . '_appjs/SKTFSys.js', 'text/javascript', false, 'skt');
$SKT_Header->addScript(\SKTURL_CmsDev . '_appjs/app.js', 'text/javascript', false, 'skt2');
return $SKT_Header->RenderHeader(false);
}
}
示例5: 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);
}
}
示例6: 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') {
示例7: 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']);
}
}
示例8: 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>
示例9: 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', 'CustomControl', 'Edit') === true) {
echo str_replace('[title]', $CMSText_CustonControlTitle, \SKT_ADMIN_AdminWraperOpen);
require "../FileSystemsPopUp/FileSystems_Custom.php";
/*
$arraypost=array();
foreach($_POST as $k => $v) $arraypost[]='$AddProduct_'.$k.' = $_POST["'.$k.'"] = '.$v.';<br>';
echo implode('',$arraypost);
exit();
*/
$EditContent_Action = $_POST["Action"];
// = 'Files_Galeria_Multimedia';
$EditContent_ID = $_POST["ID"];
// = 30;
$EditContent_CustomProperty = $_POST["CustomProperty"];
// = '/_FileSystems//esp/Clients/';
//ID,Title,Date,IDZone,IDPage,Type,AllPage,Content,RecycleBin,Position,css_class,Description,Custom,CustomProperty
$content = $SKTDB->get_row("SELECT * FROM " . DB_PREFIX . "content WHERE ID = '{$EditContent_ID}'");
$FileSystemsDirName = $directorio;
?>
示例10: 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();
}
}
示例11: 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";
}
示例12: render
public static function render($IDZone, $NameZone = '', $StyleClass = '')
{
$IDZone = static::FixZone($IDZone);
if ($NameZone === '') {
$NameZone = static::FixZone($IDZone);
} else {
$NameZone = static::FixZone($NameZone);
}
$isLogged = SKT_SECURE::action('validateAdmin');
$SKTDB = SKT_DB::connect();
$IDSections = \SKT_SECTION_ID;
$editorCMS = 0;
$editorcss = "";
$editorCMS_WrapBefore = "";
$editorCMS_WrapAfter = "";
$editorScript_WrapBefore = "";
$editorScript_WrapAfter = "";
$total_lock_mod = 0;
$_SESSION_View_DesignCMS = 0;
$IDZoneColect = $IDZone . '|' . $NameZone . ',';
$IDZoneColectObj = \CmsDev\Content\ZoneColect::init();
$IDZoneColectObj->set($IDZoneColect);
$DS = DIRECTORY_SEPARATOR;
if ($isLogged === true) {
$editorCMS_WrapBefore = '<div class="' . $editorcss . ' sktEditorContentWrapper">
<h3 class="EditorHeaderTitle ui-dialog-titlebar ui-widget-header ui-corner-all">
<span class="Title">[TitleZone]</span><div class="CmsDevIcon"><a href="javascript:void(0);"></a>
<ul class="">
<li class="Delete" rel="[ID]" title="' . SKT_ADMIN_Btn_Delete . '">
<li class="Recycle" rel="[ID]" title="' . SKT_ADMIN_Btn_Recycle . '"></li>
<li class="Property" rel="[ID]" title="' . SKT_ADMIN_Btn_Properties . '"></li>
</li><li class="CmsDevEditCMS" rel="[ID]" title="' . SKT_ADMIN_Btn_Edit . '"></li>
</ul>
</div>
</h3>';
$editorCMS_WrapAfter = '<div class="clear"></div></div>';
$editorScript_WrapBefore = '<div class="' . $editorcss . ' sktEditorContentWrapper">
<h3 class="EditorHeaderTitle ui-dialog-titlebar ui-widget-header ui-corner-all">
<span class="Title">[TitleZone]</span><div class="CmsDevIcon"><a href="javascript:void(0);"></a>
<ul class="">
<li class="Delete" rel="[ID]" title="' . SKT_ADMIN_Btn_Delete . '"></li>
<li class="Recycle" rel="[ID]" title="' . SKT_ADMIN_Btn_Recycle . '"></li>
<li class="Property" rel="[ID]" title="' . SKT_ADMIN_Btn_Properties . '"></li>
<li class="CmsDevEditScript" rel="[ID]" title="' . SKT_ADMIN_Btn_Edit . '"></li>
</ul>
</div>
</h3>';
$editorScript_WrapAfter = '<div class="clear"></div></div>';
$editorCC_WrapBefore = '<div class="' . $editorcss . ' sktEditorContentWrapper">
<h3 class="EditorHeaderTitle ui-dialog-titlebar ui-widget-header ui-corner-all">
<span class="Title">[TitleZone]</span><div class="CmsDevIcon"><a href="javascript:void(0);"></a>
<ul class="">
<li class="Delete" rel="[ID]" title="' . SKT_ADMIN_Btn_Delete . '"></li>
<li class="Recycle" rel="[ID]" title="' . SKT_ADMIN_Btn_Recycle . '"></li>
<li class="Property" rel="[ID]" title="' . SKT_ADMIN_Btn_Properties . '"></li>
[FILES]
[CUSTOMIZED]
<li class="CmsDevEditCC" rel="[ID]" title="' . SKT_ADMIN_Btn_Edit . '"></li>
</ul>
<form action="" method="post" style="display:none;">
<input name="Action" id="Action" type="hidden" value="[Action]" />
<input name="ID" type="hidden" value="[ID]" />
<input name="IDZone" type="hidden" value="[IDZone]" />
<input name="CCFromTemplate" id="CCFromTemplate" type="hidden" value="[CCFromTemplate]" />
<textarea name="CustomProperty" id="CustomProperty" />[CustomProperty]</textarea>
</form>
</div>
</h3>';
$editorCC_WrapAfter = '<div class="clear"></div></div>';
$editorNote_WrapBefore = '<div class="' . $editorcss . ' sktEditorContentWrapper">
<h3 class="EditorHeaderTitle ui-dialog-titlebar ui-widget-header ui-corner-all">
<span class="Title">[TitleZone]</span><div class="CmsDevIcon"><a href="javascript:void(0);"></a>
<ul class="">
<li class="Delete" rel="[ID]" title="' . SKT_ADMIN_Btn_Delete . '"></li>
<li class="Recycle" rel="[ID]" title="' . SKT_ADMIN_Btn_Recycle . '"></li>
<li class="Property" rel="[ID]" title="' . SKT_ADMIN_Btn_Properties . '"></li>
<li class="CmsDevEditNote" rel="[ID]" id="[ID]" title="' . SKT_ADMIN_Btn_Edit . '"></li>
</ul>
</div>
</h3>';
$editorNote_WrapAfter = '<div class="clear"></div></div>';
$editorPhoto_WrapBefore = '<div class="' . $editorcss . ' sktEditorContentWrapper">
<h3 class="EditorHeaderTitle ui-dialog-titlebar ui-widget-header ui-corner-all">
<span class="Title">[TitleZone]</span><div class="CmsDevIcon"><a href="javascript:void(0);"></a>
<ul class="">
<li class="Delete" rel="[ID]" title="' . SKT_ADMIN_Btn_Delete . '"></li>
<li class="Recycle" rel="[ID]" title="' . SKT_ADMIN_Btn_Recycle . '"></li>
<li class="Property" rel="[ID]" title="' . SKT_ADMIN_Btn_Properties . '"></li>
<li class="CmsDevEditPhoto" rel="[ID]" id="[ID]" title="' . SKT_ADMIN_Btn_Edit . '"></li>
</ul>
</div>
</h3>';
$editorPhoto_WrapAfter = '<div class="clear"></div></div>';
}
if (isset($_POST['View_DesignCMS'])) {
$_SESSION_View_DesignCMS = $_POST['View_DesignCMS'];
$_SESSION['View_DesignCMS'] = $_SESSION_View_DesignCMS;
} else {
if (isset($_SESSION['View_DesignCMS'])) {
$_SESSION_View_DesignCMS = $_SESSION['View_DesignCMS'];
//.........这里部分代码省略.........
示例13: 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>
示例14: 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);
}
}
示例15: 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']}' ");
}