Update of /cvsroot/phpwsbb/phpwsbb/boost
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27984/boost
Modified Files:
install.sql update.php
Log Message:
RFE 86265 Added 'Allow User Monitors' Setting
Index: install.sql
===================================================================
RCS file: /cvsroot/phpwsbb/phpwsbb/boost/install.sql,v
retrieving revision 1.13
retrieving revision 1.14
diff -C2 -d -r1.13 -r1.14
*** install.sql 16 Mar 2004 03:52:03 -0000 1.13
--- install.sql 18 Mar 2004 04:28:07 -0000 1.14
***************
*** 77,80 ****
--- 77,81 ----
email_text text,
monitor_posts smallint NOT NULL default '0',
+ allow_user_monitors smallint NOT NULL default '1',
showforumsblock smallint NOT NULL default '0',
forumsblocktitle varchar(80) NULL,
***************
*** 84,86 ****
bboffline smallint NOT NULL default '0'
);
! INSERT INTO mod_phpwsbb_settings VALUES (1, 1, NULL, 'The thread [name] has been updated. Go to [url] to view it.', 0, 1, 'Forums', 1, 'Latest Forum Posts', 5, 0);
--- 85,87 ----
bboffline smallint NOT NULL default '0'
);
! INSERT INTO mod_phpwsbb_settings VALUES (1, 1, NULL, 'The thread [name] has been updated. Go to [url] to view it.', 0, 1, 1, 'Forums', 1, 'Latest Forum Posts', 5, 0);
Index: update.php
===================================================================
RCS file: /cvsroot/phpwsbb/phpwsbb/boost/update.php,v
retrieving revision 1.27
retrieving revision 1.28
diff -C2 -d -r1.27 -r1.28
*** update.php 16 Mar 2004 03:52:03 -0000 1.27
--- update.php 18 Mar 2004 04:28:07 -0000 1.28
***************
*** 186,191 ****
"showlatestthreadsblock"=>1,
"latestthreadsblocktitle"=>"Latest Forum Posts",
! "maxlatestthreads"=>5
! )
, "mod_phpwsbb_settings")) {
$content .= "phpwsBB settings table successfully updated.<br />";
--- 186,190 ----
"showlatestthreadsblock"=>1,
"latestthreadsblocktitle"=>"Latest Forum Posts",
! "maxlatestthreads"=>5 )
, "mod_phpwsbb_settings")) {
$content .= "phpwsBB settings table successfully updated.<br />";
***************
*** 199,204 ****
if($currentVersion < "0.9.0") {
! if($status = $GLOBALS["core"]->query("ALTER TABLE mod_phpwsbb_settings ADD bboffline smallint NOT NULL default '0'", TRUE)) {
$content .= "phpwsBB settings table successfully updated.<br />";
} else {
$content .= "There was a problem updating the phpwsBB settings.<br />";
--- 198,211 ----
if($currentVersion < "0.9.0") {
! if($status = $GLOBALS["core"]->query("ALTER TABLE mod_phpwsbb_settings ADD bboffline smallint NOT NULL default '0', ADD allow_user_monitors smallint NOT NULL default '1'", TRUE)) {
$content .= "phpwsBB settings table successfully updated.<br />";
+ if($status = $GLOBALS["core"]->sqlUpdate(
+ array( "allow_user_monitors"=>1,
+ "bboffline"=>0 )
+ , "mod_phpwsbb_settings")) {
+ $content .= "phpwsBB settings table successfully updated.<br />";
+ } else {
+ $content .= "There was a problem updating the phpwsBB settings.<br />";
+ }
} else {
$content .= "There was a problem updating the phpwsBB settings.<br />";
|