activety mod upgraden
Geplaatst: 26 jul 2004, 14:51
wel ik heb napolien hack activety wel daar is een upgrade voor nodig mar die werkt blijkbaar niet kan iemand helpen???
ik denk dat het hier ergens moet in zitten
ik denk dat het hier ergens moet in zitten
Code: Selecteer alles
<?php
/***************************************************************************
* admin_ina_in_un.php
* ---------------------
* Version : 1.0.3
* Email : austin_inc@hotmail.com
* Site : austin-inc.com/Blend/
* Copyright : © aUsTiN-Inc 2003/4 (Blend Portal System)
*
***************************************************************************/
if( isset( $HTTP_POST_VARS['mode'] ) || isset( $HTTP_GET_VARS['mode'] ) )
{
$mode = ( isset( $HTTP_POST_VARS['mode']) ) ? $HTTP_POST_VARS['mode'] : $HTTP_GET_VARS['mode'];
}
else
{
$mode = '';
}
define('IN_PHPBB', 1);
if( !empty($setmodules) )
{
$file = basename(__FILE__);
$module['Activities']['DB Adjustments'] = "$file";
return;
}
$phpbb_root_path = "./../";
require($phpbb_root_path . 'extension.inc');
require('./pagestart.' . $phpEx);
define("iNA_TOP_SCORES", $table_prefix .'ina_top_scores');
define("iNA_BAN", $table_prefix .'ina_ban');
define("iNA_CHEAT", $table_prefix .'ina_cheat_fix');
define("iNA_CAT", $table_prefix .'ina_categories');
define("iNA_CAT_DATA", $table_prefix .'ina_categories_data');
define("iNA_CHALLENGE", $table_prefix .'ina_challenge_tracker');
define("iNA_CHALLENGE_USERS", $table_prefix .'ina_challenge_users');
define("iNA_TROPHY_COMMENTS", $table_prefix .'ina_trophy_comments');
define("iNA", $table_prefix .'ina_data');
define("iNA_SCORES", $table_prefix .'ina_scores');
define("iNA_GAMES", $table_prefix .'ina_games');
$link = append_sid("admin_ina_in_un.". $phpEx);
echo "<table width='100%' border='0' class='forumline' cellspacing='2' align='center' valign='middle'>";
echo " <tr>";
echo " <th class='thHead' colspan='2'>";
echo " Activity Mod Plus:<br><br>:: Un-Install :: Install :: Upgrade ::";
echo " </th>";
echo " </tr>";
echo "</table>";
echo "<br><br>";
if($mode == "main" || !$mode)
{
echo "<table width='100%' border='0' class='forumline' cellspacing='2' align='center' valign='middle'>";
echo " <tr>";
echo " <td align='left' valign='top' width='100%' class='row2'>";
echo " <span class='gensmall'>";
echo " From this screen you can install this script fresh, you can upgrade
from other versions (Napoleons 2.0.0, Activity Mod Plus 1.0.0+) or
you can un-install it from your board completely.";
echo " </span>";
echo " </td>";
echo " </tr>";
echo "</table>";
echo "<br><br>";
echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>";
echo " <tr>";
echo " <td align='center' valign='top' width='100%' class='row2'>";
echo " <span class='genmed'>";
echo " Fresh Install";
echo " </span>";
echo " </td>";
echo " </tr>";
echo "</table>";
echo "<form name='new_install' action='$link' method='post'>";
echo "<table border='0' align='center' valign='top'>";
echo " <tr>";
echo " <td align='center' valign='middle' width='100%' class='row2'>";
echo " <input type='hidden' name='mode' value='fresh_install'>";
echo " <input type='submit' class='mainoption' value=' Install Activity Mod Plus ' onchange='new_install.edit_trophy.submit()'>";
echo " </td>";
echo " </tr>";
echo "</table>";
echo "</form>";
echo "<br><br>";
echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>";
echo " <tr>";
echo " <td align='center' valign='top' width='100%' class='row2'>";
echo " <span class='genmed'>";
echo " Upgrade From An Existing Version";
echo " </span>";
echo " </td>";
echo " </tr>";
echo "</table>";
echo "<form name='upgrade' action='$link' method='post'>";
echo "<table border='0' align='center' valign='top'>";
echo " <tr>";
echo " <td align='center' valign='middle' width='100%' class='row2'>";
echo " <select name='version'>";
echo " <option selected value=''>Select A Version To Upgrade To</option>";
echo " <option value='1'>From Napoleons 2.0.0 To Activity Mod Plus 1.0.3</option>";
echo " <option value='2'>From Activity Mod Plus 1.0.0 To Activity Mod Plus 1.0.3</option>";
echo " <option value='3'>From Activity Mod Plus 1.0.1 To Activity Mod Plus 1.0.3</option>";
echo " <option value='4'>From Activity Mod Plus 1.0.2 To Activity Mod Plus 1.0.3</option>";
echo " </select>";
echo " </td>";
echo " </tr>";
echo "</table>";
echo "<table border='0' align='center' valign='top'>";
echo " <tr>";
echo " <td align='center' valign='middle' width='100%' class='row2'>";
echo " <input type='hidden' name='mode' value='upgrading'>";
echo " <input type='submit' class='mainoption' value=' Apply Upgrade ' onchange='upgrade.edit_trophy.submit()'>";
echo " </td>";
echo " </tr>";
echo "</table>";
echo "</form>";
echo "<br><br>";
echo "<table border='0' align='center' valign='top' class='forumline' width='100%'>";
echo " <tr>";
echo " <td align='center' valign='top' width='100%' class='row2'>";
echo " <span class='genmed'>";
echo " Un-Install";
echo " </span>";
echo " </td>";
echo " </tr>";
echo "</table>";
echo "<form name='uninstall' action='$link' method='post'>";
echo "<table border='0' align='center' valign='top'>";
echo " <tr>";
echo " <td align='center' valign='middle' width='100%' class='row2'>";
echo " <input type='hidden' name='mode' value='remove'>";
echo " <input type='submit' class='mainoption' value=' Un-Install ' onchange='uninstall.edit_trophy.submit()'>";
echo " </td>";
echo " </tr>";
echo "</table>";
echo "</form>";
}
if($mode == "upgrading")
{
$version = $_POST['version'];
if(!$version)
{
message_die(GENERAL_ERROR, "Please Select What Upgrade To Do First.", "Error");
}
if($version == "1")
{
een hoop SQL dingen .....
$sql = "ALTER TABLE ". iNA_GAMES ." ADD `install_date` INT( $result = $db -> sql_query($sql);
message_die(GENERAL_MESSAGE, "Un-Install Completed.", "Success");
}
include('page_footer_admin.' . $phpEx);
?>