• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP Security\loginIntent类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中CmsDev\Security\loginIntent的典型用法代码示例。如果您正苦于以下问题:PHP loginIntent类的具体用法?PHP loginIntent怎么用?PHP loginIntent使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了loginIntent类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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;
     }
 }
开发者ID:neruruguay,项目名称:neru,代码行数:15,代码来源:UserProfile.php


示例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);
     }
 }
开发者ID:neruruguay,项目名称:neru,代码行数:20,代码来源:UserProfile.php


示例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&oacute;digo, Ejemplos:</span>
                            <select name="CodeSnippets" id="CodeSnippets">
                                <option value="">Reemplazar&aacute; su c&oacute;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>
开发者ID:neruruguay,项目名称:neru,代码行数:31,代码来源:Edit.php


示例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') {
开发者ID:neruruguay,项目名称:neru,代码行数:31,代码来源:Company.php


示例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']);
    }
}
开发者ID:neruruguay,项目名称:neru,代码行数:17,代码来源:Interests.php


示例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>
开发者ID:neruruguay,项目名称:neru,代码行数:31,代码来源:index.php


示例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();
     }
 }
开发者ID:neruruguay,项目名称:neru,代码行数:25,代码来源:make_1.php


示例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';
//.........这里部分代码省略.........
开发者ID:neruruguay,项目名称:neru,代码行数:101,代码来源:Page.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&uacute;n no soy miembro</a>
            </li>
        </ul>
    <?php 
开发者ID:neruruguay,项目名称:neru,代码行数:31,代码来源:ProductDetail.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>
开发者ID:neruruguay,项目名称:neru,代码行数:31,代码来源:body.php


示例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);
     }
 }
开发者ID:neruruguay,项目名称:neru,代码行数:20,代码来源:make.php


示例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']}' ");
}
开发者ID:neruruguay,项目名称:neru,代码行数:17,代码来源:Delete_List_query.php


示例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";
}
开发者ID:neruruguay,项目名称:neru,代码行数:27,代码来源:Folder_Rename.php


示例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;
    ?>
" />
开发者ID:neruruguay,项目名称:neru,代码行数:31,代码来源:Add.php


示例15:

<?php

if (\CmsDev\Security\loginIntent::action('validate') === true) {
    $sections = new \CmsDev\CRUD\ViewEditElementsAsList\Lists\Sections\_classes();
    $sections->AddToList();
}
开发者ID:neruruguay,项目名称:neru,代码行数:6,代码来源:_Create.php


示例16: Render

 public function Render($SocialRegister = false)
 {
     $SKT = \CmsDev\util\globals::getVar('SKT');
     $TPL = \ltrim(\LOCAL_DIR . \SKTURL_TemplateSite . '/SKT_Theme_Parts/PersonMarkupUser.tpl');
     $SKT_TPL = \ltrim(\SKT_SYS . '/SKT_Theme_Parts/PersonMarkupUser.tpl', '/');
     $TPLCSS = \ltrim(\LOCAL_DIR . \SKTURL_TemplateSite . '/SKT_Theme_Parts/PersonMarkupUser.css');
     $SKT_TPLCSS = \ltrim(\SKT_SYS . '/css/PersonMarkupUser.css', '/');
     if (file_exists($TPL)) {
         $personMarkupTPL = \file_get_contents($TPL);
     } else {
         $personMarkupTPL = \file_get_contents($SKT_TPL);
     }
     if (file_exists($TPLCSS)) {
         $CSS = '<link rel="stylesheet" type="text/css" href="' . \SKTURL_TemplateSite . '/SKT_Theme_Parts/PersonMarkupUser.css" media="all"/>';
     } else {
         $CSS = '<link rel="stylesheet" type="text/css" href="' . \SKT_SYS . '/css/PersonMarkupUser.css" media="all"/>';
     }
     if ($SocialRegister == "SocialRegister") {
         $personMarkupTPL = '<a class="ConnectGoogle sktToolTip btn btn-danger" title="{GoogleLoginTitle}" href="{GoogleLoginLink}"><i class="skt-icon-google-plus"></i> {GoogleLoginText}</a>';
     }
     $USER_EXIST = \CmsDev\Security\loginIntent::action('validateUser');
     $Markup_Google = new \CmsDev\google\oauth();
     $googleUser = $Markup_Google->GoogleUser();
     if ($googleUser == true) {
         $USER_EXIST = true;
     }
     if ($USER_EXIST == true) {
         if ($SKT['Access']['GenericUser'] == 1) {
             $Build = $this->GenericUser(true, $personMarkupTPL);
         }
         if ($SKT['Access']['Google'] == 1) {
             $Build = $this->Google(true, $Build);
         }
         if ($SKT['Access']['Facebook'] == 1) {
             $Build = $this->Facebook(true, $Build);
         }
         $personMarkupTPL = $Build;
         if (!defined('TypeUser')) {
             define('TypeUser', 'Customers');
         }
         if (\TypeUser == 'Customers') {
             $personMarkupTPL = \SKTremoveTags('sktSell', $personMarkupTPL);
             $personMarkupTPL = \SKTremoveTags('sktUserOptions', $personMarkupTPL);
         } else {
             $personMarkupTPL = \SKTremoveTags('sktUserOptionsCustomer', $personMarkupTPL);
         }
         $personMarkupTPL = \str_replace('{InitSessionBotton}', $SKT['TXT_Hi'] . $_SESSION['UserName'], $personMarkupTPL);
         $personMarkupTPL = \str_replace('{Avatar}', \SKTServerURL . 'SKTSize/avatar.png?30', $personMarkupTPL);
         $personMarkupTPL = \SKTreplaceTags('sktgenericuseraccess', '', $personMarkupTPL, 1, 0);
         $personMarkupTPL = \SKTreplaceTags('sktfacebookaccess', '', $personMarkupTPL, 1, 0);
         $personMarkupTPL = \SKTreplaceTags('sktgoogleaccess', '', $personMarkupTPL, 1, 0);
         $personMarkupTPL = \SKTreplaceTags('sktAvatar', '', $personMarkupTPL, 1, 0);
         $personMarkupTPL = \SKTreplaceTags('sktUserOptions', '', $personMarkupTPL, 1, 0);
         $personMarkupTPL = \SKTreplaceTags('sktUserOptionsCustomer', '', $personMarkupTPL, 1, 0);
         $personMarkupTPL = \SKTreplaceTags('sktSell', '', $personMarkupTPL, 1, 0);
         $personMarkupTPL = \SKTremoveTags('sktloginoptions', $personMarkupTPL);
         return $CSS . $personMarkupTPL;
     } else {
         $personMarkupTPL = SKTremoveTags('sktUserOptions', $personMarkupTPL);
         $personMarkupTPL = \SKTreplaceTags('sktavataranon', '', $personMarkupTPL, 1, 0);
         $personMarkupTPL = \SKTreplaceTags('sktloginoptions', '', $personMarkupTPL, 1, 0);
         $personMarkupTPL = \SKTreplaceTags('sktgenericuseraccess', '', $personMarkupTPL, 1, 0);
         $personMarkupTPL = \SKTreplaceTags('sktfacebookaccess', '', $personMarkupTPL, 1, 0);
         $personMarkupTPL = \SKTreplaceTags('sktgoogleaccess', '', $personMarkupTPL, 1, 0);
         $personMarkupTPL = SKTremoveTags('sktAvatar', $personMarkupTPL);
         $personMarkupTPL = \str_replace('{InitSessionBotton}', $SKT['TXT_Hi'] . $SKT['TXT_anonymous'], $personMarkupTPL);
         $personMarkupTPL = \str_replace('{Avatar}', \SKTServerURL . 'SKTSize/avatar.png?30', $personMarkupTPL);
         if ($SKT['Access']['Google'] == 1) {
             $Build = $this->Google(false, $Build);
         } elseif ($SKT['Access']['Facebook'] == 1) {
             $Build = $this->Facebook(false, $Build);
         } elseif ($SKT['Access']['GenericUser'] == 1) {
             $Build = $this->GenericUser(false, $personMarkupTPL);
         } else {
         }
         $personMarkupTPL = \SKTreplaceTags('sktloginoptions', $this->Markup_GenericUser . $this->Markup_Google . $this->Markup_Facebook, $personMarkupTPL, 1, 0);
         $personMarkupTPL = $Build;
         echo $CSS . \CmsDev\skt_Code::Charset($personMarkupTPL);
     }
 }
开发者ID:neruruguay,项目名称:neru,代码行数:80,代码来源:UserBoxActions.php


示例17: 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';
     }
 }
开发者ID:neruruguay,项目名称:neru,代码行数:9,代码来源:LoadEditorRequired.php


示例18:

 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();
     }
 }
开发者ID:neruruguay,项目名称:neru,代码行数:13,代码来源:LoadFileSysRequired.php


示例19: 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);
     }
 }
开发者ID:neruruguay,项目名称:neru,代码行数:16,代码来源:LoadHeader.php


示例20: 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'];
//.........这里部分代码省略.........
开发者ID:neruruguay,项目名称:neru,代码行数:101,代码

鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP sql\db_Skt类代码示例发布时间:2022-05-23
下一篇:
PHP Classes\Theme类代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap