Collections functions
General functions
Node functions
Render functions
Theme permission functions
User 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)
        {
        
ps_query("DELETE FROM sysvars WHERE name='debug_override_user' OR name='debug_override_expires'",array());
        
$debug_expires += time();
        
ps_query("INSERT INTO sysvars VALUES ('debug_override_user',?), ('debug_override_expires',?)",
        array(
"s",$debug_user,"s",$debug_expires));
        
clear_query_cache("sysvars");
        }

This article was last updated 23rd July 2024 21:05 Europe/London time based on the source file dated 4th June 2024 14:15 Europe/London time.