|
From: OryNider <ory...@us...> - 2008-02-04 18:09:39
|
Update of /cvsroot/mxbb/core/modules/mx_coreblocks In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9549/mx_coreblocks Modified Files: db_install.php db_upgrade.php Log Message: modules installer upgrade Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_coreblocks/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:04:31 -0000 1.6 --- db_install.php 4 Feb 2008 18:09:32 -0000 1.7 *************** *** 2,8 **** /** * ! * @package MX-Publisher Module - mx_coreblocks * @version $Id$ ! * @copyright (c) 2002-2008 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_coreblocks * @version $Id$ ! * @copyright (c) 2002-2006 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 mxBB <i>Core Blocks</i> module by <a href="http://www.mx-publisher.com" target="_blank">The MX-Publisher Development Team</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 mxBB <i>Core Blocks</i> module by <a href="http://www.mx-publisher.com" target="_blank">The mxBB Development Team</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_coreblocks/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:04:30 -0000 1.7 --- db_upgrade.php 4 Feb 2008 18:09:32 -0000 1.8 *************** *** 2,8 **** /** * ! * @package MX-Publisher Module - mx_coreblocks * @version $Id$ ! * @copyright (c) 2002-2008 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_coreblocks * @version $Id$ ! * @copyright (c) 2002-2006 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 mxBB <i>Core Blocks</i> module by <a href="http://www.mx-publisher.com" target="_blank">The MX-Publisher Development Team</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 ); --- 33,46 ---- $mx_module_version = 'mxBB Core Module'; ! $mx_module_copy = 'Original mxBB <i>Core Blocks</i> module by <a href="http://www.mx-publisher.com" target="_blank">The mxBB Development Team</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 ); *************** *** 49,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 />"; --- 49,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\">" . $lang['module_install_info'] . "</th></tr>"; echo "<tr><td class=\"row1\" align=\"left\"><span class=\"gen\">" . $message . "</span></td></tr>"; echo "</table><br />"; |