includes/common.php
changeset 217 5bcdee999015
parent 183 eec079676fe7
child 218 e0ec986c0af3
equal deleted inserted replaced
216:06db76725891 217:5bcdee999015
   248   if( ( $p[1] == 'Admin' || $p[1] == 'Special' ) && function_exists('page_'.$p[1].'_'.$p[0].'_preloader'))
   248   if( ( $p[1] == 'Admin' || $p[1] == 'Special' ) && function_exists('page_'.$p[1].'_'.$p[0].'_preloader'))
   249   {
   249   {
   250     @call_user_func('page_'.$p[1].'_'.$p[0].'_preloader');
   250     @call_user_func('page_'.$p[1].'_'.$p[0].'_preloader');
   251   }
   251   }
   252   
   252   
       
   253   // One quick security check...
       
   254   if ( !is_valid_ip($_SERVER['REMOTE_ADDR']) )
       
   255   {
       
   256     die('SECURITY: spoofed IP address');
       
   257   }
       
   258   
   253   $session->start();
   259   $session->start();
   254   $paths->init();
   260   $paths->init();
   255   
   261   
   256   define('ENANO_MAINSTREAM', '');
   262   define('ENANO_MAINSTREAM', '');
   257   
   263