includes/common.php
changeset 229 b2f985e4cef3
parent 218 e0ec986c0af3
child 252 a007145a0ff6
equal deleted inserted replaced
228:7846d45bd250 229:b2f985e4cef3
    52 if(defined('ENANO_DEBUG') && version_compare(PHP_VERSION, '5.0.0') < 0)
    52 if(defined('ENANO_DEBUG') && version_compare(PHP_VERSION, '5.0.0') < 0)
    53 {
    53 {
    54   die(__FILE__.':'.__LINE__.': The debugConsole requires PHP 5.x.x or greater. Please comment out the ENANO_DEBUG constant in your index.php.');
    54   die(__FILE__.':'.__LINE__.': The debugConsole requires PHP 5.x.x or greater. Please comment out the ENANO_DEBUG constant in your index.php.');
    55 }
    55 }
    56 
    56 
       
    57 /*
    57 if(defined('ENANO_DEBUG'))
    58 if(defined('ENANO_DEBUG'))
    58 {
    59 {
    59   require_once(ENANO_ROOT.'/includes/debugger/debugConsole.php');
    60   require_once(ENANO_ROOT.'/includes/debugger/debugConsole.php');
    60 } else {
    61 } else {
       
    62 */
    61   function dc_here($m)     { return false; }
    63   function dc_here($m)     { return false; }
    62   function dc_dump($a, $g) { return false; }
    64   function dc_dump($a, $g) { return false; }
    63   function dc_watch($n)    { return false; }
    65   function dc_watch($n)    { return false; }
    64   function dc_start_timer($u) { return false; }
    66   function dc_start_timer($u) { return false; }
    65   function dc_stop_timer($m) { return false; }
    67   function dc_stop_timer($m) { return false; }
    66 }
    68 //}
    67 
    69 
    68 if ( file_exists( ENANO_ROOT . '/_nightly.php') )
    70 if ( file_exists( ENANO_ROOT . '/_nightly.php') )
    69   require(ENANO_ROOT.'/_nightly.php');
    71   require(ENANO_ROOT.'/_nightly.php');
    70 
    72 
    71 // List of scheduled tasks
    73 // List of scheduled tasks