Advertisement
Guest User

Untitled

a guest
Jun 29th, 2014
216
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.77 KB | None | 0 0
  1. // Display Errors
  2. error_reporting(E_ALL); ini_set('display_errors',true);
  3. $modx->setLogTarget('HTML');
  4. $modx->setLogLevel(modx::LOG_LEVEL_WARN);
  5.  
  6. // display non-system placeholders
  7. $output_array = array();
  8. $array = $modx->placeholders;
  9. foreach ($array as $key => $value) {
  10.     if (strpos($key,'+') !== 0) $output_array[$key] = $value;
  11. }
  12. $output .= '<pre>';
  13. $output .= '<br /><br />Placeholders: '.htmlentities(print_r($output_array,1));
  14.  
  15. // display global arrays
  16. if (!empty($_REQUEST)) {
  17.     $output .= '<br /><br />REQUEST: '.htmlentities(print_r($_REQUEST,1));
  18. }
  19. if (!empty($_POST)) {
  20.     $output .= '<br /><br />POST: '.htmlentities(print_r($_POST,1));
  21. }
  22. if (!empty($_GET)) {
  23.     $output .= '<br /><br />GET: '.htmlentities(print_r($_GET,1));
  24. }
  25. $output .= '</pre>';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement