Advertisement
Guest User

Untitled

a guest
Jun 29th, 2014
337
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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 .= '<br /><br />GET: '.htmlentities(print_r($_GET,1));
  26. }
  27. $output .= '</pre>';
  28.  
  29.  
  30. return $output;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement