From: Shaun M. <sin...@us...> - 2006-02-04 04:38:19
|
Update of /cvsroot/phpwsbb/phpwsbb/boost In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv31628 Modified Files: update.php Log Message: v1.0.4 updater Index: update.php =================================================================== RCS file: /cvsroot/phpwsbb/phpwsbb/boost/update.php,v retrieving revision 1.49 retrieving revision 1.50 diff -C2 -d -r1.49 -r1.50 *** update.php 23 Mar 2005 20:42:37 -0000 1.49 --- update.php 4 Feb 2006 04:38:11 -0000 1.50 *************** *** 331,334 **** --- 331,362 ---- $content .= 'Several bug fixes see ChangeLog.<br />'; } + + if(version_compare($currentVersion, '1.0.4') < 0) { + $content .= '<br />v1.0.4<br />'; + $content .= '* Added private forums.<br />'; + $content .= '* Added reroute to logins if you\'re not logged in when posting.<br />'; + $content .= '* Added Category view.<br />'; + + if ($status = $GLOBALS['core']->query('ALTER TABLE mod_phpwsbb_threads ADD views int NOT NULL default "0" AFTER replies', TRUE)) + $content .= '* Added Thread view count feature.<br />'; + else + $content .= '<div class="errortext">There was a problem creating the views column to the thread table.</div>'; + + if ($status = $GLOBALS['core']->query('ALTER TABLE mod_phpwsbb_settings ADD use_views smallint NOT NULL default "0", ADD use_low_priority smallint NOT NULL default "0"', TRUE)) + $content .= '* Added Settings for view counts.<br />'; + else + $content .= '<div class="errortext">There was a problem creating the views settings in the settings table.</div>'; + + $content .= '* Copying images to /images/phpwsbb/<br />'; + /* Copy new image files */ + $images = array(); + if($handle = opendir(PHPWS_SOURCE_DIR . 'mod/phpwsbb/img/')) { + while (false !== ($file = readdir($handle))) { + if (is_file(PHPWS_SOURCE_DIR . 'mod/phpwsbb/img/${file}')) + if(!copy(PHPWS_SOURCE_DIR . 'mod/phpwsbb/img/${file}', $GLOBALS['core']->home_dir . 'images/phpwsbb/${file}')) + $content .= '<div class="errortext">Failed to copy ${file}</div>\n'; + } + } + } ?> \ No newline at end of file |