示例#1
0
 /**
  * Initializes the environment
  *
  * The following settings can be set:
  *
  * Type      | Setting     | Description
  * ----------|-------------|----------------------------------------------------------------------------------------
  * `string`  | server_name | In this extend the Kohana_Core for function init added server_name param
  *
  * @param array $settings
  * @throws Kohana_Exception
  */
 public static function init(array $settings = null)
 {
     parent::init($settings);
     if (isset($settings['server_name'])) {
         Kohana::$server_name = (string) $settings['server_name'];
     }
 }
示例#2
0
 /**
  * overrides default init
  * @param  array $settings 
  * @return void           
  */
 public static function init(array $settings = NULL)
 {
     //before cleaning getting a copy of the original in case we need it.
     self::$_GET_ORIG = $_GET;
     self::$_COOKIE_ORIG = $_COOKIE;
     //we remove slashes if needed
     self::$_POST_ORIG = Kohana::stripslashes($_POST);
     parent::init($settings);
 }