# HG changeset patch # User Dan # Date 1199934822 18000 # Node ID a48b72312f6d33376ef8710f743b00c97cf684de # Parent 4da2dfc2872897606744f36aaa79e27b90297839 Fix undefined E_STRICT under PHP 4; add PHP 4 deprecation notice in admin panel diff -r 4da2dfc28728 -r a48b72312f6d includes/common.php --- a/includes/common.php Tue Jan 01 22:50:49 2008 -0500 +++ b/includes/common.php Wed Jan 09 22:13:42 2008 -0500 @@ -60,7 +60,16 @@ $_starttime = microtime_float(); // Verbose error reporting -error_reporting(E_ALL & ~E_STRICT); +if ( defined('E_STRICT') ) +{ + // PHP5, PHP6 + error_reporting(E_ALL & ~E_STRICT); +} +else +{ + // PHP4 + error_reporting(E_ALL); +} // // Determine the location of Enano as an absolute path. diff -r 4da2dfc28728 -r a48b72312f6d plugins/SpecialAdmin.php --- a/plugins/SpecialAdmin.php Tue Jan 01 22:50:49 2008 -0500 +++ b/plugins/SpecialAdmin.php Wed Jan 09 22:13:42 2008 -0500 @@ -69,6 +69,22 @@
If you borked something up, or if you\'re done testing, you can reset this site. The site is reset automatically once every two hours. When a reset is performed, all custom modifications to the site are lost and replaced with default values.
'; } + // If we're on PHP4, warn the user + // Enano is not supported on PHP4 after December 31, 2007. + if ( version_compare(PHP_VERSION, '5.0.0', '<') ) + { + echo '