|
From: OryNider <ory...@us...> - 2008-02-04 18:08:56
|
Update of /cvsroot/mxbb/core/modules/mx_news In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv9121 Modified Files: db_install.php db_upgrade.php Log Message: modules installer upgrade Index: db_install.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_news/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:52:40 -0000 1.2 --- db_install.php 4 Feb 2008 18:08:49 -0000 1.3 *************** *** 2,8 **** /** * ! * @package MX-Publisher Module - mx_news * @version $Id$ ! * @copyright (c) 2002-2008 [Jon Ohlsson, Mohd Basri, wGEric, PHP Arena, pafileDB, CRLin] MX-Publisher Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * --- 2,8 ---- /** * ! * @package mxBB Portal Module - mx_news * @version $Id$ ! * @copyright (c) 2002-2006 [Jon Ohlsson, Mohd Basri, wGEric, PHP Arena, pafileDB, CRLin] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * *************** *** 31,35 **** $mx_module_version = '1.0.0'; ! $mx_module_copy = 'Created for MX-Publisher by <a href="http://www.mx-publisher.com" target="_blank">Jon</a>'; // For compatibility with core 2.7.+ --- 31,35 ---- $mx_module_version = '1.0.0'; ! $mx_module_copy = 'Created for mxBB by <a href="http://www.mx-publisher.com" target="_blank">Jon</a>'; // For compatibility with core 2.7.+ *************** *** 39,43 **** if ( !$result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "simplenews_config" ) ) { ! $message = "<b>This is a fresh install!</b><br/><br/>"; $tmp = $userdata['user_id']; --- 39,43 ---- if ( !$result = $db->sql_query( "SELECT config_name from " . $mx_table_prefix . "simplenews_config" ) ) { ! $message = "<b>" . $lang['fresh_install'] . "!</b><br/><br/>"; $tmp = $userdata['user_id']; *************** *** 108,117 **** { // If already installed ! $message = "<b>Module is already installed...consider upgrading ;)</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 />"; --- 108,117 ---- { // If already installed ! $message = "<b>$lang['consider_upgrading']</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 />"; Index: db_upgrade.php =================================================================== RCS file: /cvsroot/mxbb/core/modules/mx_news/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:52:40 -0000 1.2 --- db_upgrade.php 4 Feb 2008 18:08:49 -0000 1.3 *************** *** 2,8 **** /** * ! * @package MX-Publisher Module - mx_news * @version $Id$ ! * @copyright (c) 2002-2008 [Jon Ohlsson, Mohd Basri, wGEric, PHP Arena, pafileDB, CRLin] MX-Publisher Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * --- 2,8 ---- /** * ! * @package mxBB Portal Module - mx_news * @version $Id$ ! * @copyright (c) 2002-2006 [Jon Ohlsson, Mohd Basri, wGEric, PHP Arena, pafileDB, CRLin] mxBB Project Team * @license http://opensource.org/licenses/gpl-license.php GNU General Public License v2 * *************** *** 31,35 **** $mx_module_version = '1.0.0'; ! $mx_module_copy = 'Created for MX-Publisher by <a href="http://www.mx-publisher.com" target="_blank">Jon</a>'; // For compatibility with core 2.7.+ --- 31,35 ---- $mx_module_version = '1.0.0'; ! $mx_module_copy = 'Created for mxBB by <a href="http://www.mx-publisher.com" target="_blank">Jon</a>'; // For compatibility with core 2.7.+ *************** *** 44,48 **** $upgrade_280 = false; ! $message = "<b>Upgrading!</b><br/><br/>"; if ( $upgrade_280 == 1 ) --- 44,48 ---- $upgrade_280 = false; ! $message = "<b>" . $lang['upgrading'] . "!</b><br/><br/>"; if ( $upgrade_280 == 1 ) *************** *** 52,56 **** else { ! $message .= "<b>Nothing to upgrade...</b><br/><br/>"; } --- 52,56 ---- else { ! $message .= "<b>" . $lang['nothing_upgrade'] . "</b><br/><br/>"; } *************** *** 58,68 **** { $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/>"; // --- 58,68 ---- { $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/>"; // *************** *** 77,86 **** { // If not installed ! $message = "<b>Module not installed...and thus cannot be upgraded ;)</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 />"; --- 77,86 ---- { // If not installed ! $message = "<b>$lang['module_not_installed'] ;)</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 />"; |