mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-25 19:38:53 +00:00
Update a few things for 2.1 CVS
git-svn-id: file:///svn/phpbb/trunk@2487 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
a676b8fdf8
commit
214f16f791
1 changed files with 42 additions and 0 deletions
42
phpBB/update_script.php
Normal file
42
phpBB/update_script.php
Normal file
|
@ -0,0 +1,42 @@
|
|||
<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) )
|
||||
{
|
||||
if ( $row['config_value'] != '.1.0 [20020402]' )
|
||||
{
|
||||
$sql = "UPDATE " . CONFIG_TABLE . "
|
||||
SET config_value = '.1.0 [20020402]'
|
||||
WHERE config_name = 'version'";
|
||||
if ( !($result = $db->sql_query($sql)) )
|
||||
{
|
||||
die("Couldn't update version info");
|
||||
}
|
||||
|
||||
die("UPDATING COMPLETE");
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
echo "\n<br />\n<b>COMPLETE!</b><br />\n";
|
||||
echo "\n<p>Don't forget to delete this file!</p>\n";
|
||||
?>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Reference in a new issue