Parent Directory | Revision Log
import of version 3.6
1 | <?php |
2 | |
3 | # File to upgrade PHP-Nuke from 2.0x to 2.5 |
4 | # After use this, you can delete it |
5 | |
6 | include("config.php"); |
7 | include("mainfile.php"); |
8 | dbconnect(); |
9 | |
10 | $result = mysql_query("CREATE TABLE pollcomments (tid int(11) DEFAULT '0' NOT NULL auto_increment, pid int(11) DEFAULT '0', pollID int(11) DEFAULT '0', date datetime, name varchar(60) DEFAULT '' NOT NULL, email varchar(60), url varchar(60), host_name varchar(60), subject varchar(60) DEFAULT '' NOT NULL, comment text NOT NULL, score tinyint(4) DEFAULT '0' NOT NULL, reason tinyint(4) DEFAULT '0' NOT NULL, PRIMARY KEY (tid))"); |
11 | if (!$result) { |
12 | echo "Creation of pollcomments table failed!<br>" .mysql_errno(). ": ".mysql_error(). "<br>"; |
13 | return; |
14 | } |
15 | echo "PHP-Nuke Tables Updated, Ok..."; |
16 | ?> |
ViewVC Help | |
Powered by ViewVC 1.1.26 |