From: George B. <gbr...@us...> - 2004-06-01 19:20:56
|
Update of /cvsroot/phpwebsite-comm/modules/jobman/boost In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv1014/boost Modified Files: install.php uninstall.php Log Message: Correct for search problems in 0.9.3-3 Index: uninstall.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/jobman/boost/uninstall.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** uninstall.php 30 Dec 2003 16:20:40 -0000 1.4 --- uninstall.php 1 Jun 2004 19:20:28 -0000 1.5 *************** *** 21,36 **** $status = 1; - /* uninstall help */ - if(isset($_SESSION["OBJ_help"])) { - CLS_help::uninstall_help("jobman"); - $content .= "Positions Available removed from Help system.<br />"; - } - - /* remove any jobman fatcat items */ - if(isset($_SESSION["OBJ_fatcat"])) { - if(PHPWS_Fatcat::purge(NULL, "jobman")) - $content .= "Removed any jobs in fatcat categories.<br />"; - } - /* uninstall menu item, if any */ if (isset($_SESSION["OBJ_menuman"])) { --- 21,24 ---- *************** *** 40,45 **** /* uninstall search */ ! $GLOBALS['core']->sqlDelete("mod_search_register", "module", "jobman"); ! $content .= "Positions Available removed from Search system.<br />"; --- 28,33 ---- /* uninstall search */ ! /* $GLOBALS['core']->sqlDelete("mod_search_register", "module", "jobman"); */ ! /* $content .= "Positions Available removed from Search system.<br />"; */ Index: install.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/jobman/boost/install.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** install.php 30 Dec 2003 16:20:40 -0000 1.4 --- install.php 1 Jun 2004 19:20:28 -0000 1.5 *************** *** 27,51 **** $status = 1; ! /* register the module with the help system if it's loaded */ ! if(isset($_SESSION["OBJ_help"])) { ! CLS_help::setup_help("jobman"); ! $content .= "Positions Available successfully registered with Help system.<br />"; ! } ! /* register the module with the search system */ ! /* comment out this section if you don't want search included */ ! $search['module'] = "jobman"; ! $search['search_class'] = "JOB_ListManager"; ! $search['search_function'] = "search"; ! $search['search_cols'] = "label, status, description, qualifications"; ! $search['view_string'] = "&JOB_MAN_op=sView&JOB_id="; ! $search['show_block'] = 1; ! ! if(!$GLOBALS['core']->sqlInsert($search, "mod_search_register")) { ! $content .= "Positions Available NOT registered with Search system.<br />"; ! } else { ! $content .= "Positions Available successfully registered with Search system.<br />"; ! } ! /* end of search section */ } else { --- 27,54 ---- $status = 1; ! // by 9.3-3, boost does all registration for help and search (conf/help.php, search.php required) ! if($GLOBALS["core"]->version < "0.9.3-3") { ! /* register the module with the help system if it's loaded */ ! if(isset($_SESSION["OBJ_help"])) { ! CLS_help::setup_help("jobman"); ! $content .= "Positions Available successfully registered with Help system.<br />"; ! } ! ! /* register the module with the search system */ ! /* comment out this section if you don't want search included */ ! $search['module'] = "jobman"; ! $search['search_class'] = "JOB_ListManager"; ! $search['search_function'] = "search"; ! $search['search_cols'] = "label, status, description, qualifications"; ! $search['view_string'] = "&JOB_MAN_op=sView&JOB_id="; ! $search['show_block'] = 1; ! if(!$GLOBALS['core']->sqlInsert($search, "mod_search_register")) { ! $content .= "Positions Available NOT registered with Search system.<br />"; ! } else { ! $content .= "Positions Available successfully registered with Search system.<br />"; ! } ! /* end of search section */ ! } } else { |