voici mon fichier account-login.php
je comprend pas ou mettre input username >> id="nick" et au input password>> id="passw"
<?
//
// TorrentTrader v2.x
// This file was last updated: 21/June/2007
//
// http://www.torrenttrader.org
//
//
require_once("backend/functions.php");
dbconn();
getip();
$site_config["LEFTNAV"] = $site_config["MIDDLENAV"] = $site_config["RIGHTNAV"] = false;
unset($returnto);
if (!empty($_GET["returnto"])) {
$returnto = $_GET["returnto"];
if (!$_GET["nowarn"]) {
$message = "Désolé cette page est seulement pour les membres.";
}
}
if (mkglobal("username:password")) {
$password = md5($password);
$res = mysql_query("SELECT id, password, secret, status, enabled FROM users WHERE username = " . sqlesc($username) . "");
$row = mysql_fetch_array($res);
if ($row["status"] == "pending")
$message = "Your account is currently pending, please check your email";
if (!$row)
$message = "Username Incorrect";
elseif ($row["password"] != $password)
$message = "Password Incorrect";
elseif ($row["enabled"] == "no")
$message = "This account has been disabled by an administrator.";
if (!$message){
logincookie($row["id"], $row["password"], hash_pad($row["secret"], 20));
if (!empty($_POST["returnto"])) {
header("Refresh: 0; url=" . $_POST["returnto"]);
die();
}
else {
header("Refresh: 0; url=index.php");
die();
}
}else{
show_error_msg("Access Denied", $message,1);
}
}
logoutcookie();
stdhead("Login");
begin_frame("" . LOGIN . "");
?>
<form method=post action=account-login.php>
<div align=center>
<table border=0 cellpadding=1>
<tr>
<td align=center><font face=Verdana size=1><b><? print("" . USER_NAME . "n"); ?>:</b></font></td>
</tr><tr>
<td align=center><input type=text size=12 name=username style="font-family: Verdana; font-size: 8pt; font-weight: bold; border-width: 1px; background-color: #C0C0C0" id="nick" /></td>
</tr><tr>
<td align=center><font face=Verdana size=1><b><? print("" . PASSWORD . "n"); ?>:</b></font></td>
</tr><tr>
<td align=center><input type=password size=12 name=password style="font-family: Verdana; font-size: 8pt; font-weight: bold; border-width: 1px; background-color: #C0C0C0" id="passw" /></td>
</tr><tr>
<td align=center><input type=submit value=Login style="font-family: Verdana; font-size: 8pt; font-weight: bold; border-collapse: collapse; border-width: 1px"/></td>
</tr>
</table>
</td>
</form>
<?
if (isset($returnto))
print("<input type="hidden" name="returnto" value="" . htmlspecialchars($returnto) . "" />n");
?>
</form>
<p align="center"><a href="account-signup.php"><?echo "" . REGISTERNEW . "";?></a> | <a href="account-recover.php"><?echo "" . RECOVER_ACCOUNT . "";?></a></p>
<?
end_frame();
stdfoot();
?>