Collections functions
General functions
Render functions
Theme permission functions
User functions
Resource functions

override_rs_variables_by_eval()

Description

Run PHP code on array of variables. Used for modifying $GLOBALS.

Parameters

ColumnTypeDefaultDescription
$variables array Array of variables to apply override on.
$code string Signed string containing the PHP code to run.

Return

void

Location

include/config_functions.php lines 1414 to 1427

Definition

 
function override_rs_variables_by_eval(array $variablesstring $code)
    {
    
$temp_variables $variables;

    
extract($temp_variablesEXTR_REFS EXTR_SKIP);
    eval(
eval_check_signed($code));

    foreach(
$temp_variables as $temp_variable_name => $temp_variable_val)
        {
        
$GLOBALS[$temp_variable_name] = $temp_variable_val;
        }

    return;
    }

This article was last updated 10th December 2023 07:05 Europe/London time based on the source file dated 10th November 2023 10:50 Europe/London time.