header("Cache-Control: no-cache, max-age=0");
header("Pragma: no-cache");
$skin = $_GET['skin'];
$ref = $_GET['ref'];
$connect = $_GET['connect'];
if(!file_exists('theme/'.$skin.'.css') or !$skin)
{
$skin = 'basique';
}
echo '';
echo '';
echo '';
echo '';
include 'conect_mysql.php';
if($_GET['sid'])
{
$sid = $_GET['sid'];
}
else
{
$sid = $_GET['sod'];
}
echo '
';
$sql_srv = "SELECT * FROM pa_server WHERE id_srv ='".$sid."' ";
$ret_srv = mysql_query($sql_srv) or die('Erreur SQL !
'.$sql_srv.'
'.mysql_error());
$aff_srv =mysql_fetch_array ($ret_srv);
if($aff_srv)
{
$sql_machine = "SELECT * FROM pa_machine WHERE id_machine='".$aff_srv['id_machine']."'";
$ret_machine = mysql_query($sql_machine) or die('Erreur SQL !
'.$sql_machine.'
'.mysql_error());
$aff_machine =mysql_fetch_array ($ret_machine);
$ip = $aff_machine['ip'];
$port = $aff_srv['port'];
$qport = $aff_machine['qport'];
$Qlogin = $aff_machine['login_ssa'];
$Qpasse = $aff_machine['passe_ssa'];
$srn = $aff_srv['sid_trn'];
if($_GET['TRV'] == 'OK')
{
include $aff_machine['tp_ver'].'/aff_'.$aff_machine['tp_ver'].'2.php';
}
else
{
include $aff_machine['tp_ver'].'/aff_'.$aff_machine['tp_ver'].'.php';
}
echo '
';
}
else
{
echo '
Ce serveur n\'éxiste pas
TSCAST LOCATION TS
';
}
echo '
';
?>