Collections functions
Encryption functions
General functions
Render functions
Theme permission functions
Video functions
Resource functions

check_debug_log_override()

Parameters

This function accepts no parameters.

Location

include/debug_functions.php lines 3 to 32

Definition

 
    
function check_debug_log_override()
        {
        global 
$debug_log_override$userref;

        if (isset(
$debug_log_override) || !isset($userref))
            {
            return;
            }

        
$debug_log_override false;

        
$debug_user get_sysvar('debug_override_user','');
        
$debug_expires get_sysvar('debug_override_expires','');

        if (
$debug_user == "" || $debug_expires == "")
            {
            return;
            }

        if (
$debug_expires time())
            {
            
sql_query("DELETE FROM sysvars WHERE name='debug_override_user' OR name='debug_override_expires'");
            return;
            }

        if (
$debug_user == -|| $debug_user == $userref)
            {
            
$debug_log_override true;
            }
        }

This article was last updated 30th November 2020 13:05 Europe/London time based on the source file dated 13th May 2020 09:11 Europe/London time.