includes/common_cli.php
changeset 945 c19242d13a49
parent 812 68060328e9c6
child 1081 745200a9cc2a
equal deleted inserted replaced
944:073a42e4177f 945:c19242d13a49
   184   // For special and administration pages, sometimes there is a "preloader" function that must be run
   184   // For special and administration pages, sometimes there is a "preloader" function that must be run
   185   // before the session manager and/or path manager get the init signal. Call it here.  
   185   // before the session manager and/or path manager get the init signal. Call it here.  
   186   $p = RenderMan::strToPageId($paths->get_pageid_from_url());
   186   $p = RenderMan::strToPageId($paths->get_pageid_from_url());
   187   if( ( $p[1] == 'Admin' || $p[1] == 'Special' ) && function_exists('page_'.$p[1].'_'.$p[0].'_preloader'))
   187   if( ( $p[1] == 'Admin' || $p[1] == 'Special' ) && function_exists('page_'.$p[1].'_'.$p[0].'_preloader'))
   188   {
   188   {
   189     @call_user_func('page_'.$p[1].'_'.$p[0].'_preloader');
   189     call_user_func('page_'.$p[1].'_'.$p[0].'_preloader');
   190   }
   190   }
   191   
   191   
   192   profiler_log('Checked for preloader');
   192   profiler_log('Checked for preloader');
   193   
   193   
   194   // One quick security check...
   194   // One quick security check...