Update of /cvsroot/phpwebsite-comm/modules/mailto/boost
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv11662/mailto/boost
Modified Files:
install.php uninstall.php update.php
Log Message:
Registered with the help facility. Removed the search facility.
Index: uninstall.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/mailto/boost/uninstall.php,v
retrieving revision 1.1.1.1
retrieving revision 1.2
diff -C2 -d -r1.1.1.1 -r1.2
*** uninstall.php 26 Mar 2004 18:56:49 -0000 1.1.1.1
--- uninstall.php 4 Apr 2004 00:24:28 -0000 1.2
***************
*** 15,21 ****
$content .= "All mailto tables successfully removed!<br /><br />";
! /* Unregister with core search module */
! if(isset($_SESSION["OBJ_search"])) {
! $GLOBALS["core"]->sqlDelete("mod_search_register", "module", "phatfile");
}
--- 15,23 ----
$content .= "All mailto tables successfully removed!<br /><br />";
! /* Unregister from the Help system */
! if(!CLS_help::uninstall_help("mailto")) {
! $content .= "Problem unregistering Mailto from the Help system.<br />";
! } else {
! $content .= "Mailto successfully removed from the Help system.<br />";
}
Index: install.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/mailto/boost/install.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** install.php 2 Apr 2004 02:28:48 -0000 1.2
--- install.php 4 Apr 2004 00:24:28 -0000 1.3
***************
*** 20,26 ****
$content .= "All mailto tables successfully written.<br /><br />";
! /* Register with core search module */
! require_once(PHPWS_SOURCE_DIR.'mod/search/class/Search.php');
! PHPWS_Search::register("mailto");
$status = 1;
--- 20,31 ----
$content .= "All mailto tables successfully written.<br /><br />";
! /* Extra stuff goes here */
!
! /* Register with the Help system */
! if(!CLS_help::setup_help("mailto")) {
! $content .= "Problem registering Mailto with the Help system.<br />";
! } else {
! $content .= "Mailto registered successfully with the Help system.<br />";
! }
$status = 1;
Index: update.php
===================================================================
RCS file: /cvsroot/phpwebsite-comm/modules/mailto/boost/update.php,v
retrieving revision 1.2
retrieving revision 1.3
diff -C2 -d -r1.2 -r1.3
*** update.php 29 Mar 2004 21:08:01 -0000 1.2
--- update.php 4 Apr 2004 00:24:28 -0000 1.3
***************
*** 28,30 ****
--- 28,49 ----
}
+ if ($currentVersion < "0.1.2"){
+
+ /* Unregister with core search module */
+ if(isset($_SESSION["OBJ_search"])) {
+ $GLOBALS["core"]->sqlDelete("mod_search_register", "module", "mailto");
+ $content .= "Mailto successfully unregistered from the search module.<br />";
+ }
+
+ /* Register with the Help system */
+ if(!CLS_help::setup_help("mailto")) {
+ $content .= "Problem registering Mailto with the Help system.<br />";
+ } else {
+ $content .= "Mailto registered successfully with the Help system.<br />";
+ }
+
+ $content .= "Mailto successfully updated for version 0.1.2 changes.<br />";
+
+ }
+
?>
|