1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
| <title>Gestion de la radio</title>
<style type="text/css">
<!--
body {
background: url(../../images/imagedj.jpg) no-repeat center center fixed;
-webkit-background-size: cover;
-moz-background-size: cover;
-o-background-size: cover;
background-size: cover;
}
body,td,th {
color: #F00;
font-weight: bold;
}
-->
</style>
<?
$user=$_POST['user'];
$pw=$_POST['pw'];
$hostname = "**********";
$database = "**********";
$username = "**********";
$password = "***********";
$connexion = mysql_connect($hostname, $username, $password) or die(mysql_error());
mysql_select_db($database, $connexion);
$req_on=mysql_query("select * from radio");
$on=mysql_fetch_array($req_on);
if ($user==$on['user'])
{
if ($pw==$on['pw'])
{
if ($on['etat']==1)
{ ?>
<center><img src="images/onair.gif" title="MIX LIVE" >
<? } else { ?>
<center><img src="images/onair0.png" title="MIX LIVE OFFLINE" >
<? }
include ("radio.php");
} else { ?>
<center><form action="" method="POST" >
Utilisateur : <input type="text" name="user" /><br/>
Mot de passe : <input type="password" name="pw" /><br/>
<input type="submit" value="Se connecter" />
</form></center><?
}
} else { ?>
<center><form action="" method="POST" >
Utilisateur : <input type="text" name="user" /><br/>
Mot de passe : <input type="password" name="pw" /><br/>
<input type="submit" value="Se connecter" />
</form></center>
<? }
?>
</center> |