View Single Post
  #7  
Old 9th November 2016, 09:57
puppy puppy is offline
Member
 
Join Date: Feb 2016
P2P
Posts: 13
Default
Quote:
Does this happen when you do other things as staff? If so then check cache/staff_setting.php and cache/staff_sttings2.php to see if they have correct info.
They have all the correct information mate.

Quote:
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;
       } 
Thanks for the helping hand
Reply With Quote