From: <gbr...@us...> - 2004-01-06 20:27:29
|
Update of /cvsroot/phpwebsite-comm/modules/staffman/boost In directory sc8-pr-cvs1:/tmp/cvs-serv25928/boost Modified Files: install.php uninstall.php update.php Log Message: Prepare for v1.3 release Index: install.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/staffman/boost/install.php,v retrieving revision 1.1.1.1 retrieving revision 1.2 diff -C2 -d -r1.1.1.1 -r1.2 *** install.php 2 Jul 2003 23:45:06 -0000 1.1.1.1 --- install.php 6 Jan 2004 20:26:54 -0000 1.2 *************** *** 11,15 **** */ ! /* return to home page if the user is not the Deity */ if (!$_SESSION["OBJ_user"]->isDeity()){ header("location:index.php"); --- 11,15 ---- */ ! /* return to home page if the user is not a Deity */ if (!$_SESSION["OBJ_user"]->isDeity()){ header("location:index.php"); *************** *** 17,22 **** } /* read sql install script, execute it, suppress errors */ ! if ($GLOBALS['core']->sqlImport($GLOBALS['core']->source_dir."mod/staffman/boost/install.sql", TRUE, TRUE)) { /* if successful, report the fact */ --- 17,28 ---- } + 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/staffman/boost/install.sql", TRUE, TRUE)) { /* if successful, report the fact */ Index: uninstall.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/staffman/boost/uninstall.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** uninstall.php 24 Sep 2003 23:40:29 -0000 1.4 --- uninstall.php 6 Jan 2004 20:26:54 -0000 1.5 *************** *** 8,12 **** */ ! /* return to home page if the user is not the Deity */ if (!$_SESSION["OBJ_user"]->isDeity()) { header("location:index.php"); --- 8,17 ---- */ ! /* Make change required for 0.9.3-2 and above */ ! if ($GLOBALS["core"]->version > "0.9.3-1") { ! require_once(PHPWS_SOURCE_DIR . "core/File.php"); ! } ! ! /* return to home page if the user is not a Deity */ if (!$_SESSION["OBJ_user"]->isDeity()) { header("location:index.php"); *************** *** 15,19 **** /* read sql install script, execute it, suppress errors */ ! if ($GLOBALS['core']->sqlImport($GLOBALS['core']->source_dir."mod/staffman/boost/uninstall.sql", TRUE, TRUE)) { /* report success */ --- 20,24 ---- /* read sql install script, execute it, suppress errors */ ! if ($GLOBALS['core']->sqlImport(PHPWS_SOURCE_DIR . "mod/staffman/boost/uninstall.sql", TRUE, TRUE)) { /* report success */ *************** *** 43,47 **** $content .= "Staff Listing removed from Search system.<br />"; ! $ok = PHPWS_File::rmdir(PHPWS_HOME_DIR . "images/staffman/"); if ($ok) { $content .= "The staffmember images directory was successfully removed.<br />"; --- 48,52 ---- $content .= "Staff Listing removed from Search system.<br />"; ! $ok = PHPWS_File::rmdir(PHPWS_SOURCE_DIR . "images/staffman/"); if ($ok) { $content .= "The staffmember images directory was successfully removed.<br />"; Index: update.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/staffman/boost/update.php,v retrieving revision 1.1 retrieving revision 1.2 diff -C2 -d -r1.1 -r1.2 *** update.php 10 Sep 2003 20:36:08 -0000 1.1 --- update.php 6 Jan 2004 20:26:54 -0000 1.2 *************** *** 11,15 **** */ ! /* return to home page if the user is not the Deity */ if (!$_SESSION["OBJ_user"]->isDeity()){ header("location:index.php"); --- 11,15 ---- */ ! /* return to home page if the user is not a Deity */ if (!$_SESSION["OBJ_user"]->isDeity()){ header("location:index.php"); *************** *** 19,24 **** $status = 1; ! if ($currentVersion < 1.2) { ! $content = "Updating Staff Listing to version 1.2 .<br />"; /* reload the help information if help system is loaded */ --- 19,24 ---- $status = 1; ! if ($currentVersion < 1.3) { ! $content = "Updating Staff Listing to version 1.3 .<br />"; /* reload the help information if help system is loaded */ *************** *** 31,35 **** } ! $content .= "Update to version 1.2 finished.<br />"; } --- 31,35 ---- } ! $content .= "Update to version 1.3 finished.<br />"; } |