当前位置: 首页>>代码示例>>PHP>>正文


PHP CheckAuthentication函数代码示例

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


在下文中一共展示了CheckAuthentication函数的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的PHP代码示例。

示例1: loadValues

 /**
  * Load values from config
  *
  * @access private
  */
 private function loadValues()
 {
     if (function_exists('CheckAuthentication')) {
         $this->_isEnabled = CheckAuthentication();
     }
     if (isset($GLOBALS['config']['LicenseName'])) {
         $this->_licenseName = (string) $GLOBALS['config']['LicenseName'];
     }
     if (isset($GLOBALS['config']['LicenseKey'])) {
         $this->_licenseKey = (string) $GLOBALS['config']['LicenseKey'];
     }
     if (isset($GLOBALS['config']['FilesystemEncoding'])) {
         $this->_filesystemEncoding = (string) $GLOBALS['config']['FilesystemEncoding'];
     }
     if (isset($GLOBALS['config']['RoleSessionVar'])) {
         $this->_roleSessionVar = (string) $GLOBALS['config']['RoleSessionVar'];
     }
     if (isset($GLOBALS['config']['CheckDoubleExtension'])) {
         $this->_checkDoubleExtension = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['CheckDoubleExtension']);
     }
     if (isset($GLOBALS['config']['DisallowUnsafeCharacters'])) {
         $this->_disallowUnsafeCharacters = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['DisallowUnsafeCharacters']);
     }
     if (isset($GLOBALS['config']['SecureImageUploads'])) {
         $this->_secureImageUploads = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['SecureImageUploads']);
     }
     if (isset($GLOBALS['config']['CheckSizeAfterScaling'])) {
         $this->_checkSizeAfterScaling = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['CheckSizeAfterScaling']);
     }
     if (isset($GLOBALS['config']['ForceAscii'])) {
         $this->_forceAscii = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['ForceAscii']);
     }
     if (isset($GLOBALS['config']['HtmlExtensions'])) {
         $this->_htmlExtensions = (array) $GLOBALS['config']['HtmlExtensions'];
     }
     if (isset($GLOBALS['config']['HideFolders'])) {
         $this->_hideFolders = (array) $GLOBALS['config']['HideFolders'];
     }
     if (isset($GLOBALS['config']['HideFiles'])) {
         $this->_hideFiles = (array) $GLOBALS['config']['HideFiles'];
     }
     if (isset($GLOBALS['config']['ChmodFiles'])) {
         $this->_chmodFiles = $GLOBALS['config']['ChmodFiles'];
     }
     if (isset($GLOBALS['config']['ChmodFolders'])) {
         $this->_chmodFolders = $GLOBALS['config']['ChmodFolders'];
     }
     if (isset($GLOBALS['config']['DefaultResourceTypes'])) {
         $_defaultResourceTypes = (string) $GLOBALS['config']['DefaultResourceTypes'];
         if (strlen($_defaultResourceTypes)) {
             $this->_defaultResourceTypes = explode(",", $_defaultResourceTypes);
         }
     }
     if (isset($GLOBALS['config']['TempDirectory'])) {
         $this->_tempDirectory = $GLOBALS['config']['TempDirectory'];
     }
     if (isset($GLOBALS['config']['XSendfile'])) {
         $this->_xsendfile = CKFinder_Connector_Utils_Misc::booleanValue($GLOBALS['config']['XSendfile']);
     }
     if (isset($GLOBALS['config']['XSendfileNginx'])) {
         $this->_xsendfileNginx = (array) $GLOBALS['config']['XSendfileNginx'];
     }
 }
开发者ID:EdgeCommerce,项目名称:edgecommerce,代码行数:68,代码来源:Config.php

示例2: session_start

<?php

/* Lihat Hasl Upload Data DIPA
   update terakhir tgl. 04-02-2009
   Ana
	update terakhir tgl. .............. -abrarhedar-
   ------------------------------------------------------
*/
session_start();
include "../lib/sambung.php";
include "../lib/sipl.php";
CheckAuthentication();
$kdunit = $_SESSION[kdunit];
$sktunit = strtolower(sktunitkerja($kdunit, $ta));
$ta = $_SESSION[ta];
$filedata = '../DataDipa/' . $sktunit . '/d_item.dbf';
if (file_exists($filedata)) {
    echo 'file ' . $filedata . ' ada';
    $data = dbase_open($filedata, 2);
    dbase_pack($data);
    $jml = dbase_numrecords($data);
    $vdataawal = dbase_get_record_with_names($data, 1);
    $tahun = $vdataawal["THANG"];
    $kodesatker = $vdataawal["KDSATKER"];
    //dbase_pack($data);
    $kdsatkerunit = kdsatker($kdunit);
    echo 'tahun anggaran ' . $tahun . ' satker data ' . $kodesatker;
    echo 'kode unit ' . $kdunit . ' satker unit ' . $kdsatkerunit;
    if ($_REQUEST['ok']) {
        mysql_query("delete from d_item where ThAng='{$ta}' and kdsatker='{$kdsatkerunit}' ");
        $i = 0;
开发者ID:abbeet,项目名称:server39,代码行数:31,代码来源:Hasil_UploadDipaNew.php

示例3: loadValues

 /**
  * Load values from config
  *
  * @access private
  */
 function loadValues()
 {
     if (function_exists('CheckAuthentication')) {
         $this->_isEnabled = CheckAuthentication();
     }
     if (isset($GLOBALS['config']['FilesystemEncoding'])) {
         $this->_filesystemEncoding = (string) $GLOBALS['config']['FilesystemEncoding'];
     }
     if (isset($GLOBALS['config']['CheckDoubleExtension'])) {
         $this->_checkDoubleExtension = CKEditor_Connector_Utils_Misc::booleanValue($GLOBALS['config']['CheckDoubleExtension']);
     }
     if (isset($GLOBALS['config']['SecureImageUploads'])) {
         $this->_secureImageUploads = CKEditor_Connector_Utils_Misc::booleanValue($GLOBALS['config']['SecureImageUploads']);
     }
     if (isset($GLOBALS['config']['HtmlExtensions'])) {
         $this->_htmlExtensions = (array) $GLOBALS['config']['HtmlExtensions'];
     }
     if (isset($GLOBALS['config']['ChmodFiles'])) {
         $this->_chmodFiles = $GLOBALS['config']['ChmodFiles'];
     }
     if (isset($GLOBALS['config']['ChmodFolders'])) {
         $this->_chmodFolders = $GLOBALS['config']['ChmodFolders'];
     }
     if (isset($GLOBALS['config']['DefaultResourceTypes'])) {
         $_defaultResourceTypes = (string) $GLOBALS['config']['DefaultResourceTypes'];
         if (strlen($_defaultResourceTypes)) {
             $this->_defaultResourceTypes = explode(",", $_defaultResourceTypes);
         }
     }
 }
开发者ID:scarsroga,项目名称:blog-soa,代码行数:35,代码来源:Config.php

示例4: die

                die("The CMS integration service for -drupal- requires KCFinder to be properly placed inside your Drupal installation.");
            }
            // bootstrap
            require_once DRUPAL_ROOT . '/includes/bootstrap.inc';
            drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
            // if user has access permission...
            if (user_access('access kcfinder')) {
                if (!isset($_SESSION['KCFINDER'])) {
                    $_SESSION['KCFINDER'] = array();
                    $_SESSION['KCFINDER']['disabled'] = false;
                }
                // User has permission, so make sure KCFinder is not disabled!
                if (!isset($_SESSION['KCFINDER']['disabled'])) {
                    $_SESSION['KCFINDER']['disabled'] = false;
                }
                global $user;
                $_SESSION['KCFINDER']['uploadURL'] = strtr(variable_get('kcfinder_upload_url', 'sites/default/files/kcfinder'), array('%u' => $user->uid, '%n' => $user->name));
                $_SESSION['KCFINDER']['uploadDir'] = strtr(variable_get('kcfinder_upload_dir', ''), array('%u' => $user->uid, '%n' => $user->name));
                $_SESSION['KCFINDER']['theme'] = variable_get('kcfinder_theme', 'oxygen');
                //echo '<br />uploadURL: ' . $_SESSION['KCFINDER']['uploadURL']<br />;
                //echo '<br />uploadDir: ' . $_SESSION['KCFINDER']['uploadDir']<br />;
                chdir($current_cwd);
                return true;
            }
            chdir($current_cwd);
            return false;
        }
    }
}
CheckAuthentication(get_drupal_path());
开发者ID:christianallred,项目名称:fluent_univ,代码行数:30,代码来源:drupal.php

示例5: getcwd

            $fck_cwd = getcwd();
            chdir($drupal_path);
            require_once './includes/bootstrap.inc';
            drupal_bootstrap(DRUPAL_BOOTSTRAP_FULL);
            $authenticated = user_access('allow fckeditor file uploads');
            if (isset($_SESSION['FCKeditor']['UserFilesPath'], $_SESSION['FCKeditor']['UserFilesAbsolutePath'])) {
                $GLOBALS['fck_user_files_path'] = $_SESSION['FCKeditor']['UserFilesPath'];
                $GLOBALS['fck_user_files_absolute_path'] = $_SESSION['FCKeditor']['UserFilesAbsolutePath'];
            }
            chdir($fck_cwd);
        }
    }
    return $authenticated;
}
/**
 * Note:
 * Although in FCKeditor 2.5 $Config['Enabled'] is not used anymore,
 * CheckAuthentication() must be called once to initialize session
 * before sending any content
 * Static $authenticated variable is being assigned, so
 * application performance is not affected
 */
$Config['Enabled'] = CheckAuthentication();
if (!empty($fck_user_files_path)) {
    $Config['UserFilesPath'] = $fck_user_files_path;
    $Config['UserFilesAbsolutePath'] = $fck_user_files_absolute_path;
} else {
    // Nothing in session? Shouldn't happen... anyway let's try to upload it in the (almost) right place
    // Path to user files relative to the document root.
    $Config['UserFilesPath'] = strtr(base_path(), array('/modules/fckeditor/fckeditor/editor/filemanager/connectors/php' => '', '/modules/fckeditor/fckeditor/editor/filemanager/browser/default/connectors/php' => '', '/modules/fckeditor/fckeditor/editor/filemanager/upload/php' => '')) . file_directory_path() . '/';
}
开发者ID:leloulight,项目名称:yvalik,代码行数:31,代码来源:filemanager.config.php

示例6: CheckAuthentication

<?php

include_once 'inc/auth.php';
CheckAuthentication(false);
include_once 'inc/utils.php';
?>

<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
    <meta name="description" content="">
    <meta name="author" content="">
    <link rel="icon" href="favicon.ico">

    <title>LoL Statbot - Login</title>

    <!-- Bootstrap core CSS -->
    <link href="css/bootstrap.min.css" rel="stylesheet">

    <!-- Custom styles for this template -->
    <link href="login.css" rel="stylesheet">

    <!-- HTML5 shim and Respond.js for IE8 support of HTML5 elements and media queries -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/html5shiv/3.7.2/html5shiv.min.js"></script>
    <script src="https://oss.maxcdn.com/respond/1.4.2/respond.min.js"></script>
    <![endif]-->
开发者ID:nimashoghi,项目名称:LolStatBot,代码行数:31,代码来源:login.php


注:本文中的CheckAuthentication函数示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。