View Single Post
  #6  
Old 8th November 2016, 17:56
whocares whocares is offline
Member
 
Join Date: Nov 2009
United States
Posts: 6
Default
To fix this in include/class/class_check.php replace the current function get_access with

PHP Code:
function get_access($script) {
            global 
$mc1;
            
$ending parse_url($scriptPHP_URL_QUERY);
            
$count substr_count($ending"&");
            
$i 0;
            while (
$i <= $count) {
       if (
strpos($ending"&")){
            
$ending substr$ending0strrpos$ending"&"));
            }
            
$i++;
       }
            if ((
$class $mc1 ->get_value('av_class_'.$ending)) == false) {
            
$classid sql_query("SELECT av_class FROM staffpanel WHERE file_name LIKE '%$ending%'") or sqlerr(__file__,__line__);
            
$classid mysqli_fetch_assoc($classid);
            
$class = (int)$classid['av_class'];
            
$mc1->cache_value('av_class_' $ending$class900); //== test values 15 minutes to 0 once delete key in place //==
       
}
            return 
$class;
       } 
Reply With Quote