Collections functions
General functions
Render 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 40

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));
        }

This article was last updated 3rd October 2022 11:35 Europe/London time based on the source file dated 28th June 2022 15:27 Europe/London time.