View difference between Paste ID: r6Sk5Tac and Qy7H6TYU
SHOW: | | - or go back to the newest paste.
1
$output = '';
2
3
// Display Errors
4
error_reporting(E_ALL); ini_set('display_errors',true);
5
$modx->setLogTarget('HTML');
6
$modx->setLogLevel(modx::LOG_LEVEL_WARN);
7
8
// display non-system placeholders
9
$output_array = array();
10
$array = $modx->placeholders;
11
foreach ($array as $key => $value) {
12
    if (strpos($key,'+') !== 0) $output_array[$key] = $value;
13
}
14
$output .= '<pre>';
15
$output .= '<br /><br />Placeholders: '.htmlentities(print_r($output_array,1));
16
17
// display global arrays
18
if (!empty($_REQUEST)) {
19
    $output .= '<br /><br />REQUEST: '.htmlentities(print_r($_REQUEST,1));
20
}
21
if (!empty($_POST)) {
22
    $output .= '<br /><br />POST: '.htmlentities(print_r($_POST,1));
23
}
24
if (!empty($_GET)) {
25-
$output .= '</pre>';
25+
26
}
27
$output .= '</pre>';
28
29
30
return $output;