Collections functions
Encryption functions
General functions
Theme permission functions
Resource functions

create_debug_log_override()

Parameters

ColumnTypeDefaultDescription
$debug_user -1
$debug_expires 60

Location

include/debug_functions.php lines 34 to 41

Definition

 
    
function create_debug_log_override($debug_user = -1$debug_expires 60)
        {
        
sql_query("DELETE FROM sysvars WHERE name='debug_override_user' OR name='debug_override_expires'");
        
$debug_expires += time();
        
$debug_user_escaped escape_check($debug_user);
        
$debug_expires_escaped escape_check($debug_expires);
        
sql_query("INSERT INTO sysvars VALUES ('debug_override_user','{$debug_user_escaped}'), ('debug_override_expires','{$debug_expires_escaped}')");
        }

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