Coding standards
Security in ResourceSpace
Developer reference
Database
Action functions
Admin functions
Ajax functions
Annotation functions
API functions
Collections functions
Comment functions
Config functions
CSV export functions
Dash functions
Debug functions
Encryption functions
Facial recognition functions
File functions
General functions
Language functions
Log functions
Login functions
Message functions
Migration functions
Node functions
PDF functions
Plugin functions
Render functions
Reporting functions
Request functions
Research functions
Slideshow functions
Theme permission functions
User functions
Video functions
Database functions
Metadata functions
Resource functions
Search functions
Map functions
Job functions
Tab functions
Test 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())
            {
            
ps_query("DELETE FROM sysvars WHERE name='debug_override_user' OR name='debug_override_expires'",array());
            return;
            }

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

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