Changeset 2094 in ExiteCMS
- Timestamp:
- 12/06/08 22:42:30 (3 years ago)
- Location:
- trunk/includes
- Files:
-
- 2 edited
-
core_functions.php (modified) (4 diffs)
-
db_functions.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/includes/core_functions.php
r2074 r2094 56 56 } 57 57 58 // store the magic quotes setting 59 define("QUOTES_GPC", (ini_get('magic_quotes_gpc') ? TRUE : FALSE)); 60 61 // Browser window dimensions (assume 1024x768 if no cookies found) 62 define("BROWSER_WIDTH", isset($_COOKIE['width']) ? $_COOKIE['width'] : 1024); 63 define("BROWSER_HEIGHT", isset($_COOKIE['height']) ? $_COOKIE['height'] : 768); 64 58 65 // disable the standard PHP include path (empty's not accepted?) 59 66 ini_set('include_path', '.'); … … 109 116 while ($data = dbarray($result)) { 110 117 $settings[$data['cfg_name']] = $data['cfg_value']; 118 } 119 120 // activate PHP error reporting 121 if (isset($settings['debug_php_errors']) && $settings['debug_php_errors']) { 122 error_reporting(E_ALL); 111 123 } 112 124 … … 173 185 define("USER_IP", '0.0.0.0'); 174 186 } 175 // store the magic quotes setting176 define("QUOTES_GPC", (ini_get('magic_quotes_gpc') ? TRUE : FALSE));177 178 // Browser window dimensions (assume 1024x768 if no cookies found)179 define("BROWSER_WIDTH", isset($_COOKIE['width']) ? $_COOKIE['width'] : 1024);180 define("BROWSER_HEIGHT", isset($_COOKIE['height']) ? $_COOKIE['height'] : 768);181 187 182 188 // load the user functions … … 185 191 // set the query log debugging switch, enable error reporting if needed 186 192 $_db_log = checkgroup($settings['debug_querylog'], false); 187 188 // activate PHP error reporting189 if (isset($settings['debug_php_errors']) && $settings['debug_php_errors']) {190 error_reporting(E_ALL);191 }192 193 193 194 // load the locale functions -
trunk/includes/db_functions.php
r1991 r2094 101 101 102 102 // bail out if an error occurred and we're NOT in CLI mode! 103 if ( !CMS_CLI&& !$result) {103 if ((defined('CMS_CLI') && !CMS_CLI) && !$result) { 104 104 if ($display || $settings['debug_querylog']) { 105 105 echo "<pre><br />Query: ".$query."<br />";
Note: See TracChangeset
for help on using the changeset viewer.
