]> git.pld-linux.org Git - packages/PHP-nuke.git/blob - PHP-nuke-official_fix.patch
- updated to 6.5, release 0.1 (any PHP-Nuke user willing to test it?)
[packages/PHP-nuke.git] / PHP-nuke-official_fix.patch
1 diff -Naur PHP-Nuke-6.0/html/includes/counter.php PHP-Nuke-6.0.oden/html/includes/counter.php
2 --- PHP-Nuke-6.0/html/includes/counter.php      2002-09-16 01:40:28.000000000 -0400
3 +++ PHP-Nuke-6.0.oden/html/includes/counter.php 2002-09-24 00:04:44.000000000 -0400
4 @@ -70,18 +70,11 @@
5         sql_query("insert into ".$prefix."_stats_month values('$nowYear','$i','0')",$dbi);
6         if ($i == 1) $TotalDay = 31;
7         if ($i == 2) {
8 -           /*
9             if (date("L") == true) {
10                 $TotalDay = 29;
11             } else {
12                 $TotalDay = 28;
13             }
14 -           */
15 -           if (($nowYear % 4) == 0) {
16 -               $TotalDay = 28;
17 -           } else {
18 -               $TotalDay = 29;
19 -           }
20         }
21         if ($i == 3) $TotalDay = 31;
22         if ($i == 4) $TotalDay = 30;
23 diff -Naur PHP-Nuke-6.0/html/includes/install.php PHP-Nuke-6.0.oden/html/includes/install.php
24 --- PHP-Nuke-6.0/html/includes/install.php      2002-09-16 01:46:47.000000000 -0400
25 +++ PHP-Nuke-6.0.oden/html/includes/install.php 2002-09-23 23:50:00.000000000 -0400
26 @@ -274,7 +274,7 @@
27    Version_Num varchar(10) NOT NULL default ''
28  )", $dbi);
29  // DO NOT REMOVE NOR CHANGE/EDIT THE FOLLOWING LINE BECAUSE IT CONTAINS COPYRIGHT INFORMATION. TO EDIT THESE VALUES GO TO THE ADMINISTRATION SYSTEM.
30 -mysql_query("INSERT INTO ".$prefix."_config VALUES ('PHP-Nuke Powered Site','http://yoursite.com','logo.gif','Your slogan here','September 2002','webmaster@yoursite.com',0,'DeepBlue','<a href=\'http://phpnuke.org\' target=\'blank\'><img src=\'images/powered/nuke.gif\' border=\'0\' Alt=\'Web site powered by PHP-Nuke\' hspace=\'10\'></a><br>','All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2002 by me','You can syndicate our news using the file <a href=\'backend.php\'><font class=\'footmsg_l\'>backend.php</font></a> or <a href=\'ultramode.txt\'><font class=\'footmsg_l\'>ultramode.txt</font></a>',4096,'Anonymous',5,1,1,1,1,10,10,1,30,0,1,'PHP-Nuke Powered Site','en-us','english','en_US',0,0,0,'me@yoursite.com','NEWS for my site','Hey! You got a new submission for your site.','webmaster','Mail sent from WebMail service at PHP-Nuke Powered Site\r\n- http://yoursite.com',1,'/var/www/html/modules/WebMail/tmp/',0,0,'modules/WebMail/attachments/','','0','Your account',-1,'modules/WebMail/images',1,0,1,1,1000,3,'*****','Web site engine\'s code is Copyright &copy; 2002 by <a href=\"http://phpnuke.org\"><font class=\'footmsg_l\'>PHP-Nuke</font></a>. All Rights Reserved. PHP-Nuke is Free Software released under the <a href=\"http://www.gnu.org\"><font class=\'footmsg_l\'>GNU/GPL license</font></a>.','6.0')", $dbi);
31 +mysql_query("INSERT INTO ".$prefix."_config VALUES ('PHP-Nuke Powered Site','http://yoursite.com','logo.gif','Your slogan here','September 2002','webmaster@yoursite.com',0,'DeepBlue','<a href=\"http://phpnuke.org\" target=\"blank\"><img src=\"images/powered/nuke.gif\" border=\"0\" Alt=\"Web site powered by PHP-Nuke\" hspace=\"10\"></a><br>','All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2002 by me','You can syndicate our news using the file <a href=\"backend.php\"><font class=\"footmsg_l\">backend.php</font></a> or <a href=\"ultramode.txt\"><font class=\"footmsg_l\">ultramode.txt</font></a>',4096,'Anonymous',5,1,1,1,1,10,10,1,30,0,1,'PHP-Nuke Powered Site','en-us','english','en_US',0,0,0,'me@yoursite.com','NEWS for my site','Hey! You got a new submission for your site.','webmaster','Mail sent from WebMail service at PHP-Nuke Powered Site\r\n- http://yoursite.com',1,'/var/www/html/modules/WebMail/tmp/',0,0,'modules/WebMail/attachments/','','0','Your account',-1,'modules/WebMail/images',1,0,1,1,1000,3,'*****','Web site engine\'s code is Copyright &copy; 2002 by <a href=\"http://phpnuke.org\"><font class=\"footmsg_l\">PHP-Nuke</font></a>. All Rights Reserved. PHP-Nuke is Free Software released under the <a href=\"http://www.gnu.org\"><font class=\"footmsg_l\">GNU/GPL license</font></a>.','6.0')", $dbi);
32  
33  /////////////////////////////////////////////
34  
35 @@ -926,8 +926,8 @@
36  
37  sql_query("CREATE TABLE ".$prefix."_pollcomments (
38    tid int(11) NOT NULL auto_increment,
39 -  pid int(11) default '0',
40 -  pollID int(11) default '0',
41 +  pid int(11) NOT NULL default '0',
42 +  pollID int(11) NOT NULL default '0',
43    date datetime default NULL,
44    name varchar(60) NOT NULL default '',
45    email varchar(60) default NULL,
46 diff -Naur PHP-Nuke-6.0/sql/nuke.sql PHP-Nuke-6.0.oden/sql/nuke.sql
47 --- PHP-Nuke-6.0/sql/nuke.sql   2002-09-16 01:46:03.000000000 -0400
48 +++ PHP-Nuke-6.0.oden/sql/nuke.sql      2002-09-23 23:48:38.000000000 -0400
49 @@ -334,7 +334,7 @@
50  # Dumping data for table 'nuke_config'
51  #
52  
53 -INSERT INTO nuke_config VALUES ('PHP-Nuke Powered Site','http://yoursite.com','logo.gif','Your slogan here','September 2002','webmaster@yoursite.com',0,'DeepBlue','<a href=\'http://phpnuke.org\' target=\'blank\'><img src=\'images/powered/nuke.gif\' border=\'0\' Alt=\'Web site powered by PHP-Nuke\' hspace=\'10\'></a><br>','All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2002 by me','You can syndicate our news using the file <a href=\'backend.php\'><font class=\'footmsg_l\'>backend.php</font></a> or <a href=\'ultramode.txt\'><font class=\'footmsg_l\'>ultramode.txt</font></a>',4096,'Anonymous',5,1,1,1,1,10,10,1,30,0,1,'PHP-Nuke Powered Site','en-us','english','en_US',0,0,0,'me@yoursite.com','NEWS for my site','Hey! You got a new submission for your site.','webmaster','Mail sent from WebMail service at PHP-Nuke Powered Site\r\n- http://yoursite.com',1,'/var/www/html/modules/WebMail/tmp/',0,0,'modules/WebMail/attachments/','','0','Your account',-1,'modules/WebMail/images',1,0,1,1,1000,3,'*****','Web site engine\'s code is Copyright &copy; 2002 by <a href=\"http://phpnuke.org\"><font class=\'footmsg_l\'>PHP-Nuke</font></a>. All Rights Reserved. PHP-Nuke is Free Software released under the <a href=\"http://www.gnu.org\"><font class=\'footmsg_l\'>GNU/GPL license</font></a>.','6.0');
54 +INSERT INTO nuke_config VALUES ('PHP-Nuke Powered Site','http://yoursite.com','logo.gif','Your slogan here','September 2002','webmaster@yoursite.com',0,'DeepBlue','<a href=\"http://phpnuke.org\" target=\"blank\"><img src=\"images/powered/nuke.gif\" border=\"0\" Alt=\"Web site powered by PHP-Nuke\" hspace=\"10\"></a><br>','All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2002 by me','You can syndicate our news using the file <a href=\"backend.php\"><font class=\"footmsg_l\">backend.php</font></a> or <a href=\"ultramode.txt\"><font class=\"footmsg_l\">ultramode.txt</font></a>',4096,'Anonymous',5,1,1,1,1,10,10,1,30,0,1,'PHP-Nuke Powered Site','en-us','english','en_US',0,0,0,'me@yoursite.com','NEWS for my site','Hey! You got a new submission for your site.','webmaster','Mail sent from WebMail service at PHP-Nuke Powered Site\r\n- http://yoursite.com',1,'/var/www/html/modules/WebMail/tmp/',0,0,'modules/WebMail/attachments/','','0','Your account',-1,'modules/WebMail/images',1,0,1,1,1000,3,'*****','Web site engine\'s code is Copyright &copy; 2002 by <a href=\"http://phpnuke.org\"><font class=\"footmsg_l\">PHP-Nuke</font></a>. All Rights Reserved. PHP-Nuke is Free Software released under the <a href=\"http://www.gnu.org\"><font class=\"footmsg_l\">GNU/GPL license</font></a>.','6.0');
55  
56  
57  #
58 @@ -1240,8 +1240,8 @@
59  
60  CREATE TABLE nuke_pollcomments (
61    tid int(11) NOT NULL auto_increment,
62 -  pid int(11) default '0',
63 -  pollID int(11) default '0',
64 +  pid int(11) NOT NULL default '0',
65 +  pollID int(11) NOT NULL default '0',
66    date datetime default NULL,
67    name varchar(60) NOT NULL default '',
68    email varchar(60) default NULL,
69 diff -Naur PHP-Nuke-6.0/upgrades/upgrade56-60.php PHP-Nuke-6.0.oden/upgrades/upgrade56-60.php
70 --- PHP-Nuke-6.0/upgrades/upgrade56-60.php      2002-09-16 01:44:53.000000000 -0400
71 +++ PHP-Nuke-6.0.oden/upgrades/upgrade56-60.php 2002-09-23 23:53:27.000000000 -0400
72 @@ -63,9 +63,9 @@
73  if ($adminmail == "") { $adminmail = "webmaster@yoursite.com"; }
74  if ($anonpost == "") { $anonpost = 0; }
75  if ($Default_Theme == "") { $Default_Theme = "NukeNews"; }
76 -if ($foot1 == "") { $foot1 = "<a href='http://phpnuke.org' target='blank'><img src='images/powered/nuke.gif' border='0' Alt='Web site powered by PHP-Nuke' hspace='10'></a>"; }
77 +if ($foot1 == "") { $foot1 = "<a href=\"http://phpnuke.org\" target=\"blank\"><img src=\"images/powered/nuke.gif\" border=\"0\" Alt=\"Web site powered by PHP-Nuke\" hspace=\"10\"></a>"; }
78  if ($foot2 == "") { $foot2 = "All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest © 2002 by $sitename"; }
79 -if ($foot3 == "") { $foot3 = "You can syndicate our news using the file <a href='backend.php'>backend.php</a> or <a href='ultramode.txt'>ultramode.txt</a>"; }
80 +if ($foot3 == "") { $foot3 = "You can syndicate our news using the file <a href=\"backend.php\">backend.php</a> or <a href=\"ultramode.txt\">ultramode.txt</a>"; }
81  if ($commentlimit == "") { $commentlimit = 4096; }
82  if ($anonymous == "") { $anonymous = "Anonymous"; }
83  if ($minpass == "") { $minpass = 5; }
84 @@ -93,7 +93,7 @@
85  if ($httprefmax == "") { $httprefmax = 1000; }
86  if ($CensorMode == "") { $CensorMode = 0; }
87  if ($CensorReplace == "") { $CensorReplace = "*****"; }
88 -$copyright = "Web site engine's code is Copyright &copy; 2002 by <a href=\"http://phpnuke.org\"><font class='footmsg_l'>PHP-Nuke</font></a>. All Rights Reserved. PHP-Nuke is Free Software released under the <a href=\"http://www.gnu.org\"><font class='footmsg_l'>GNU/GPL license</font></a>.";
89 +$copyright = "Web site engine\'s code is Copyright &copy; 2002 by <a href=\"http://phpnuke.org\"><font class=\"footmsg_l\">PHP-Nuke</font></a>. All Rights Reserved. PHP-Nuke is Free Software released under the <a href=\"http://www.gnu.org\"><font class=\"footmsg_l\">GNU/GPL license</font></a>.";
90  $broadcast_msg = 1;
91  $my_headlines = 1;
92  $user_news = 1;
This page took 0.062541 seconds and 3 git commands to generate.