|
From: OryNider <ory...@us...> - 2008-02-04 18:09:36
|
Update of /cvsroot/mxbb/core/modules/mx_navmenu In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9549/mx_navmenu Modified Files: db_install.php db_upgrade.php Log Message: modules installer upgrade Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_navmenu/db_install.php,v retrieving revision 1.6 retrieving revision 1.7 diff -C2 -d -r1.6 -r1.7 *** db_install.php 4 Feb 2008 16:52:02 -0000 1.6 --- db_install.php 4 Feb 2008 18:09:32 -0000 1.7 *************** *** 2,8 **** /** * ! * @package MX-Publisher Module - mx_navmenu * @version $Id$ ! * @copyright (c) 2002-2008 [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_navmenu * @version $Id$ ! * @copyright (c) 2002-2006 [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,46 **** $mx_module_copy = 'Original mxBB <i>Navigation Menu</i> module 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 ); --- 35,46 ---- $mx_module_copy = 'Original mxBB <i>Navigation Menu</i> module 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,52 **** 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,52 ---- 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_navmenu/db_upgrade.php,v retrieving revision 1.7 retrieving revision 1.8 diff -C2 -d -r1.7 -r1.8 *** db_upgrade.php 4 Feb 2008 16:52:02 -0000 1.7 --- db_upgrade.php 4 Feb 2008 18:09:32 -0000 1.8 *************** *** 2,8 **** /** * ! * @package MX-Publisher Module - mx_navmenu * @version $Id$ ! * @copyright (c) 2002-2008 [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_navmenu * @version $Id$ ! * @copyright (c) 2002-2006 [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,55 **** $mx_module_copy = 'Original mxBB <i>Navigation Menu</i> module by <a href="http://www.mx-publisher.com" target="_blank">Jon</a>'; ! $message = "<b>Upgrading!</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 ); ! $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 />"; - ?> --- 35,54 ---- $mx_module_copy = 'Original mxBB <i>Navigation Menu</i> module by <a href="http://www.mx-publisher.com" target="_blank">Jon</a>'; ! $message = "<b>" . $lang['upgrading'] . "!</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 ); ! $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 />"; ?> |