15/06/2010, 07:11
|
| | Fecha de Ingreso: noviembre-2009
Mensajes: 76
Antigüedad: 15 años, 1 mes Puntos: 2 | |
Respuesta: Ayuda Juego Browser floten2.php ( aqui se calcula el tiempo y los recursos necesarios para la mision y se elige el objetivo ) parte 1
Código:
<?
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"); }
//
// Esta funcion permite cambiar el planeta actual.
//
include($ugamela_root_path . 'includes/planet_toggle.'.$phpEx);
$planetrow = doquery("SELECT * FROM {{table}} WHERE id={$user['current_planet']}",'planets',true);
$galaxyrow = doquery("SELECT * FROM {{table}} WHERE id_planet={$planetrow['id']}",'galaxy',true);
$dpath = (!$user["dpath"]) ? DEFAULT_SKINPATH : $user["dpath"];
check_field_current($planetrow);
includeLang('fleet');
includeLang('tech');
{//info
if ($_POST['kolonizator'] == "1" && $_POST['sondeczka' ]== "1" && $_POST['Gwiazda' ]== "1" && $_POST['Recykler' ]== "1")
{
$missiontype = array(
1 => 'Atacar',
3 => 'Transportar',
4 => 'Desplegar',
5 => 'Destruir',
6 => 'Espiar',
9 => 'Negociar',
8 => 'Recojer',
);
}elseif ($_POST['kolonizator'] == "1" && $_POST['sondeczka' ]== "1" && $_POST['Gwiazda' ]== "1")
{
$missiontype = array(
1 => 'Atacar',
3 => 'Transportar',
4 => 'Desplegar',
5 => 'Destruir',
6 => 'Espiar',
9 => 'Negociar',
);
}elseif ($_POST['kolonizator'] == "1" && $_POST['sondeczka' ]== "1" && $_POST['Recykler' ]== "1")
{
$missiontype = array(
1 => 'Atacar',
3 => 'Transportar',
4 => 'Desplegar',
8 => 'Recojer',
6 => 'Espiar',
9 => 'Negociar',
);
}elseif ($_POST['kolonizator'] == "1" && $_POST['sondeczka' ]== "1" && $_POST['Recykler' ]== "1")
{
$missiontype = array(
1 => 'Atacar',
3 => 'Transportar',
4 => 'Desplegar',
8 => 'Recojer',
6 => 'Espiar',
9 => 'Negociar',
);
}elseif ($_POST['kolonizator'] == "1" && $_POST['sondeczka' ]== "1")
{
$missiontype = array(
1 => 'Atacar',
3 => 'Transportar',
4 => 'Desplegar',
9 => 'Negociar',
6 => 'Espiar',
);
}elseif ($_POST['kolonizator'] == "1" && $_POST['Recykler' ]== "1")
{
$missiontype = array(
1 => 'Atacar',
3 => 'Transportar',
4 => 'Desplegar',
9 => 'Negociar',
8 => 'Recojer',
);
}elseif ($_POST['kolonizator'] == "1" && $_POST['Gwiazda' ]== "1")
{
$missiontype = array(
1 => 'Atacar',
3 => 'Transportar',
4 => 'Desplegar',
9 => 'Negociar',
5 => 'Destruir',
);
}elseif ($_POST['sondeczka'] == "1" && $_POST['Recykler' ]== "1")
{
$missiontype = array(
1 => 'Atacar',
3 => 'Transportar',
4 => 'Desplegar',
8 => 'Recojer',
6 => 'Espiar',
);
}elseif ($_POST['sondeczka'] == "1" && $_POST['Gwiazda' ]== "1")
{
$missiontype = array(
1 => 'Atacar',
3 => 'Transportar',
4 => 'Desplegar',
5 => 'Destruir',
6 => 'Espiar',
);
}elseif ($_POST['Recykler'] == "1" && $_POST['Gwiazda' ]== "1")
{
$missiontype = array(
1 => 'Atacar',
3 => 'Transportar',
4 => 'Desplegar',
8 => 'Recojer',
5 => 'Destruir',
);
}elseif ($_POST['sondeczka'] == "1")
{
$missiontype = array(
1 => 'Atacar',
3 => 'Transportar',
4 => 'Desplegar',
6 => 'Espiar',
);
}elseif ($_POST['Recykler'] == "1")
{
$missiontype = array(
1 => 'Atacar',
3 => 'Transportar',
4 => 'Desplegar',
8 => 'Recojer',
);
}elseif ($_POST['Gwiazda'] == "1")
{
$missiontype = array(
1 => 'Atacar',
3 => 'Transportar',
4 => 'Desplegar',
5 => 'Destruir',
);
}elseif ($_POST['kolonizator'] == "1")
{
$missiontype = array(
1 => 'Atacar',
3 => 'Transportar',
4 => 'Desplegar',
9 => 'Negociar',
);
}
else
{
$missiontype = array(
1 => 'Atacar',
3 => 'Transportar',
4 => 'Desplegar',
);
}
$speed = array(
10 => 100,
9 => 90,
8 => 80,
7 => 70,
6 => 60,
5 => 50,
4 => 40,
3 => 30,
2 => 20,
1 => 10,
);
}
$g = $_POST['g'];
$s = $_POST['s'];
$p = $_POST['p'];
$t = $_POST['t'];
$galaxy = $_POST['galaxyend'];
$system = $_POST['systemend'];
$planet = $_POST['planetend'];
$t = $_POST['t'];
if(!$g){$g = $planetrow['galaxy'];}
if(!$s){$s = $planetrow['system'];}
if(!$p){$p = $planetrow['planet'];}
if(!$t){$t = $planetrow['planet_type'];}
$page =' <table>
<form action="floten3.php" method="post">
<tr height="20">
<th>Mission</th>
<th></th>
<th> <select name="mission" onChange="shortInfo()" onKeyUp="shortInfo()">';
|