Problem med nyheds script
Hejsa, har hentet et script fra script.dkhttp://www.script.dk/sourcecode.jsp?action=showDownloadUrl&resourceId=1125
kan ikke finde ud af hvor man indstiller admin navn og password..
i filen admin_login.php står der:
<?php
session_start();
if (isset($_POST['logind'])) {
include("config.php");
$queryadmin = mysql_query("SELECT COUNT(id) FROM admin WHERE user='$_POST[nick]' AND pass='$_POST[pass]'");
$admin = mysql_fetch_array($queryadmin);
if ($admin['0'] > 0) {
$_SESSION['aid'] = 1;
header("Location: admin.php");
exit;
}
}
?>
<form method="post" action="<?php echo $_SERVER['PHP_SELF']; ?>">
Brugernavn: <input type="text" name="nick"><br/>
Kodeord: <input type="password" name="pass"><br/>
<input type="submit" name="logind" value="Log ind">
</form>
håber i kan hjælpe
