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 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163
| <?php
if(!isset($_SESSION['login'])){
session_start();
}
include("connect/connect.php");
?>
<head>
<title>Keub51.free.fr</title>
<meta name="keywords" content="Jump Teck Jumpstyle cap'tain tremplin h2o bush Radio Compilations" />
<meta name="description" content="Le meilleur son jumpstyle des boîtes belges remixé par DJ Keub.
Une selection de plusieurs centaines de musiques.
De nombreuses compilations Ã* télécharger." />
<link href="style/style.css" rel="stylesheet" type="text/css" media="screen" />
</head>
<body>
<center>
<div id="header">
<div id="logo">
<h1><a href="#">TecK-eub</a></h1>
<p> • by Dj Keub - download jump sets</p>
</div>
<div id="search">
<?php
if(isset($_POST['disconnect']))
{
unset($_POST['login']);
unset($_POST['password']);
unset($_SESSION['login']);
session_destroy();
}
if(isset($_POST['login']) && isset($_POST['password']) || isset($_SESSION['login'])){//si l'on tente de se loguer ou l'on est loggué
//verifier que lutilisateur existe
include("connect/connect.php");
$isConnected=false;
if(isset($_SESSION['login'])){
$isConnected=true;
}
if($isConnected==false)
{
$retour = mysql_query('SELECT LOGIN FROM DO_CPTWEB WHERE login=\'' . $_POST['login'] . '\' AND PASSWORD=\'' . $_POST['password'] . '\'');
if( $donnees = mysql_fetch_array($retour) ) {
$_SESSION['login'] = $_POST['login'];
$isConnected=true;
}
}
if($isConnected==true){
?>
<table align="right">
<tr>
<td align="right">
<?php
echo "Bonjour " . $_SESSION['login'] . "!";
?>
<br/>
<a href="mail.php">Voir vos messages</a>
<?php
//compteur de visites online
if ( $d = opendir( session_save_path() ) ) {
$count = 0;
$session_timeout = 3 * 60;
while ( false !== ( $file = readdir( $d ) ) ) {
if ( $file != '.' && $file != '..' ) {
if ( time()- fileatime(session_save_path() . '/' . $file) < $session_timeout ) {
$count++;
}
}
}
}
if ($count<1)
echo " <br />1 Membre";
else
echo " <br />" . $count . " Member";
if($count>1)
echo"s";
echo " en ligne.";
?>
</td>
</tr>
<tr>
<td align="right">
<form action="index.php" method="POST">
Se déconnecter
<input type="image" src="images/submit_ok.jpg" value="OK">
<input type="hidden" name="disconnect" value="1">
</form>
</td>
</tr>
</table>
<?php
}
else{
?>
<table align="right">
<tr>
<td align="right">
<form action="#" method="POST">
Utilisateur ou mot de passe inconnu.
retry ? <input type="image" src="images/submit_ok.jpg" value="OK">
<input type="hidden" name="disconnect" value="1">
</form>
</td>
</tr>
</table>
<?php
}
}
else{
?>
<table align="right">
<form action="#" method="POST" name="form_login" id="form_login">
<tr>
<td align="right">login : </td><td><input type="text" id="login" name="login" value="" size="12" tabindex=1/></td>
<td rowspan="2">
<input type="image" src="images/submit_ok.jpg" value="OK" tabindex=3 />
</td>
</tr><tr>
<td align="right">password : </td><td><input type="password" id="password" name="password" tabindex=2 value="" size="12" /></td>
</tr>
</form>
</tr>
<tr>
<td colspan="3" align="right">
<a href="mdp_oubli.php">Mot de passe oublié ? </a> -
<a href="inscription.php">Inscription</a>
</td>
</tr>
</form>
</table>
<?php
}
?>
</div>
<!-- end #search -->
</div>
<!-- end #header -->
<div id="menu">
<ul>
<li><a href="index.php" style="height:15px;">Home</a></li>
<li><a href="download.php" style="height:15px;">Download</a></li>
<li><a href="commentaires.php" style="height:15px;">Comments</a></li>
<li><a href="links.php" style="height:15px;">Links</a></li>
<li><a href="contact.php" style="height:15px;">Contact</a></li>
<li><a href="#" style="height:15px;cursor:hand;" onClick="window.open('lecteurPopUp.php','Teck-eub Lecteur MP3','width=502, height=410, menubar=no, status=no, scrollbars=no, menubar=no' );">Music Box</a></li>
</ul>
</div>
<!-- end #menu --> |