From: <gbr...@us...> - 2003-12-30 16:21:31
|
Update of /cvsroot/phpwebsite-comm/modules/jobman/boost In directory sc8-pr-cvs1:/tmp/cvs-serv28895/boost Modified Files: install.php uninstall.php Log Message: Made phpWS 0.9.3-2 compliant and a few cosmetic improvements Index: install.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/jobman/boost/install.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** install.php 25 Jun 2003 22:13:09 -0000 1.3 --- install.php 30 Dec 2003 16:20:40 -0000 1.4 *************** *** 8,12 **** */ ! /* return to home page if the user is not the Deity */ if (!$_SESSION["OBJ_user"]->isDeity()){ header("location:index.php"); --- 8,12 ---- */ ! /* return to home page if the user is not a Deity */ if (!$_SESSION["OBJ_user"]->isDeity()){ header("location:index.php"); *************** *** 14,19 **** } /* read sql install script, execute it, suppress errors */ ! if ($GLOBALS['core']->sqlImport($GLOBALS['core']->source_dir."mod/jobman/boost/install.sql", TRUE, TRUE)) { /* if successful, report the fact */ --- 14,25 ---- } + if($GLOBALS["core"]->version < "0.9.2-1") { + $content .= "This module requires a phpWebSite core version of 0.9.2-1 or greater.<br />"; + $content .= "<br />You are currently using phpWebSite core version " . $GLOBALS["core"]->version . ".<br />"; + return; + } + /* read sql install script, execute it, suppress errors */ ! if ($GLOBALS['core']->sqlImport(PHPWS_SOURCE_DIR . "mod/jobman/boost/install.sql", TRUE, TRUE)) { /* if successful, report the fact */ |