includes/common.php
changeset 271 f088805540ae
parent 229 97ae8e9d5e29
parent 270 5bcdee999015
child 279 8acd77a6c19d
equal deleted inserted replaced
266:917dcc6c4ceb 271:f088805540ae
   271   if( ( $p[1] == 'Admin' || $p[1] == 'Special' ) && function_exists('page_'.$p[1].'_'.$p[0].'_preloader'))
   271   if( ( $p[1] == 'Admin' || $p[1] == 'Special' ) && function_exists('page_'.$p[1].'_'.$p[0].'_preloader'))
   272   {
   272   {
   273     @call_user_func('page_'.$p[1].'_'.$p[0].'_preloader');
   273     @call_user_func('page_'.$p[1].'_'.$p[0].'_preloader');
   274   }
   274   }
   275   
   275   
       
   276   // One quick security check...
       
   277   if ( !is_valid_ip($_SERVER['REMOTE_ADDR']) )
       
   278   {
       
   279     die('SECURITY: spoofed IP address');
       
   280   }
       
   281   
   276   $session->start();
   282   $session->start();
   277   $paths->init();
   283   $paths->init();
   278   
   284   
   279   define('ENANO_MAINSTREAM', '');
   285   define('ENANO_MAINSTREAM', '');
   280   
   286