<?php // Timer, para comprobar la velocidad del script $tiempo = microtime(); $tiempo = explode(" ", $tiempo); $tiempo = $tiempo[1] + $tiempo[0]; $tiempoInicio = $tiempo; include "common.php"; include "cookies.php"; $userrow = checkcookies(); //Identificación del usuario CheckUserExist($userrow); $dpath = !$userrow["dpath"] ? DEFAULT_SKINPATH : $userrow["dpath"]; echo_head("Recursos"); echo_topnav(); ?> <br /> <center> <!-- begin search header --> <form action="search.php" method="post"> <table width="519"> <tr> <td class="c">Buscar en todo Ogame</td> </tr> <tr> <th> <select name="type"> <option value="playername"<?php echo $_POST["type"] == "playername" ? " SELECTED" : "";
<?php //changelog.php include "common.php"; include "cookies.php"; //init $userrow = checkcookies(); //Identificación del usuario CheckUserExist($userrow); include INCLUDES_PATH . "planet_toggle.php"; //Cambia de planeta echo_head(); echo_topnav(); echo '<br> <center> <table width="668"> <tr> <td class="c">' . $lang['Version'] . '</td> <td class="c">' . $lang['Descriptión'] . '</td> </tr>'; $changelog_query = doquery("SELECT * FROM {{table}} ORDER BY id DESC", "changelog"); while ($changelog = mysql_fetch_array($changelog_query)) { echo ' <tr> <th width="42">' . $changelog["version"] . '</th> <th style="text-align:left">' . nl2br($changelog["description"]) . '</th> </tr>'; } echo ' </table> </center>
$tiempo = explode(" ", $tiempo); $tiempo = $tiempo[1] + $tiempo[0]; $tiempoInicio = $tiempo; // init include "common.php"; include "cookies.php"; $userrow = checkcookies(); //Identificación del usuario CheckUserExist($userrow); include INCLUDES_PATH . "planet_toggle.php"; //Cambia de planeta $planetrow = doquery("SELECT * FROM {{table}} WHERE id={$userrow[current_planet]}", 'planets', true); $galaxyrow = doquery("SELECT * FROM {{table}} WHERE id_planet={$planetrow["id"]}", 'galaxy', true); $dpath = !$userrow["dpath"] ? DEFAULT_SKINPATH : $userrow["dpath"]; check_field_current($planetrow); echo_head($lang['Overview']); echo_topnav(); echo <<<HTML <center> <br> <table width="519"> <tr> \t<td class="c" colspan="4"> \t <a href="renameplanet.php" title="{$lang[Planet_menu]}">{$lang[Planet]} "{$planetrow[name]}"</a> ({$userrow[username]}) \t</td> </tr> HTML; if ($userrow['new_message'] == 1) { echo "<tr><th colspan=\"4\"><a href=\"messages.php\">{$lang[Have_new_message]}</a></th></tr>"; } elseif ($userrow['new_message'] > 1) { echo "<tr><th colspan=\"4\"><a href=\"messages.php\">";
/* <input type=hidden name=a value=1> <input type=hidden name=s value=3> <input type=hidden name=e value=1> <input type=hidden name=u value=".$u["id"]."> */ } /* Buddy list -_-U Bueno, consiste en una tabla llamada buddy. como la de notes. buddy.php se puede llamar comunmente sin variables, y mostrar la lista por default. la variable "a"="1" consiste en cambiar el tipo de lista. la "a"=2 permite mostrar el formulario para crear una entrada buddy incluyendo el "u" como id del usuario. */ echo_head("Lista de compañeros"); echo_topnav(); echo "<center>\n"; /* Formulario para enviar mensajes de solicitud de compañeros */ if ($a == 2 && isset($u)) { //formulario de solicitud $u = doquery("SELECT * FROM {{table}} WHERE id={$u}", "users", true); if (isset($u) && $u["id"] != $userrow["id"]) { echo "<script src=\"scripts/cntchar.js\" type=\"text/javascript\"></script>"; echo "<script src=\"scripts/win.js\" type=\"text/javascript\"></script><center>"; echo "<form action=buddy.php method=post>"; echo "<input type=hidden name=a value=1>"; echo "<input type=hidden name=s value=3>"; echo "<input type=hidden name=e value=1>";
You should have received a copy of the GNU Affero General Public License along with WOT Game. If not, see <http://www.gnu.org/licenses/>. */ //mboss define('INSIDE', true); $ugamela_root_path = './'; include $ugamela_root_path . 'extension.inc'; include $ugamela_root_path . 'common.' . $phpEx; if (!check_user()) { header("Location: login.php"); die; } $dpath = !$userrow["dpath"] ? DEFAULT_SKINPATH : $userrow["dpath"]; $i = is_numeric($from) && isset($from) ? $from : 0; echo_head("Suspensiones en Ugamela"); if ($userrow) { echo_topnav(); } echo "<center>\n"; echo '<h2>Pranger</h2> <table border="0" cellpadding="2" cellspacing="1"> <tr height="20"> <td class="c">Gesperrter</td> <td class="c">Wann</td> <td class="c">Gesperrt bis:</td> <td class="c">Kontakt:</td> <td class="c">Grund</td> </tr>'; $count = 0;
function display($page, $title = '', $topnav = true, $metatags = '') { global $link, $game_config, $debug; echo_head($title, $metatags); if ($topnav) { echo_topnav(); } echo "<center>\n{$page}\n</center>\n"; //Muestra los datos del debuger. if ($game_config['debug'] == 1) { $debug->echo_log(); } echo echo_foot(); if (isset($link)) { mysql_close(); } die; }
die; } elseif ($_POST['aktion'] == 'Borrar Planeta!' && $_POST['deleteid'] == $userrow["current_planet"]) { //comprobamos la contraseña y comprobamos que el planeta actual no sea el planeta principal if (md5($_POST['pw']) == $userrow["password"] && $userrow['id_planet'] != $userrow["current_planet"]) { //actualizamos el el planeta para que este modo destruido //tiempo cuando se destruira, y quedara el espacio libre $destruyed = time() + 60 * 60 * 24; doquery("UPDATE {{table}} SET `destruyed` = '{$destruyed}' WHERE `id` = '" . $userrow["current_planet"] . "' LIMIT 1", "planets"); doquery("UPDATE {{table}} SET `current_planet` = '" . $userrow['id_planet'] . "' WHERE `id` = '" . $userrow["current_planet"] . "' LIMIT 1", "users"); message("La colonia ha sido abandonada.", "Abandonar colonia"); } elseif ($userrow['id_planet'] == $userrow["current_planet"]) { error("El planeta principal no se puede abandonar.", "Abandonar colonia"); } else { error("La contraseña es incorrecta.", "Abandonar colonia"); } } $planetrow = doquery("SELECT * FROM {{table}} WHERE id = '" . $userrow["current_planet"] . "'", "planets", true); $galaxyrow = doquery("SELECT * FROM {{table}} WHERE id_planet = '" . $planetrow["id"] . "'", "galaxy", true); echo_head("Renombrar/Abandonar Planeta"); echo_topnav(); echo "<br />\r\n<center>\r\n <h1>Renombrar y abandonar planetas</h1>\r\n <form action=\"renameplanet.php?pl=" . $planetrow["id"] . "\" method=POST>\r\n <table width=519>\r\n\t <tr>\r\n\t <td class=c colspan=3>Tu planeta</td>\r\n\t </tr>\r\n\t <tr>\r\n\t <th>Coordenadas</th><th>Nombre</th><th>Funciones</th>\r\n\t </tr>\r\n\t <tr>\r\n\t <th>" . $galaxyrow["galaxy"] . ":" . $galaxyrow["system"] . ":" . $galaxyrow["planet"] . "</th>\r\n\t <th>" . $planetrow["name"] . "</th>\r\n\t <th><input type=submit name=aktion value=\"Abandonar colonia\" alt=\"Abandonar la colonia\"></th>\r\n\t </tr>\r\n\t <tr>\r\n\t <th>Nombrar</th>\r\n\t <th><input type=text name=newname size=25 maxlength=20></th>\r\n\t <th><input type=submit name=aktion value=Nombrar></th>\r\n\t </tr>\r\n\t</table>\r\n </form>\r\n</center>\r\n</body>\r\n</html>"; // Timer, para comprobar la velocidad del scriptd if ($userrow['authlevel'] == 3) { $tiempo = microtime(); $tiempo = explode(" ", $tiempo); $tiempo = $tiempo[1] + $tiempo[0]; $tiempoFin = $tiempo; $tiempoReal = $tiempoFin - $tiempoInicio; echo $depurerwrote001 . $tiempoReal . $depurerwrote002 . $numqueries . $depurerwrote003; } // Created by Perberos. All rights reversed (C) 2006
include "config.php"; $cookie = $login["id"] . " " . $login["username"] . " " . md5($login["password"] . "--" . $dbsettings["secretword"]) . " " . $rememberme; setcookie($COOKIE_NAME, $cookie, $expiretime, "/", "", 0); unset($dbsettings); // echo '<META HTTP-EQUIV="refresh" content="3;URL=javascript:self.location=\'index.php\';">'."\n"; message('Identificación confirmada, <a href="./"><blink>redireccionando...</blink></a><br><center><img src="img/progressbar.gif"></center>', "Espere por favor", "./", "3"); } else { //Muestra un mensaje de error. error('Contraseña incorrecta<br /><a href="login.php" target="Mainframe">Volver</a>', "Error al identificarse"); } } else { //Cuando $login no contiene datos de jugadores error("El jugador no existe.", "Error al identificarse"); } } else { //Vista normal echo "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n"; echo "<html xmlns=\"http://www.w3.org/1999/xhtml\" lang=\"es\" xml:lang=\"es\" id=\"ogame\">"; echo_head("Login"); echo "<style type=\"text/css\">\r\n<!--\r\nbody {\r\nbackground-color: #061229;\r\nbackground-position:center bottom;\r\nbackground-repeat:no-repeat;\r\nbackground-image: url(img/border/mainback.gif);\r\nmargin:0px 10px 0px 10px;\r\nfont-family:Arial, Helvetica, sans-serif; \r\nfont-size:9px; \r\ncolor:#54718D; \r\n}\r\n\r\nform{margin:0px;}\r\ntable{border:0px;}\r\ntr, td{font-size:12px;}\r\n\r\na{color:#9EBDE4; text-decoration:none;}\r\na:hover{color:#CADFFA; text-decoration:underline;}\r\na.footer_link{font-size:10px; color:#AABFDA; text-decoration:none;}\r\na.footer_link:hover{font-size:10px; color:#ffffff; text-decoration:underline;}\r\n\r\n\r\n.button, .eingabe{ \r\nborder:1px double #000000;\r\nbackground:#ffffff url(img/main/eingabe_back.gif) repeat-x;\r\ncolor: #000000;\r\nfont-size:10px;\r\n}\r\n.text{font-size:11px; color:#649CD3; letter-spacing: 2px; }\r\n\r\n-->\r\n\r\n</style>\r\n<body>\r\n<br><br><hr size=1><br><br><center>\r\n <form name=\"formular\" action=\"\" method=\"post\">\r\n <input name=\"username\" type=\"text\" value=\"\" />\r\n <input name=\"password\" type=\"password\" value=\"\" />\r\n <input name=\"submit\" type=\"submit\" value=\"{$lang['Login']}\" /><br />\r\n <label><input name=\"rememberme\" type=\"checkbox\">{$lang['Remember_me']}</label>\r\n</form>\r\n<a href=\"reg.php\">{$lang['Register']}</a>\r\n</center><br><br><hr size=1>\r\n</body>\r\n</html>"; } // Timer, para comprobar la velocidad del script if (isset($userrow['authlevel']) && $userrow['authlevel'] == 3) { $tiempo = microtime(); $tiempo = explode(" ", $tiempo); $tiempo = $tiempo[1] + $tiempo[0]; $tiempoFin = $tiempo; $tiempoReal = $tiempoFin - $tiempoInicio; echo $depurerwrote001 . $tiempoReal . $depurerwrote002 . $numqueries . $depurerwrote003; } // Created by Perberos. All rights reversed (C) 2006
} else { $db_deaktjava = "0"; } doquery("UPDATE {{table}} SET\r\n\t`email` = '{$db_email}',\r\n\t`avatar` = '{$avatar}',\r\n\t`dpath` = '{$dpath}',\r\n\t`design` = '{$design}',\r\n\t`noipcheck` = '{$noipcheck}',\r\n\t`spio_anz` = '{$spio_anz}',\r\n\t`settings_tooltiptime` = '{$settings_tooltiptime}',\r\n\t`settings_fleetactions` = '{$settings_fleetactions}',\r\n\t`settings_allylogo` = '{$settings_allylogo}',\r\n\t`settings_esp` = '{$settings_esp}',\r\n\t`settings_wri` = '{$settings_wri}',\r\n\t`settings_bud` = '{$settings_bud}',\r\n\t`settings_mis` = '{$settings_mis}',\r\n\t`settings_rep` = '{$settings_rep}',\r\n\t`urlaubs_modus` = '{$urlaubs_modus}',\r\n\t`db_deaktjava` = '{$db_deaktjava}'\r\n\tWHERE `id` = '{$iduser}' LIMIT 1", "users"); if (isset($_POST["db_password"]) && md5($_POST["db_password"]) == $userrow["password"]) { if ($_POST["newpass1"] == $_POST["newpass2"]) { $newpass = md5($_POST["newpass1"]); doquery("UPDATE {{table}} SET `password` = '{$newpass}' WHERE `id` = '{$iduser}' LIMIT 1", "users"); setcookie('ogamela', "", time() - 100000, "/", "", 0); //le da el expire error("La contraseña se cambio correctamente.<br />\n<a href=\"index.php\" target=\"_top\">Volver</a>", "Cambio de contraseña"); } } error("Los datos se guardaron correctamente.<br />\n<a href=\"options.php\">Volver</a>", "Opciones"); } else { echo_head("Opciones"); echo_topnav(); ?> <center> <br> <form action="options.php?mode=change" method="post"> <table width="519"> <tbody><tr><td class="c" colspan="2">Datos de usuario</td></tr> <tr> <th>Nombre de usuario</th> <th><input name="db_character" size="20" value="<?php echo $userrow['username']; ?> " type="text"></th>
$tiempo = explode(" ", $tiempo); $tiempo = $tiempo[1] + $tiempo[0]; $tiempoInicio = $tiempo; include "common.php"; include "cookies.php"; function infos() { } $userrow = checkcookies(); // Login (or verify) if not logged in. CheckUserExist($userrow); $planetrow = doquery("SELECT * FROM {{table}} WHERE id = '" . $userrow["current_planet"] . "'", "planets", true); ?> <html> <?php echo_head("Flota"); ?> <script language=JavaScript> //if (parent.frames.length == 0) { top.location.href = "http://es.ogame.org/"; } </script> <script language="JavaScript"> function haha(z1) { eval("location='"+z1.options[z1.selectedIndex].value+"'"); } </script> <script language="JavaScript" src="js/flotten.js"></script> <script language="JavaScript" src="js/ocnt.js"></script> <body onload="javascript: shortInfo();"> <center> <?php echo_topnav(); ?> </center>
$planetrow["crystal"] = $planetrow["crystal"] + $cost_crystal; } if ($pricelist[$unbau]['deuterium'] != 0) { $cost_deuterium = floor($pricelist[$unbau]['deuterium'] * pow($pricelist[$unbau]['factor'], $planetrow[$resource[$unbau]] + 1)); $planetrow["deuterium"] = $planetrow["deuterium"] + $cost_deuterium; } //error("$cost_metal/".$planetrow["metal"]." - $cost_crystal/".$planetrow["crystal"]." - $cost_deuterium/".$planetrow["deuterium"]."/",""); //$time = ((($cost_crystal )+($cost_metal)) / 2500) * (1 / ($planetrow[$resource['14']] + 1)) * pow(0.5,$planetrow[$resource['15']]); //metodo temporal para mostrar el formato tiempo... //$time = ($time *60*60); $planetrow["b_building_id"] = 0; //$planetrow["b_building"] = time() + floor($time); doquery("UPDATE {{table}} SET b_building_id=" . $planetrow["b_building_id"] . ", metal=" . $planetrow["metal"] . ", crystal=" . $planetrow["crystal"] . ",deuterium=" . $planetrow["deuterium"] . " WHERE `id`=" . $planetrow["id"] . ";", "planets"); } } echo_head("Edificios"); echo_topnav(); echo "<center>\n<br />\n<table width=530>"; /* Pequeña comprobacion en el cual se revisa si se esta construyendo algo en el planeta Si el tiempo en el row 'b_building_id' es distinto a cero. Este comprueba el tiempo de finalizacion de la construccion. Con time(); sacamos el tiempo actual y el tiempo en el que termina para la comprobacion. Si el time() es mayor. Se actualiza el edificio, y se reestablece cero el 'b_building_id' 'b_building' no hace falta actualizarlo, porque solo nos basaremos en 'b_building_id' */ if ($planetrow["b_building_id"] != 0) { if ($planetrow["b_building"] <= time()) { /* en este lugar se calculan los agregados de cada edificio, por ejemplo. cuanto afecta un edificio a la produccion de recursos, y cuanta energia consume el mismo.
function display($page, $title = '', $topnav = true) { global $link; echo_head($title); if ($topnav) { echo_topnav(); } echo "<center>\n{$page}\n</center>\n</body>\n</html>"; if (isset($link)) { mysql_close(); } }
//creamos el planeta doquery("INSERT INTO {{table}} (`id`, `galaxy` , `system` , `planet` , `name`, `id_owner`, `last_update`,`metal_perhour`, `crystal_perhour`) VALUES ('', '{$g}', '{$s}', '{$p}', '" . $_POST['hplanet'] . "', '{$iduser}','" . time() . "','20','10');", "planets"); //obtenemos el id planet $idplanet_array = doquery("SELECT `id` FROM {{table}} WHERE `id_owner` = '{$iduser}' LIMIT 1", "planets", true); $idplanet = $idplanet_array['id']; //actualizamos el id planet del user doquery("UPDATE {{table}} SET `id_planet` = '{$idplanet}' , `current_planet` = '{$idplanet}', `galaxy` = '{$g}' , `system` = '{$s}' , `planet` = '{$p}' WHERE `id` = '{$iduser}' LIMIT 1", "users"); //actualizamos la galaxy doquery("UPDATE {{table}} SET `id_planet` = '{$idplanet}' WHERE `galaxy` = '{$g}' AND `system` = '{$s}' AND `planet` = '{$p}' LIMIT 1", "galaxy"); sendpassemail($_POST['email'], "{$newpass}"); //mostramos el mensaje de que se creo correctamente message("Muchas Gracias por elegirnos.<br />En unos instantes recibiras un email con la contraseña ({$newpass})", "Registro completo"); } } else { //Formulario simple de registro echo_head("Registro"); echo <<<HTML <center> <h1><font size="24">{$lang['Register']}</font></h1> <h2>{$lang['Multiverse']}</h2> <p> <form action="" method="post"> <table width="519" border="0" cellspacing="0" cellpadding="4"> <tr> <td>{$lang['E-Mail']}</td> <td><input type="text" name="email" size="20" maxlength="40" /></td> </tr> <tr> <td>{$lang['MainPlanet']}</td> <td><input type="text" name="hplanet" size="20" maxlength="20" /></td> </tr>
Obtenemos informacion del id user al que se esta enviando el mensaje. En caso de no existir, el mensaje de !is_numeric($messageziel) crea un error visual... TOUH! HAY QUE REVISAR ESO EN LOS OTROS PHP... F**K! */ $user_query = doquery("SELECT * FROM {{table}} WHERE id={$messageziel}", 'users', true); if (!$user_query) { message("El jugador no existe.", 'Enviar mensaje'); } //No lo encuentro muy necesario... //$planet_query = doquery("SELECT * FROM {{table}} WHERE id=".$user_query["id_planet"],"planets",true); //if(!$planet_query){ error("Ha surgido un problema con el usuario al que estas mandando el mensaje.<br>Por favor, contacta a algun administrador para solucionar el problema.<br>Atte. el programador.<br><br>Asunto: Planeta principal no existe.","Enviar mensaje");} $pos_query = doquery("SELECT * FROM {{table}} WHERE id_planet=" . $user_query["id_planet"], "galaxy", true); if (!$pos_query) { error("Ha surgido un problema con el usuario al que estas mandando el mensaje.<br>Por favor, contacta a algun administrador para solucionar el problema.<br>Atte. el programador.<br><br>Asunto: Planeta principal no tiene coordenadas.", "Enviar mensaje"); } echo_head("Mensajes"); echo_topnav(); if ($_POST && $gesendet == 1) { /* Crear una nueva tabla donde se almacenaran los mensajes. aun falta averiguar que tipo de datos hirian... pero por ahora, solo va: id, owner, sender, time, title,y body */ $error = 0; if (!$_POST["betreff"]) { $error++; echo '<center><br><font color=#FF0000>Sin asunto<br></font></center>'; } if (!$_POST["text"]) { $error++;
//techtree.php v1.0 // Timer, para comprobar la velocidad del script $tiempo = microtime(); $tiempo = explode(" ", $tiempo); $tiempo = $tiempo[1] + $tiempo[0]; $tiempoInicio = $tiempo; //init include "common.php"; include "cookies.php"; $userrow = checkcookies(); //Identificación del usuario CheckUserExist($userrow); include INCLUDES_PATH . "planet_toggle.php"; //Cambia de planeta $planetrow = doquery("SELECT * FROM {{table}} WHERE id={$userrow['current_planet']}", 'planets', true); echo_head("Tecnologias"); echo_topnav(); echo "<br>\n<center>\n<table width=470>\n"; /* Crea la tabla con las diferentes tecnologias seguido de sus requerimientos minimos. Además checkea que se tenga esa tecnologia, y las colorea para su facil lectura. */ foreach ($tech as $i => $n) { if ($i == 0 || $i == 100 || $i == 200 || $i == 400 || $i == 40) { echo "\t<tr><td class=c>{$n}</td><td class=c>{$lang['Requirements']}</td></tr>\n"; } else { echo "\t<tr><td class=l><a href=infos.php?gid={$i}>{$n}</a></th>"; //se comprueba si se tienen los requerimientos necesarios if (isset($requeriments[$i])) { echo "<td class=l>"; foreach ($requeriments[$i] as $r => $n) {
$galaxy = $_POST["galaxy"] + 1; } else { $galaxy = !$galaxy ? $_POST["galaxy"] : $galaxy; //default } //Agrega o quita +1 en $system if ($_POST["systemLeft"]) { $system = $_POST["system"] - 1; } elseif ($_POST["systemRight"]) { $system = $_POST["system"] + 1; } else { $system = !$system ? $_POST["system"] : $system; //default } } echo_head("Galaxia"); ?> <script language="JavaScript"> function galaxy_submit(value) { document.getElementById('auto').name = value; document.getElementById('galaxy_form').submit(); } function fenster(target_url,win_name) { var new_win = window.open(target_url,win_name,'resizable=yes,scrollbars=yes,menubar=no,toolbar=no,width=640,height=480,top=0,left=0'); new_win.focus(); } </script><script language="JavaScript" src="scripts/tw-sack.js"></script><script type="text/javascript"> var ajax = new sack(); var strInfo = "";
doquery($query, "users"); break; case "message": $query = "CREATE TABLE {{table}} (\r\n `message_id` int(11) NOT NULL auto_increment,\r\n `message_owner` int(11) NOT NULL default '0',\r\n `message_sender` int(11) NOT NULL default '0',\r\n `message_time` int(11) NOT NULL default '0',\r\n `message_type` int(11) NOT NULL default '0',\r\n `message_from` varchar(32) default NULL,\r\n `message_subject` varchar(32) default NULL,\r\n `message_text` text,\r\n PRIMARY KEY (`message_id`)\r\n) TYPE=MyISAM;"; doquery($query, "messages"); break; case "fleets": $query = "CREATE TABLE {{table}} (\r\n `fleet_id` int(11) NOT NULL auto_increment,\r\n `fleet_owner` int(11) NOT NULL DEFAULT '0',\r\n `fleet_mission` int(11) NOT NULL default '0',\r\n `fleet_amount` int(11) NOT NULL default '0',\r\n `fleet_array` text,\r\n `fleet_star_time` int(11) NOT NULL default '0',\r\n `fleet_start_galaxy` int(11) NOT NULL default '0',\r\n `fleet_start_system` int(11) NOT NULL default '0',\r\n `fleet_start_planet` int(11) NOT NULL default '0',\r\n `fleet_start_type` int(11) NOT NULL default '0',\r\n `fleet_star_end` int(11) NOT NULL default '0',\r\n `fleet_end_galaxy` int(11) NOT NULL default '0',\r\n `fleet_end_system` int(11) NOT NULL default '0',\r\n `fleet_end_planet` int(11) NOT NULL default '0',\r\n `fleet_end_type` int(11) NOT NULL default '0',\r\n `fleet_resource_metal` int(11) NOT NULL DEFAULT 0,\r\n `fleet_resource_crystal` int(11) NOT NULL DEFAULT 0,\r\n `fleet_resource_deuterium` int(11) NOT NULL DEFAULT 0,\r\n PRIMARY KEY (`fleet_id`)\r\n) TYPE=MyISAM;"; doquery($query, "fleets"); break; case "buddy": $query = "CREATE TABLE {{table}} (\r\n `id` int(11) NOT NULL auto_increment,\r\n `sender` int(11) NOT NULL default '0',\r\n `owner` int(11) NOT NULL default '0',\r\n `active` tinyint(3) NOT NULL default '0',\r\n `text` text,\r\n PRIMARY KEY (`id`)\r\n) TYPE=MyISAM;\r\n"; doquery($query, "buddy"); break; default: echo_head("Install"); echo '<center> <h2>Instalación</h2><br /><br /> Resource [ <a href="install.php?id=resouce">Instalar</a> ]<br /><br /> Galaxy [ <a href="install.php?id=galaxy">Instalar</a>] <br /><br /> Planets [ <a href="install.php?id=planets">Instalar</a> ]<br /><br /> Notes [ <a href="install.php?id=notes">Instalar</a> ]<br /><br /> Users [ <a href="install.php?id=users">Instalar</a> ]<br /><br /> Forum [ <a href="install.php?id=forum">Instalar</a> ]<br /><br /> Alliance [ <a href="install.php?id=alliance">Instalar</a> ]<br /><br /> Message [ <a href="install.php?id=message">Instalar</a> ]<br /><br /> Fleets [ <a href="install.php?id=fleets">Instalar</a> ]<br /><br /> Buddy [ <a href="install.php?id=buddy">Instalar</a> ]<br /><br /> Changelog [ <a href="install.php?id=changelog">Instalar</a> ]<br /><br /> </center>'; }
//un contador menos... } else { $b = 0; //para romper el loop } } //ahora que ya quitamos los recursos, que se actualizan solos ademas! //se procede a crear la array de produccion foreach ($builds as $a => $b) { $planetrow['b_hangar_id'] .= "{$a},{$b};"; } } } } } echo_head("Defensa"); echo_topnav(); echo "<center>\r\n <br />\r\n <form action=buildings?mode=defense method=post>\r\n <table align=top><tr><td> \r\n <table width=530>"; if ($planetrow[$resource[21]] == 0) { message("¡Es necesario construir primero un hangar en este planeta!", "Hangar"); } $tabindex = 0; foreach ($tech as $i => $n) { //Defensa if ($i > 400 && $i <= 599) { if (!is_tech_available($userrow, $planetrow, $i)) { echo "</tr>\n"; } else { //Funciona ^_^ echo "<tr><td class=l><a href=infos?gid={$i}><img border='0' src=\"" . $dpath . "gebaeude/{$i}.gif\" align='top' width='120' height='120'></a></td>"; //obtenemos la cantidad de unidades que hay en el planeta
if ($note_query) { $deleted++; doquery("DELETE FROM {{table}} WHERE `id`={$id};", "notes"); // y borramos } } } if ($deleted) { $mes = $deleted == 1 ? $lang['NoteDeleted'] : $lang['NoteDeleteds']; message($mes, $lang['Please_Wait'], "notes", "3"); } else { header("Location: notes"); } } else { //sin post... echo_head($lang['Notes']); echo '<script src="scripts/cntchar.js" type="text/javascript"></script> <script src="scripts/win.js" type="text/javascript"></script> <center>'; if ($a == 1) { //crear una nueva nota. /* Formulario para crear una nueva nota. */ echo '<form action=notes method=post> <input type=hidden name=s value=1> <table width=519> <tr> <td class=c colspan=2>' . $lang['Createnote'] . '</td> </tr> <tr>
function display($page, $title = '', $topnav = true, $metatags = '') { global $link, $game_config, $debug, $user; //die('---~|~---'); echo_head($title, $metatags); if ($topnav) { echo_topnav(); } echo '<div id="content">'; echo "<center>\n{$page}\n</center>\n"; //Muestra los datos del debuger. if ($user['authlevel'] == 1 || $user['authlevel'] == 3) { if ($game_config['debug'] == 1) { $debug->echo_log(); } } echo echo_foot(); if (isset($link)) { mysql_close(); } die; }
if ($note_query) { $deleted++; doquery("DELETE FROM {{table}} WHERE `id`={$id};", "notes"); // y borramos } } } if ($deleted) { $mes = $deleted == 1 ? "La nota se borro" : "Las notas se borraron"; message($mes . ' con exito, <a href="notes"><blink>redireccionando...</blink></a>', "Espere por favor", "notes", "3"); } else { header("Location: notes.php"); } } else { //sin post... echo_head("Notas"); echo '<script src="scripts/cntchar.js" type="text/javascript"></script> <script src="scripts/win.js" type="text/javascript"></script> <center>'; if ($a == 1) { //crear una nueva nota. /* Formulario para crear una nueva nota. */ echo '<form action=notes method=post> <input type=hidden name=s value=1> <table width=519> <tr> <td class=c colspan=2>Hacer una nota</td> </tr> <tr>