includes/debugger/debugConsole.config.php
changeset 311 a007145a0ff6
parent 309 a1ccf990db6b
child 312 6c7060d36a23
equal deleted inserted replaced
309:a1ccf990db6b 311:a007145a0ff6
     1 <?php
       
     2 /**
       
     3  * debugConsole configuration
       
     4  *
       
     5  * @author Andreas Demmer <info@debugconsole.de>
       
     6  * @see <http://www.debugconsole.de>
       
     7  * @version 1.2.1
       
     8  * @package debugConsole_1.2.1
       
     9  */
       
    10 
       
    11 /**
       
    12  * config container for debugConsole
       
    13  *
       
    14  * @var array
       
    15  */
       
    16 $_debugConsoleConfig = array();
       
    17 
       
    18 /**
       
    19  * use debugConsole
       
    20  */
       
    21 $_debugConsoleConfig['active'] = TRUE;
       
    22 
       
    23 /**
       
    24  * restrict access
       
    25  */
       
    26 $_debugConsoleConfig['restrictions'] = array (
       
    27 	'restrictAccess' => FALSE,
       
    28 	'allowedClientAdresses' => array('127.0.0.1')
       
    29 );
       
    30 
       
    31 /**
       
    32  * set timezone, used for PHP >= 5.1.x
       
    33  */
       
    34 putenv ('TZ=America/New_York');
       
    35 
       
    36 /**
       
    37  * focus debugConsole at end of debug-run
       
    38  */
       
    39 $_debugConsoleConfig['focus'] = TRUE;
       
    40 
       
    41 
       
    42 /**
       
    43  * logfile configuration
       
    44  */
       
    45 $_debugConsoleConfig['logfile'] = array (
       
    46 	'enable' => FALSE,
       
    47 	'path' => './',
       
    48 	'filename' => 'log.txt',
       
    49 	'disablePopup' => FALSE
       
    50 );
       
    51 
       
    52 /**
       
    53  * show or hide certain events
       
    54  */
       
    55 $_debugConsoleConfig['filters'] = array (
       
    56 	'debug' => TRUE,
       
    57 	'watches' => TRUE,
       
    58 	'checkpoints' => TRUE,
       
    59 	'timers' => TRUE,
       
    60 	'php_notices' => TRUE,
       
    61 	'php_warnings' => TRUE,
       
    62 	'php_errors' => TRUE,
       
    63 	'php_suggestions' => FALSE
       
    64 );
       
    65 
       
    66 /**
       
    67  * popup dimensions in px
       
    68  */
       
    69 $_debugConsoleConfig['dimensions'] = array (
       
    70 	'width' => 300,
       
    71 	'height' => 525
       
    72 );
       
    73 
       
    74 /**
       
    75  * javascript snippets, do not touch!
       
    76  */
       
    77 $_debugConsoleConfig['javascripts'] = array (
       
    78 	'openTag' => '<script language="JavaScript" type="text/javascript">',
       
    79 	'closeTag' => '</script>',
       
    80 	'openPopup' => 'debugConsole = window.open',
       
    81 	'closePopup' => 'debugConsole.close()',
       
    82 	'write' => 'debugConsole.document.write',
       
    83 	'scroll' => 'debugConsole.scrollBy',
       
    84 	'focus' => 'debugConsole.focus()'
       
    85 );
       
    86 
       
    87 /**
       
    88  * html snippets, do not touch!
       
    89  */
       
    90 $_debugConsoleConfig['html'] = array (
       
    91 	'header' => '
       
    92 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
       
    93   <html>
       
    94     <head>
       
    95       <title>debugConsole</title>
       
    96       <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
       
    97       <meta name="language" content="en" />
       
    98       <style type="text/css">
       
    99         * {
       
   100         	margin: 0px; 
       
   101         	padding: 0px;
       
   102         }
       
   103         
       
   104         body {
       
   105         	font-family: arial, sans-serif;
       
   106         	font-size: 0.7em;
       
   107         	color: black;
       
   108         	background-color: white;
       
   109         	padding: 5px;
       
   110         }
       
   111         
       
   112         h1 {
       
   113         	background-color: #888;
       
   114         	color: white;
       
   115         	font-size: 100%;
       
   116         	padding: 3px;
       
   117         	margin: 0px 0px 5px 0px;
       
   118         	border: 0px;
       
   119         	border-bottom: 4px solid #ccc;
       
   120         }
       
   121         
       
   122         p {
       
   123         	border: 1px solid #888;
       
   124         	border-left: 5px solid #888;
       
   125         	background-color: white;
       
   126         	padding: 3px;
       
   127         	margin: 5px 3px;
       
   128         }
       
   129         
       
   130         div {
       
   131             background-color: #eee;
       
   132             border: 1px solid #888;
       
   133             margin: 0px 0px 25px 0px;
       
   134         }
       
   135         
       
   136         .dump {
       
   137         }
       
   138         
       
   139         .dump .source {
       
   140             font-family: courier, sans-serif;
       
   141         }
       
   142                 
       
   143         .backtrace {
       
   144         	display: block;
       
   145 			color: #aaa;
       
   146         }
       
   147         
       
   148         .watch {
       
   149         	border-color: #BF1CBF;
       
   150         }
       
   151 
       
   152         .checkpoint {
       
   153         	border-color: #00E600;
       
   154         } 
       
   155         
       
   156         .timer {
       
   157         	border-color: blue;
       
   158         } 
       
   159         
       
   160         .notice, .suggestion {
       
   161         	border-color: orange;
       
   162         }
       
   163         
       
   164         .warning {
       
   165         	border-color: red;
       
   166         }
       
   167 
       
   168         .notice strong, .warning strong, .suggestion strong {
       
   169         	font-weight: bold;
       
   170         	display: block;
       
   171         }
       
   172     
       
   173         .notice strong, .suggestion strong {
       
   174         	color: orange;
       
   175         }
       
   176     
       
   177         .warning strong {
       
   178         	color: red;
       
   179         }
       
   180         
       
   181         .runtime {
       
   182             margin: 0px;
       
   183             padding: 0px;
       
   184             border: 0px;
       
   185             width: 100%;
       
   186             text-align: center;
       
   187             background-color: transparent;
       
   188             color: #666;
       
   189         }
       
   190                
       
   191       </style>
       
   192     </head>
       
   193   <body>',
       
   194 	'footer' => '</body></html>'
       
   195 );
       
   196 ?>