From: <ada...@us...> - 2003-07-19 18:05:21
|
Update of /cvsroot/phpwebsite-comm/modules/article/boost In directory sc8-pr-cvs1:/tmp/cvs-serv436/boost Modified Files: install.sql Added Files: update.php Log Message: Printable version can now show site header & footer if set in the Configuration menu --- NEW FILE: update.php --- <?php if (!$_SESSION["OBJ_user"]->isDeity()) { header("location:index.php"); exit(); } $status = 1; if($currentVersion < 1.3) { $content .= 'Updating Article Manager to version 1.3<br />'; $content .= 'Adding column "brand_printable" to "mod_article_config".<br />'; $sql = 'ALTER TABLE ' . $GLOBALS['core']->tbl_prefix . 'mod_article_config ADD `brand_printable` smallint NOT NULL DEFAULT "0" AFTER `make_metatags`'; $result = $GLOBALS['core']->query($sql); if(DB::isError($result)) { $content .= 'There was an error when attempting to alter the mod_article_config table:<br />' . $result->getMessage() . '<br />'; $status = 0; } else { $content .= 'Column added successfully!'; } } ?> Index: install.sql =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/article/boost/install.sql,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** install.sql 14 Jul 2003 20:46:21 -0000 1.2 --- install.sql 19 Jul 2003 18:05:11 -0000 1.3 *************** *** 95,102 **** lock_expiration_time int NOT NULL DEFAULT '3600', make_metatags smallint NOT NULL DEFAULT '0', print_header text NOT NULL ); ! INSERT INTO mod_article_config VALUES ('Blank', 'Centered Image', 5, 5, 5, 20, 1, 1, 0, 0, 3, 0, 0, 10, 26, 400, 400, 0, 0, 0, 0, 0, 0, 0, 0, 3600, 0, '\r\n\r\n'); --- 95,103 ---- lock_expiration_time int NOT NULL DEFAULT '3600', make_metatags smallint NOT NULL DEFAULT '0', + brand_printable smallint NOT NULL DEFAULT '0', print_header text NOT NULL ); ! INSERT INTO mod_article_config VALUES ('Blank', 'Centered Image', 5, 5, 5, 20, 1, 1, 0, 0, 3, 0, 0, 10, 26, 400, 400, 0, 0, 0, 0, 0, 0, 0, 0, 3600, 0, 0, '\r\n\r\n'); |