diff --git a/common.php b/common.php index 404db36..d74585b 100644 --- a/common.php +++ b/common.php @@ -2,8 +2,8 @@ /** * * @package MX-Publisher Core -* @version $Id: common.php,v 1.123 2024/04/02 06:19:17 orynider Exp $$ -* @copyright (c) 2002-2023 MX-Publisher Development Team +* @version $Id: common.php,v 1.123 2024/04/10 06:19:17 orynider Exp $$ +* @copyright (c) 2002-2024 MX-Publisher Development Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * @link http://mxpcms.sourceforge.net/ * @@ -22,10 +22,13 @@ define('E_STRICT', 2048); } +//Overwrite config.sys settings if (!defined('MX_ENVIRONMENT')) { - @define('MX_ENVIRONMENT', 'production'); + //@define('MX_ENVIRONMENT', 'production'); + @define('MX_DISPLAY_LOAD_TIME', true); @define('MX_ENVIRONMENT', 'development'); + @define('DEBUG_CONTAINER', true); } /* @@ -44,11 +47,12 @@ define('DEBUG', true); // [Admin Option] Show Footer debug stats - Actually set in phpBB/includes/constants.php define('DEBUG_EXTRA', true); // [Admin Option] Show memory usage. Show link to full SQL debug report in footer. Beware, this makes the page slow to load. For debugging only. define('INCLUDES', 'includes/'); //Main Includes folder -@ini_set('display_errors', '1'); -//@error_reporting(E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables -//@error_reporting(E_ALL | E_NOTICE | E_STRICT); -@error_reporting(E_ALL & ~E_NOTICE); //Default error reporting in PHP 5.2+ -@session_cache_expire (1440); +ini_set('display_errors', '1'); +//error_reporting(E_ERROR | E_WARNING | E_PARSE); // This will NOT report uninitialized variables +//error_reporting(E_ALL | E_NOTICE | E_STRICT); +//error_reporting(E_ALL & ~E_NOTICE); //Default error reporting in PHP 5.2+ +error_reporting(E_ALL); +session_cache_expire (1440); @set_time_limit (1500); // ================================================================================