From: Don S. <ri...@us...> - 2004-03-16 04:01:17
|
Update of /cvsroot/phpwsbb/phpwsbb/boost In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv19406/boost Modified Files: install.sql update.php Log Message: RFE #906879: Added offline mode Index: install.sql =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/boost/install.sql,v retrieving revision 1.12 retrieving revision 1.13 diff -C2 -d -r1.12 -r1.13 *** install.sql 1 Feb 2004 03:59:52 -0000 1.12 --- install.sql 16 Mar 2004 03:52:03 -0000 1.13 *************** *** 81,85 **** showlatestthreadsblock smallint NOT NULL default '0', latestthreadsblocktitle varchar(80) NULL, ! maxlatestthreads int 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); --- 81,86 ---- showlatestthreadsblock smallint NOT NULL default '0', latestthreadsblocktitle varchar(80) NULL, ! maxlatestthreads int NOT NULL default '0', ! 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); Index: update.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/boost/update.php,v retrieving revision 1.26 retrieving revision 1.27 diff -C2 -d -r1.26 -r1.27 *** update.php 2 Mar 2004 02:40:48 -0000 1.26 --- update.php 16 Mar 2004 03:52:03 -0000 1.27 *************** *** 198,200 **** --- 198,208 ---- } + 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 />"; + } + } + ?> |