  |
1 | 1 | | <?php |
| |
2 | 2 | | /* |
  |
3 | | - | $Id: application_top.php 1241 2007-02-06 03:20:58Z hpdl $ |
| |
| 3 | + | $Id: application_top.php 1257 2007-02-23 23:25:59Z hpdl $ |
|
4 | 4 | | |
| |
5 | 5 | | osCommerce, Open Source E-Commerce Solutions |
| |
6 | 6 | | http://www.oscommerce.com |
| |
7 | 7 | | |
  |
8 | | - | Copyright (c) 2006 osCommerce |
| |
| 8 | + | Copyright (c) 2007 osCommerce |
|
9 | 9 | | |
| |
10 | 10 | | Released under the GNU General Public License |
| |
11 | 11 | | */ |
| |
|
|
 |
… |
|
15 | 15 | | |
| |
16 | 16 | | define('OSC_IN_ADMIN', true); |
| |
17 | 17 | | |
  |
| 18 | + | // set the level of error reporting to E_ALL except E_NOTICE |
| |
| 19 | + | error_reporting(E_ALL ^ E_NOTICE); |
| |
| 20 | + | |
|
18 | 21 | | // set the local configuration parameters - mainly for developers |
  |
19 | | - | if (file_exists('../includes/local/configure.php')) include('../includes/local/configure.php'); |
| |
| 22 | + | if ( file_exists('../includes/local/configure.php') ) { |
| |
| 23 | + | include('../includes/local/configure.php'); |
| |
| 24 | + | } |
|
20 | 25 | | |
| |
21 | 26 | | // include server parameters |
| |
22 | 27 | | require('../includes/configure.php'); |
| |
23 | 28 | | |
  |
24 | | - | // set the level of error reporting |
| |
| 29 | + | // set the level of error reporting to E_ALL |
  |
25 | 30 | | error_reporting(E_ALL); |
| |
26 | 31 | | |
| |
27 | 32 | | // Define the project version |