當前位置: 首頁>>代碼示例>>PHP>>正文


PHP secure::clearRequestData方法代碼示例

本文整理匯總了PHP中secure::clearRequestData方法的典型用法代碼示例。如果您正苦於以下問題:PHP secure::clearRequestData方法的具體用法?PHP secure::clearRequestData怎麽用?PHP secure::clearRequestData使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在secure的用法示例。


在下文中一共展示了secure::clearRequestData方法的2個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的PHP代碼示例。

示例1: spl_autoload_register

############################### INIT ###############################
####################################################################
/********** Автозагрузчик классов **********/
spl_autoload_register('expert__autoload');
function expert__autoload($className)
{
    /********** Библиотека статических классов **********/
    if (file_exists(SD_ROOT_DIR . 'core/classes/lib/' . $className . '.class.php')) {
        require_once SD_ROOT_DIR . 'core/classes/lib/' . $className . '.class.php';
    } else {
        // Файл класса ненайден печатаем сообщение об ошибке
        spl_autoload_register('smartyAutoload');
    }
}
/********** Очистка полученных данных **********/
secure::clearRequestData();
/********** Языковые файлы **********/
if (!empty($_COOKIE['instLang']) && is_dir(SD_ROOT_DIR . 'install/lang/' . $_COOKIE['instLang'] . '/')) {
    $currLang = $_COOKIE['instLang'];
} else {
    $currLang = SDG_DEFAULT_LANGUAGE;
}
foreach (filesys::getFilesInDir(SD_ROOT_DIR . 'install/lang/' . $currLang . '/') as $fileLang) {
    require_once SD_ROOT_DIR . 'install/lang/' . $currLang . '/' . $fileLang;
}
/********** Инициализация Smarty **********/
define('SMARTY_SPL_AUTOLOAD', 1);
require_once SD_ROOT_DIR . 'install/Smarty/Smarty.class.php';
$smarty = new Smarty();
//core smarty object
$smarty->error_reporting = E_ALL & ~E_NOTICE;
開發者ID:innova-market,項目名稱:JobExpert,代碼行數:31,代碼來源:index.php

示例2: set_time_limit

*/
// set script time out higher, to help with thumbnail generation
set_time_limit(240);
$tinybrowser = array();
// Default is rtrim($_SERVER['DOCUMENT_ROOT'],'/') (suitable when using absolute paths, but can be set to '' if using relative paths)
$tinybrowser['docroot'] = rtrim($_SERVER['DOCUMENT_ROOT'], '/');
//$tinybrowser['docroot'] = pathinfo($_SERVER['DOCUMENT_ROOT'], PATHINFO_DIRNAME) . '/' . $_SERVER['HTTP_HOST'];
require_once $tinybrowser['docroot'] . '/core/conf/const.config.file.manager.php';
if (file_exists($tinybrowser['docroot'] . '/core/classes/lib/secure.class.php')) {
    require_once $tinybrowser['docroot'] . '/core/classes/lib/secure.class.php';
} elseif (file_exists('i:/home/expert.core/classes/lib/secure.class.php')) {
    require_once 'i:/home/expert.core/classes/lib/secure.class.php';
} else {
    die(TB_DENIED);
}
secure::clearRequestData(true);
// Session control and security check - to enable please uncomment
//if(isset($_GET['sessidpass'])) session_id($_GET['sessidpass']); // workaround for Flash session bug
//session_start();
//$tinybrowser['sessioncheck'] = 'auth_user'; //name of session variable to check
// Random string used to secure Flash upload if session control not enabled - be sure to change!
$tinybrowser['obfuscate'] = 's0merand0mjunk!!!111';
// Set default language (ISO 639-1 code)
$tinybrowser['language'] = 'en';
// Set the integration type (TinyMCE is default)
$tinybrowser['integration'] = 'tinymce';
// Possible values: 'tinymce', 'fckeditor'
// Folder permissions for Unix servers only
$tinybrowser['unixpermissions'] = 0777;
// File upload paths (set to absolute by default)
$tinybrowser['path']['image'] = '/uploads/filemanager/images/';
開發者ID:innova-market,項目名稱:JobExpert,代碼行數:31,代碼來源:config_tinybrowser.php


注:本文中的secure::clearRequestData方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。