\n" . "HLX:CE Database Updater log

\n"; // Check version since updater wasn't implemented until version 1.6.2 $versioncomp = version_compare($g_options['version'], '1.6.1'); if ($versioncomp === -1) { // not yet at 1.6.1 echo "You cannot upgrade from this version (".$g_options['version']."). You can only upgrade from 1.6.1. Please manually apply the SQL updates found in the SQL folder through 1.6.1, then re-run this updater.\n"; } else if ($versioncomp === 0) { // at 1.6.1, up to 1.6.2 include ("./updater/update161-162.php"); } else { // at 1.6.2 or higher, can update normally echo "Currently on database version ".$g_options['dbversion']."
\n"; $i = $g_options['dbversion']+1; while (file_exists ("./updater/$i.php")) { echo "
Running database update $i
\n"; include ("./updater/$i.php"); echo "Database update for DB Version $i complete.
"; $i++; } if ($i == $g_options['dbversion']+1) { echo "Your database is already up to date (".$g_options['dbversion'].")\n"; } else { echo "
Successfully updated to database version ".($i-1)."!\n"; } } echo "

\"Warning\" You must delete the \"updater\" folder from your web site before your site will be operational.\n\n"; ?>