Esempio n. 1
0
 /**
  * Specify HTTP_HOST values that are development environments.
  * For information about environment types, see {@link Director::set_environment_type()}.
  * 
  * CAUTION: Domain information can easily be spoofed in HTTP requests,
  * we recommend to set this mode via {@link Director::set_environment_type()}
  * or an _ss_environment.php instead.
  * 
  * @param $servers array An array of HTTP_HOST values that should be treated as development environments.
  */
 static function set_dev_servers($servers)
 {
     Director::$dev_servers = $servers;
 }
Esempio n. 2
0
 /**
  * Specify HTTP_HOST values that are development environments.
  * For information about environment types, see {@link Director::set_environment_type()}.
  * 
  * CAUTION: Domain information can easily be spoofed in HTTP requests,
  * we recommend to set this mode via {@link Director::set_environment_type()}
  * or an _ss_environment.php instead.
  * 
  * @deprecated 3.0 Use Director::set_environment_type() or an _ss_environment.php instead.
  * @param $servers array An array of HTTP_HOST values that should be treated as development environments.
  */
 static function set_dev_servers($servers)
 {
     Deprecation::notice('3.0', 'Use Director::set_environment_type() or an _ss_environment.php instead.');
     Director::$dev_servers = $servers;
 }