Advertisement
Guest User

_show_setup

a guest
Feb 12th, 2013
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.95 KB | None | 0 0
  1. <?php /* _function_show_setup.php */
  2.  
  3. function _show_setup()
  4. {
  5.   defined('jj') ?: define('jj','<br />'); # John's shortcut
  6.  
  7.   $xx = 'background-color:#ee0; color:#900; padding:1em; border:dotted 4px #f00';
  8.   echo "<dir style='" .$xx ."'>";
  9.  
  10.       echo 'function __get_setup()', jj;
  11.    
  12.       echo jj,
  13.         isset($_SESSION) ? 'SESSION ALREADY STARTED' : session_start();
  14.       echo jj,
  15.         __DIR__;
  16.       echo jj,
  17.         __FILE__;
  18.       echo jj,
  19.         error_reporting(E_ALL);
  20.       echo jj,
  21.         ini_set('display_errors',1);
  22.       echo jj,
  23.         ini_set("log_errors", 1);
  24.       echo jj,
  25.         $error_log = ini_set('error_log', dirname(__FILE__) .'\ERROR_LOG.php');
  26.      
  27.      // include 'asdf.php';
  28.      
  29.       $xx = 'background-color:#eee; color:#090; padding:1em; border:dotted 4px #f00';
  30.       echo "<pre style='" .$xx ."'>";
  31.  //       highlight_file($error_log);
  32.       echo '</pre>';
  33.   echo '</div>';    
  34. }
  35. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement