home *** CD-ROM | disk | FTP | other *** search
- <?php
-
- ######################################################
- # File to upgrade from PHP-Nuke 7.0 to PHP-Nuke 7.1
- # After you used this file, you can safely delete it.
- ######################################################
- # -= WARNING: PLEASE READ =-
- #
- # NOTE: This file uses config.php to retrieve needed
- # variables values. So, to do the upgrade PLEASE copy
- # this file in your server root directory and execute
- # it from your browser.
- ######################################################
-
- include("mainfile.php");
-
- // Subscription Table Creation
- $db->sql_query("CREATE TABLE ".$prefix."_subscriptions (id INT( 10 ) DEFAULT '0' AUTO_INCREMENT, userid INT( 10 ) DEFAULT '0', subscription_expire VARCHAR( 50 ) NOT NULL , INDEX ( id , userid ))");
- $db->sql_query("ALTER TABLE ".$prefix."_blocks ADD subscription INT(1) DEFAULT '0' NOT NULL");
-
- // PHP-Nuke copyright notice modification to be GPL 2(c) section compliant.
- $db->sql_query("UPDATE ".$prefix."_config SET copyright='PHP-Nuke Copyright © 2004 by Francisco Burzi. This is free software, and you may redistribute it under the <a href=\"http://phpnuke.org/files/gpl.txt\">GPL</a>. PHP-Nuke comes with absolutely no warranty, for details, see the <a href=\"http://phpnuke.org/files/gpl.txt\">license</a>.'");
-
- // PHP-Nuke Version Number Update
- $db->sql_query("UPDATE ".$prefix."_config SET Version_Num='7.1'");
-
- echo "PHP-Nuke Update finished!<br><br>"
- ."You should now delete this upgrade file from your server.<br><br>";
- ?>
-