From: Tony M. <cl...@us...> - 2004-04-13 00:46:59
|
Update of /cvsroot/phpwebsite-comm/modules/mailto/boost In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv29074/mailto/boost Modified Files: install.sql uninstall.php update.php Log Message: Removed search capability. Added Help Added Prefix to be prepended onto the subject of the mail Added Real Name field (optional) Index: install.sql =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/mailto/boost/install.sql,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** install.sql 29 Mar 2004 21:08:01 -0000 1.2 --- install.sql 13 Apr 2004 00:33:01 -0000 1.3 *************** *** 13,16 **** --- 13,17 ---- subject text, lock_subject smallint NOT NULL default '0', + prefix varchar(20) default NULL, PRIMARY KEY (id) ); Index: uninstall.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/mailto/boost/uninstall.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** uninstall.php 4 Apr 2004 00:24:28 -0000 1.2 --- uninstall.php 13 Apr 2004 00:33:01 -0000 1.3 *************** *** 11,14 **** --- 11,16 ---- } + require_once(PHPWS_SOURCE_DIR.'mod/help/class/CLS_help.php'); + /* Import the uninstall database file and dump the result into the status variable */ if($status = $GLOBALS["core"]->sqlImport(PHPWS_SOURCE_DIR . "mod/mailto/boost/uninstall.sql", 1, 1)) { *************** *** 16,23 **** /* 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 />"; } --- 18,25 ---- /* Unregister from the Help system */ ! if(CLS_help::uninstall_help("mailto")) { $content .= "Mailto successfully removed from the Help system.<br />"; + } else { + $content .= "Problem unregistering Mailto from the Help system.<br />"; } Index: update.php =================================================================== RCS file: /cvsroot/phpwebsite-comm/modules/mailto/boost/update.php,v retrieving revision 1.3 retrieving revision 1.4 diff -C2 -d -r1.3 -r1.4 *** update.php 4 Apr 2004 00:24:28 -0000 1.3 --- update.php 13 Apr 2004 00:33:01 -0000 1.4 *************** *** 30,39 **** 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")) { --- 30,51 ---- if ($currentVersion < "0.1.2"){ + /* Add new "prefix" field */ + if($GLOBALS['core']->query("ALTER TABLE mod_mailto_items ADD COLUMN `prefix` " . + "varchar (20) DEFAULT NULL AFTER `lock_subject`", TRUE)) { + $content .= "Added database field holding a prefix to be placed before every subject. <br />"; + } else { + $content .= "Boost failed to create the attribute 'prefix' under the table 'mod_mailto_items'. <br /><br />"; + $status = 0; + } + /* 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 because search was not needed.. <br />"; } + /* Unregister with the help system as a safety precaution */ + CLS_help::uninstall_help("mailto"); + /* Register with the Help system */ if(!CLS_help::setup_help("mailto")) { *************** *** 42,46 **** $content .= "Mailto registered successfully with the Help system.<br />"; } ! $content .= "Mailto successfully updated for version 0.1.2 changes.<br />"; --- 54,59 ---- $content .= "Mailto registered successfully with the Help system.<br />"; } ! ! $content .= "Name field added to \"From\" on the mailto form.<br />"; $content .= "Mailto successfully updated for version 0.1.2 changes.<br />"; |