|
From: OryNider <ory...@us...> - 2008-02-04 18:09:43
|
Update of /cvsroot/mxbb/core/modules/mx_rebuild_search_tables In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9549/mx_rebuild_search_tables Modified Files: db_install.php db_upgrade.php Log Message: modules installer upgrade Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_rebuild_search_tables/db_install.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** db_install.php 4 Feb 2008 16:54:26 -0000 1.2 --- db_install.php 4 Feb 2008 18:09:33 -0000 1.3 *************** *** 2,8 **** /** * ! * @package MX-Publisher Module - mx_phpbb2admin * @version $Id$ ! * @copyright (c) 2002-2008 [menalto.gallery.com, Jon Ohlsson] MX-Publisher Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * @link http://www.mx-publisher.com --- 2,8 ---- /** * ! * @package mxBB Portal Module - mx_phpbb2admin * @version $Id$ ! * @copyright (c) 2002-2006 [menalto.gallery.com, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * @link http://www.mx-publisher.com *************** *** 33,46 **** $mx_module_version = 'mxBB Core Module'; ! $mx_module_copy = 'Original phpBB <i>Rebuild Search Tables</i> by the phpBB Team :: Adapted for MX-Publisher by <a href="http://www.mx-publisher.com" target="_blank">Jon</a>'; ! $message = "<b>This is a fresh install!</b><br/><br/>"; $sql = array(); $sql[] = "UPDATE " . $mx_table_prefix . "module" . " ! SET module_version = '" . $mx_module_version . "', ! module_copy = '" . $mx_module_copy . "' ! WHERE module_id = '" . $mx_module_id . "'"; $message .= mx_do_install_upgrade( $sql ); --- 33,46 ---- $mx_module_version = 'mxBB Core Module'; ! $mx_module_copy = 'Original phpBB <i>Rebuild Search Tables</i> by the phpBB Team :: Adapted for mxBB by <a href="http://www.mx-publisher.com" target="_blank">Jon</a>'; ! $message = "<b>" . $lang['fresh_install'] . "!</b><br/><br/>"; $sql = array(); $sql[] = "UPDATE " . $mx_table_prefix . "module" . " ! SET module_version = '" . $mx_module_version . "', ! module_copy = '" . $mx_module_copy . "' ! WHERE module_id = '" . $mx_module_id . "'"; $message .= mx_do_install_upgrade( $sql ); *************** *** 48,53 **** echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; ! echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; ?> --- 48,54 ---- echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; ! echo "<tr><th class=\"thHead\" align=\"center\">" . $lang['module_install_info'] . "</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; + ?> Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_rebuild_search_tables/db_upgrade.php,v retrieving revision 1.2 retrieving revision 1.3 diff -C2 -d -r1.2 -r1.3 *** db_upgrade.php 4 Feb 2008 16:54:25 -0000 1.2 --- db_upgrade.php 4 Feb 2008 18:09:33 -0000 1.3 *************** *** 2,8 **** /** * ! * @package MX-Publisher Module - mx_phpbb2admin * @version $Id$ ! * @copyright (c) 2002-2008 [menalto.gallery.com, Jon Ohlsson] MX-Publisher Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * @link http://www.mx-publisher.com --- 2,8 ---- /** * ! * @package mxBB Portal Module - mx_phpbb2admin * @version $Id$ ! * @copyright (c) 2002-2006 [menalto.gallery.com, Jon Ohlsson] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * @link http://www.mx-publisher.com *************** *** 35,39 **** $mx_module_copy = 'Original phpBB <i>Rebuild Search Tables</i> by the phpBB Team :: Adapted for mxBB by <a href="http://www.mx-publisher.com" target="_blank">Jon</a>'; ! $message = "<b>Upgrading!</b><br/><br/>"; $sql = array(); --- 35,39 ---- $mx_module_copy = 'Original phpBB <i>Rebuild Search Tables</i> by the phpBB Team :: Adapted for mxBB by <a href="http://www.mx-publisher.com" target="_blank">Jon</a>'; ! $message = "<b>" . $lang['upgrading'] . "!</b><br/><br/>"; $sql = array(); *************** *** 45,53 **** $message .= mx_do_install_upgrade( $sql ); ! $message .= "<b>...Now upgraded to v. $mx_module_version :-)</b><br/><br/>"; echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; ! echo "<tr><th class=\"thHead\" align=\"center\">Module Installation/Upgrading/Uninstalling Information - module specific db tables</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; --- 45,53 ---- $message .= mx_do_install_upgrade( $sql ); ! $message .= "<b>$lang['upgraded_to_ver'] $mx_module_version :-)</b><br/><br/>"; echo "<br /><br />"; echo "<table width=\"90%\" align=\"center\" cellpadding=\"4\" cellspacing=\"1\" border=\"0\" class=\"forumline\">"; ! echo "<tr><th class=\"thHead\" align=\"center\">" . $lang['module_install_info'] . "</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; |