diff options
author | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-04-20 23:44:35 +0000 |
---|---|---|
committer | Paul S. Owen <psotfx@users.sourceforge.net> | 2002-04-20 23:44:35 +0000 |
commit | 310e9af89028f28bb679e2d2c6f95ec8e25f2334 (patch) | |
tree | 87e28a42639830271608b6be0f4226a0214c2469 | |
parent | 9649ececed8a283ff3c63c2db4f9a0ccc5d9763c (diff) | |
download | forums-310e9af89028f28bb679e2d2c6f95ec8e25f2334.tar forums-310e9af89028f28bb679e2d2c6f95ec8e25f2334.tar.gz forums-310e9af89028f28bb679e2d2c6f95ec8e25f2334.tar.bz2 forums-310e9af89028f28bb679e2d2c6f95ec8e25f2334.tar.xz forums-310e9af89028f28bb679e2d2c6f95ec8e25f2334.zip |
And again something screws up causing a "not up to date" check failure ...
git-svn-id: file:///svn/phpbb/trunk@2538 89ea8834-ac86-4346-8a33-228a782c2dd0
-rw-r--r-- | phpBB/update_script.php | 66 |
1 files changed, 0 insertions, 66 deletions
diff --git a/phpBB/update_script.php b/phpBB/update_script.php deleted file mode 100644 index 7a3d200742..0000000000 --- a/phpBB/update_script.php +++ /dev/null @@ -1,66 +0,0 @@ -<html> -<body> -<?php - -define('IN_PHPBB', 1); -$phpbb_root_path = './'; -include($phpbb_root_path . 'extension.inc'); -include($phpbb_root_path . 'config.'.$phpEx); -include($phpbb_root_path . 'includes/constants.'.$phpEx); -include($phpbb_root_path . 'includes/functions.'.$phpEx); -include($phpbb_root_path . 'includes/db.'.$phpEx); - -$sql = "SELECT config_value - FROM " . CONFIG_TABLE . " - WHERE config_name = 'version'"; -if ( !($result = $db->sql_query($sql)) ) -{ - die("Couldn't obtain version info"); -} - -if ( $row = $db->sql_fetchrow($result) ) -{ - $sql = array(); - switch ( $row['config_value'] ) - { - case '.0.0': - case '.1.0 [20020402]': - echo 'Updating from [20020402] :: '; - flush(); - - $sql[] = "INSERT INTO " . CONFIG_TABLE . " (config_name, config_value) - VALUES ('session_gc', '3600')"; - $sql[] = "INSERT INTO " . CONFIG_TABLE . " (config_name, config_value) - VALUES ('session_last_gc', '0')"; - - echo '<span style="color:green">DONE</span><br /><br />'; - break; - default; - echo 'No updates made<br /><br />'; - } - - if ( count($sql) ) - { - for($i = 0; $i < count($sql); $i++) - { - if ( !($result = $db->sql_query($sql[$i])) ) - { - die("Couldn't run update >> " . $sql); - } - } - } -} - -$sql = "UPDATE " . CONFIG_TABLE . " - SET config_value = '.1.0 [20020420]' - WHERE config_name = 'version'"; -if ( !($result = $db->sql_query($sql)) ) -{ - die("Couldn't update version info"); -} - -echo "\n<br />\n<b>COMPLETE!</b><br />\n"; -echo "\n<p>Don't forget to delete this file!</p>\n"; -?> -</body> -</html> |