Update of /cvsroot/phpwebsite-comm/modules/finc/boost
In directory ddv4jf1.ch3.sourceforge.com:/tmp/cvs-serv10782/boost
Modified Files:
about.html boost.php dependency.xml
Added Files:
update.php
Log Message:
1.1.0 updates
Index: dependency.xml
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/finc/boost/dependency.xml,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** dependency.xml 19 May 2008 23:36:26 -0000 1.1.1.1
--- dependency.xml 26 Nov 2008 14:42:03 -0000 1.2
***************
*** 4,8 ****
<title>core</title>
<properName>phpWebSite Core</properName>
! <version>1.8.0</version>
<url>http://phpwebsite.appstate.edu/downloads/modules/base/</url>
</module>
--- 4,8 ----
<title>core</title>
<properName>phpWebSite Core</properName>
! <version>1.9.0</version>
<url>http://phpwebsite.appstate.edu/downloads/modules/base/</url>
</module>
Index: about.html
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/finc/boost/about.html,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** about.html 19 May 2008 23:36:26 -0000 1.1.1.1
--- about.html 26 Nov 2008 14:42:03 -0000 1.2
***************
*** 9,13 ****
<h3>By Verdon Vaillancourt</h3>
! <p>Finc is a module that allows you to iclude the contents of a file on the server, and puts it in a content box.</p>
<p class="align-center padded"><input type="button" onclick="window.close()" value="Close" /></p>
</body>
--- 9,13 ----
<h3>By Verdon Vaillancourt</h3>
! <p>Finc is a module that allows you to include the contents of a file on the server, and puts it in a content box. It also creates a phpws key for the include, so that it can be categorized, menued easily, and so on.</p>
<p class="align-center padded"><input type="button" onclick="window.close()" value="Close" /></p>
</body>
Index: boost.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/finc/boost/boost.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** boost.php 20 May 2008 12:47:43 -0000 1.2
--- boost.php 26 Nov 2008 14:42:03 -0000 1.3
***************
*** 24,28 ****
$proper_name = 'Finc';
! $version = '1.0.0';
$import_sql = true;
$file_dir = true;
--- 24,28 ----
$proper_name = 'Finc';
! $version = '1.1.0';
$import_sql = true;
$file_dir = true;
--- NEW FILE: update.php ---
<?php
/**
* finc - 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/11/26 14:42:03 verdonv Exp $
* @author Verdon Vaillancourt <verdonv at users dot sourceforge dot net>
*/
function finc_update(&$content, $currentVersion)
{
$home_dir = PHPWS_Boost::getHomeDir();
switch ($currentVersion) {
case version_compare($currentVersion, '1.1.0', '<'):
$content[] = '<pre>';
$files = array('templates/info.tpl');
fincUpdateFiles($files, $content);
$content[] = '1.1.0 changes
----------------
+ Setting up
</pre>';
} // end switch
return true;
}
function fincUpdateFiles($files, &$content)
{
if (PHPWS_Boost::updateFiles($files, 'finc')) {
$content[] = '--- Updated the following files:';
} else {
$content[] = '--- Unable to update the following files:';
}
$content[] = " " . implode("\n ", $files);
}
?>
|