Note: this list is kept only as a demonstration for CVSNotice. For the latest CVS notices, see the Xaraya and Postnuke sites
View Statistics - Next Notice - Previous NoticeDirectory filter : [ all ] / postnuke_official / html / install [ view in CVS ]
| Date | Directory [filter] | File(s) [view] | Author [filter] |
| 10 Aug 2002 12:43:56 | postnuke_official/html/install | pn71.php,1.4.2.4,1.4.2.5 | John Cox |
| minor changes to the upgrade. Should work better now, thanks to comments from larsneo. | |||
Update of /home/cvsroot/postnuke_official/html/install
In directory ns7.hostnuke.net:/tmp/cvs-serv31735/html/install
Modified Files:
Tag: PostNuke_71
pn71.php
Log Message:
minor changes to the upgrade. Should work better now, thanks to comments from larsneo.
Index: pn71.php
===================================================================
RCS file: /home/cvsroot/postnuke_official/html/install/Attic/pn71.php,v
retrieving revision 1.4.2.4
retrieving revision 1.4.2.5
diff -C2 -d -r1.4.2.4 -r1.4.2.5
*** pn71.php 4 Aug 2002 15:37:34 -0000 1.4.2.4
--- pn71.php 10 Aug 2002 12:43:54 -0000 1.4.2.5
***************
*** 69,77 ****
--- 69,87 ----
+
+
// Now for the module case issue.
+ // First change the start page.
+ $dbconn->Execute("UPDATE $pntable[blocks]
+ SET pn_value = 's:4:"news";',
+ WHERE pn_name = 'startpage'");
+
+ // Next empty the modules table -- Sucks for installed modules need to regenerate afterwards.
$dbconn->Execute("DELETE FROM $pntable[modules]");
+ // Drop the new valuses back in.
+
$result = $dbconn->Execute("INSERT INTO ".$prefix."_modules VALUES (1,'avantgo',1,'AvantGo','News for your PDA',2,'avantgo','1.3',0,1,3)") || die("<b>"._NOTUPDATED.$prefix."_modules</b>");
$result = $dbconn->Execute("INSERT INTO ".$prefix."_modules VALUES (2,'downloads',1,'Downloads','Files to download',3,'downloads','1.3',1,1,3)") || die("<b>"._NOTUPDATED.$prefix."_modules</b>");
***************
*** 113,116 ****
--- 123,183 ----
// Modules will need to be regenerated, for the modules that are added, but other than that, blee, blee, blee, thats all folks.
+
+
+ // Change permissions for 'Mail users' to 'MailUsers' in user permissions
+ $upcolumn = $pntable['user_perms_column'];
+ $result = $dbconn->Execute("SELECT $upcolumn[pid],
+ $upcolumn[component]
+ FROM $pntable[user_perms]");
+ $foundrecords = !$result->EOF;
+ while(list($pid, $component) = $result->fields) {
+ $result->MoveNext();
+
+ if (preg_match('/Mail users/', $component)) {
+ $component = preg_replace('/Mail users/', 'MailUsers', $component);
+ $dbconn->Execute("UPDATE $pntable[user_perms]
+ SET $upcolumn[component] = '" . addslashes($component) . "'
+ WHERE $upcolumn[pid] = $pid");
+ }
+ }
+ if ($foundrecords) {
+ $result->Close();
+ }
+
+ // Add in reminder to remove the install.php file
+ $bcolumn = $pntable['blocks_column'];
+ $dbconn->Execute("INSERT INTO $pntable[blocks]
+ ($bcolumn[bid],
+ $bcolumn[bkey],
+ $bcolumn[title],
+ $bcolumn[content],
+ $bcolumn[url],
+ $bcolumn[mid],
+ $bcolumn[position],
+ $bcolumn[weight],
+ $bcolumn[active],
+ $bcolumn[refresh],
+ $bcolumn[last_update],
+ $bcolumn[language])
+ VALUES
+ (0,
+ 'html',
+ 'Reminder',
+ 'Please remember to remove the following files from your PostNuke directory
+ <p>
+ ·<b>install.php</b> file
+ <p>
+ ·<b>install</b> directory
+ <p>
+ If you do not remove these files then users can obtain the password to your database!',
+ '',
+ 0,
+ 'l',
+ 0.5,
+ 1,
+ 0,
+ 0,
+ '')");
+
View Statistics - Next Notice - Previous Notice
| Visit Developer Site - Browse CVS Repository |
Syndicate via backend.rss (max. once per hour please) | Powered by CVSNotice 0.1.3 |