|
From: Verdon V. <ve...@us...> - 2008-07-22 15:19:02
|
Update of /cvsroot/phpwebsite-comm/modules/whatsnew/boost In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv2685/boost Modified Files: boost.php Added Files: update.php Log Message: tweaks and fixes to prepare for release Index: boost.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/whatsnew/boost/boost.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** boost.php 22 Jul 2008 12:47:26 -0000 1.2 --- boost.php 22 Jul 2008 15:18:38 -0000 1.3 *************** *** 24,28 **** $proper_name = "What's New"; ! $version = '0.0.2'; $import_sql = false; $version_http = 'http://verdon.ca/downloads/modules/whatsnew/check.xml'; --- 24,28 ---- $proper_name = "What's New"; ! $version = '0.2.0'; $import_sql = false; $version_http = 'http://verdon.ca/downloads/modules/whatsnew/check.xml'; --- NEW FILE: update.php --- <?php /** * whatsnew - phpwebsite module * * See docs/AUTHORS and docs/COPYRIGHT for relevant info. * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by * the Free Software Foundation; either version 2 of the License, or * (at your option) any later version. * * This program is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program; if not, write to the Free Software * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * * @version $Id: update.php,v 1.1 2008/07/22 15:18:38 verdonv Exp $ * @author Verdon Vaillancourt <verdonv at users dot sourceforge dot net> */ function whatsnew_update(&$content, $currentVersion) { $home_dir = PHPWS_Boost::getHomeDir(); switch ($currentVersion) { case version_compare($currentVersion, '0.1.0', '<'): $content[] = '<pre>'; $files = array('templates/block.tpl'); whatsnewUpdateFiles($files, $content); $content[] = '0.1.0 changes ---------------- + Added caching to the whatsnew list </pre>'; case version_compare($currentVersion, '0.2.0', '<'): $content[] = '<pre>'; $files = array('templates/edit_settings.tpl'); whatsnewUpdateFiles($files, $content); $content[] = '0.2.0 changes ---------------- + Added sidebox title to settings + Implimented text parsing to title and text settings + Added English language file </pre>'; } // end switch return true; } function whatsnewUpdateFiles($files, &$content) { if (PHPWS_Boost::updateFiles($files, 'whatsnew')) { $content[] = '--- Updated the following files:'; } else { $content[] = '--- Unable to update the following files:'; } $content[] = " " . implode("\n ", $files); } ?> |