Remove obsolete code, fixed timezone on some machines:
authorRoland Häder <roland@mxchange.org>
Mon, 23 Aug 2010 10:14:35 +0000 (10:14 +0000)
committerRoland Häder <roland@mxchange.org>
Mon, 23 Aug 2010 10:14:35 +0000 (10:14 +0000)
- Removed obsolete code which avoids endless redirect and dublicate filter-chain call
- Added to load ext-timezone (badly hardcoded) to have timezone set on some servers
- TODOs.txt updated

DOCS/TODOs.txt
inc/install-inc.php
inc/mysql-connect.php

index 21a0837eb8eaa661e862955221888e5182537ea5..9b949e3456d4405ed2ba0642dd9d732912d9a5d3 100644 (file)
@@ -4,7 +4,6 @@
 ./beg.php:165:                 // @TODO Opps, what is missing here???
 ./birthday_confirm.php:95:             // @TODO Try to rewrite the following unset()
 ./inc/autopurge/purge-inact.php:57:    // @TODO Rewrite these if() blocks to a filter
-./inc/cache/config-local.php:126:// @TODO Rewrite the following three constants, somehow...
 ./inc/classes/cachesystem.class.php:474:       // @TODO Add support for more types which break in last else-block
 ./inc/config-functions.php:141:        // @TODO Make this all better... :-/
 ./inc/expression-functions.php:166:// @TODO FILTER_COMPILE_CONFIG does not handle call-back functions so we handle it here again
index c65b742c04378a3789eef21f64e64437497b073e..5b3337251a9e64c584e80c6a1a05a51bafde0c21 100644 (file)
@@ -46,6 +46,15 @@ if (!defined('__SECURITY')) {
        die();
 } // END - if
 
+// Load extension timezone
+loadExtension('timezone', 'test');
+
+// Set config entry
+setConfigEntry('timezone', 'Europe/Berlin');
+
+// And init timezone
+FILTER_INIT_TIMEZONE();
+
 // Init variables
 $GLOBALS['install_mysql'] = array();
 if ((isPostRequestParameterSet('mysql')) && (is_array(postRequestParameter('mysql')))) {
index 959ccfd6828f3a2ce686034dc161f3c95daebb55..076faa56f2d88f519300a1c722deb7cc1e4eb066 100644 (file)
@@ -152,15 +152,6 @@ if ((!isInstalling()) && (!isInstallationPhase())) {
 
        // Load cache
        loadIncludeOnce('inc/load_cache.php');
-
-       // Run the init filter chain
-       runFilterChain('init');
-
-       // Are we installation routine?
-       if ((!isInstalling()) && (!isCssOutputMode()) && (!isRawOutputMode())) {
-               // You have to install first!
-               redirectToUrl('install.php');
-       } // END - if
 }
 
 // Handle fatal errors