Beispiel #1
0
 /**
  * Initialization code for the plugin.
  *
  * The initial variables and information needed by the plugin during the
  * execution of other functions will be generated. Things like the real IP
  * address of the client when it has been forwarded or it's behind an external
  * service like a Proxy.
  *
  * @return void
  */
 public static function initialize()
 {
     if (SucuriScan::is_behind_cloudproxy()) {
         $_SERVER['SUCURIREAL_REMOTE_ADDR'] = $_SERVER['REMOTE_ADDR'];
         $_SERVER['REMOTE_ADDR'] = SucuriScan::get_remote_addr();
     }
 }
 /**
  * Initialization code for the plugin.
  *
  * The initial variables and information needed by the plugin during the
  * execution of other functions will be generated. Things like the real IP
  * address of the client when it has been forwarded or it's behind an external
  * service like a Proxy.
  *
  * @return void
  */
 public static function initialize()
 {
     if (SucuriScan::support_reverse_proxy() || SucuriScan::is_behind_cloudproxy()) {
         $_SERVER['SUCURIREAL_REMOTE_ADDR'] = $_SERVER['REMOTE_ADDR'];
         $_SERVER['REMOTE_ADDR'] = SucuriScan::get_remote_addr();
     }
     SucuriScanEvent::schedule_task(false);
 }