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


PHP SpoonFilter::disableMagicQuotes方法代码示例

本文整理汇总了PHP中SpoonFilter::disableMagicQuotes方法的典型用法代码示例。如果您正苦于以下问题:PHP SpoonFilter::disableMagicQuotes方法的具体用法?PHP SpoonFilter::disableMagicQuotes怎么用?PHP SpoonFilter::disableMagicQuotes使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在SpoonFilter的用法示例。


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

示例1: __construct

 /**
  * @param string $type The type of init to load, possible values: backend, backend_ajax, backend_cronjob, backend_js
  */
 public function __construct($type)
 {
     $allowedTypes = array('api');
     $type = (string) $type;
     // check if this is a valid type
     if (!in_array($type, $allowedTypes)) {
         exit('Invalid init-type');
     }
     // set type
     $this->type = $type;
     // register the autoloader
     spl_autoload_register(array('APIInit', 'autoLoader'));
     // set some ini-options
     ini_set('memory_limit', '64M');
     // set a default timezone if no one was set by PHP.ini
     if (ini_get('date.timezone') == '') {
         date_default_timezone_set('Europe/Brussels');
     }
     /**
      * At first we enable the error reporting. Later on it will be disabled based on the
      * value of SPOON_DEBUG, but for now it's required to see possible errors while trying
      * to include the globals file(s).
      */
     error_reporting(E_ALL | E_STRICT);
     ini_set('display_errors', 'On');
     $this->requireGlobals();
     $this->definePaths();
     $this->setIncludePath();
     $this->setDebugging();
     // get spoon
     require_once 'spoon/spoon.php';
     $this->requireAPIClasses();
     SpoonFilter::disableMagicQuotes();
     $this->initSession();
 }
开发者ID:naujasdizainas,项目名称:forkcms,代码行数:38,代码来源:init.php

示例2: __construct

 /**
  * Default constructor
  *
  * @return	void
  * @param	string $type	The type of init to load, possible values are: frontend, frontend_ajax, frontend_js.
  */
 public function __construct($type)
 {
     // init vars
     $allowedTypes = array('frontend', 'frontend_ajax', 'frontend_js');
     $type = (string) $type;
     // check if this is a valid type
     if (!in_array($type, $allowedTypes)) {
         exit('Invalid init-type');
     }
     // set type
     $this->type = $type;
     // register the autoloader
     spl_autoload_register(array('FrontendInit', 'autoLoader'));
     // set some ini-options
     ini_set('pcre.backtrack_limit', 999999999);
     ini_set('pcre.recursion_limit', 999999999);
     ini_set('memory_limit', '64M');
     // set a default timezone if no one was set by PHP.ini
     if (ini_get('date.timezone') == '') {
         date_default_timezone_set('Europe/Brussels');
     }
     /**
      * At first we enable the error reporting. Later on it will be disabled based on the
      * value of SPOON_DEBUG, but for now it's required to see possible errors while trying
      * to include the globals file(s).
      */
     error_reporting(E_ALL | E_STRICT);
     ini_set('display_errors', 'On');
     // require globals
     $this->requireGlobals();
     // get last modified time for globals
     $lastModifiedTime = @filemtime(PATH_LIBRARY . '/globals.php');
     // reset lastmodified time if needed (SPOON_DEBUG is enabled or we don't get a decent timestamp)
     if ($lastModifiedTime === false || SPOON_DEBUG) {
         $lastModifiedTime = time();
     }
     // define as a constant
     define('LAST_MODIFIED_TIME', $lastModifiedTime);
     // define constants
     $this->definePaths();
     $this->defineURLs();
     // set include path
     $this->setIncludePath();
     // set debugging
     $this->setDebugging();
     // require spoon
     require_once 'spoon/spoon.php';
     // require frontend-classes
     $this->requireFrontendClasses();
     // disable magic quotes
     SpoonFilter::disableMagicQuotes();
 }
开发者ID:netconstructor,项目名称:forkcms,代码行数:58,代码来源:init.php

示例3: initialize

 /**
  * @param string $type The type of init to load, possible values: Backend, BackendAjax, BackendCronjob
  */
 public function initialize($type)
 {
     $type = (string) $type;
     // check if this is a valid type
     if (!in_array($type, $this->allowedTypes)) {
         throw new InvalidInitTypeException($type, $this->allowedTypes);
     }
     // set type
     $this->type = $type;
     // set a default timezone if no one was set by PHP.ini
     if (ini_get('date.timezone') == '') {
         date_default_timezone_set('Europe/Brussels');
     }
     \SpoonFilter::disableMagicQuotes();
     $this->initSession();
 }
开发者ID:forkcms,项目名称:forkcms,代码行数:19,代码来源:Init.php

示例4: initialize

 /**
  * @param string $type The type of init to load, possible values: Backend, BackendAjax, BackendCronjob
  */
 public function initialize($type)
 {
     $type = (string) $type;
     // check if this is a valid type
     if (!in_array($type, $this->allowedTypes)) {
         exit('Invalid init-type');
     }
     // set type
     $this->type = $type;
     // set a default timezone if no one was set by PHP.ini
     if (ini_get('date.timezone') == '') {
         date_default_timezone_set('Europe/Brussels');
     }
     $this->definePaths();
     $this->setDebugging();
     \SpoonFilter::disableMagicQuotes();
     $this->initSession();
 }
开发者ID:bwgraves,项目名称:forkcms,代码行数:21,代码来源:Init.php

示例5: initialize

 /**
  * @param string $type The type of init to load, possible values are: frontend, frontend_ajax, frontend_js.
  */
 public function initialize($type)
 {
     parent::initialize($type);
     \SpoonFilter::disableMagicQuotes();
 }
开发者ID:forkcms,项目名称:forkcms,代码行数:8,代码来源:Init.php

示例6: initialize

 /**
  * @param string $type The type of init to load, possible values are: frontend, frontend_ajax, frontend_js.
  */
 public function initialize($type)
 {
     parent::initialize($type);
     $this->requireFrontendClasses();
     \SpoonFilter::disableMagicQuotes();
 }
开发者ID:arashrasoulzadeh,项目名称:forkcms,代码行数:9,代码来源:Init.php


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