Fixed a bug in the convert.php script which inserted the wrong database version number

This caused phpLogCon to force an database upgrade which is not needed at all.
This commit is contained in:
Andre Lorbach 2008-10-24 17:35:57 +02:00
parent 2368febba9
commit 2d089f1c94
4 changed files with 6 additions and 6 deletions

View File

@ -162,7 +162,7 @@ else if ( $content['CONVERT_STEP'] == 3 )
} }
// Append INSERT Statement for Config Table to set the Database Version ^^! // Append INSERT Statement for Config Table to set the Database Version ^^!
$mycommands[count($mycommands)] = "INSERT INTO `" . GetConfigSetting("UserDBPref") . "config` (`propname`, `propvalue`, `is_global`) VALUES ('database_installedversion', '" . $content['database_internalversion'] . "', " . $content['database_internalversion'] . ")"; $mycommands[count($mycommands)] = "INSERT INTO `" . GetConfigSetting("UserDBPref") . "config` (`propname`, `propvalue`, `is_global`) VALUES ('database_installedversion', '" . $content['database_internalversion'] . "', 1)";
// --- Now execute all commands // --- Now execute all commands
ini_set('error_reporting', E_WARNING); // Enable Warnings! ini_set('error_reporting', E_WARNING); // Enable Warnings!

View File

@ -260,7 +260,7 @@ else if ( $content['INSTALL_STEP'] == 3 )
if ( isset($_GET['errormsg']) ) if ( isset($_GET['errormsg']) )
{ {
$content['iserror'] = "true"; $content['iserror'] = "true";
$content['errormsg'] = urldecode($_GET['errormsg']); $content['errormsg'] = urldecode( DB_StripSlahes($_GET['errormsg']) );
} }
} }
else if ( $content['INSTALL_STEP'] == 4 ) else if ( $content['INSTALL_STEP'] == 4 )
@ -461,7 +461,7 @@ else if ( $content['INSTALL_STEP'] == 6 )
if ( isset($_GET['errormsg']) ) if ( isset($_GET['errormsg']) )
{ {
$content['iserror'] = "true"; $content['iserror'] = "true";
$content['errormsg'] = urldecode($_GET['errormsg']); $content['errormsg'] = urldecode( DB_StripSlahes($_GET['errormsg']) );
} }
} }
else // NO Database means NO user management, so next step! else // NO Database means NO user management, so next step!
@ -553,7 +553,7 @@ else if ( $content['INSTALL_STEP'] == 7 )
if ( isset($_GET['errormsg']) ) if ( isset($_GET['errormsg']) )
{ {
$content['iserror'] = "true"; $content['iserror'] = "true";
$content['errormsg'] = urldecode($_GET['errormsg']); $content['errormsg'] = urldecode( DB_StripSlahes($_GET['errormsg']) );
} }
} }
else if ( $content['INSTALL_STEP'] == 8 ) else if ( $content['INSTALL_STEP'] == 8 )

View File

@ -27,7 +27,7 @@
<table width="100%" cellpadding="2" cellspacing="1" border="0" align="center" class="with_border_alternate"> <table width="100%" cellpadding="2" cellspacing="1" border="0" align="center" class="with_border_alternate">
<tr> <tr>
<td class="title"> <td class="title">
<h1 align="center">{LN_CONVERT_TITLETOP}</h1> <h3 align="center">{LN_CONVERT_TITLETOP}</h3>
</td> </td>
</tr> </tr>
</table> </table>

View File

@ -56,7 +56,7 @@
<table width="100%" cellpadding="2" cellspacing="1" border="0" align="center" class="with_border_alternate"> <table width="100%" cellpadding="2" cellspacing="1" border="0" align="center" class="with_border_alternate">
<tr> <tr>
<td class="title"> <td class="title">
<h1 align="center">{INSTALL_TITLETOP}</h1> <h3 align="center">{INSTALL_TITLETOP}</h3>
</td> </td>
</tr> </tr>
</table> </table>