Also ich hab mir jetzt mal Longfangs-Script runtergeladen und angeschaut. Nur: Wie kann ich das jetzt einbinden?Sorry, bin aber ein totaler Noob^^
[edit] Das Login ohne Rechtesystem bedeutet also, dass man nur eine Art user erstellen kann oder? Aber wie kann ich einen ganzen ordner damit schützen?
[edit2] Kann es sein dass ich in jede filedie ich schützen will nur
PHP-Code:
<? require_once("check.inc.php"); echo "<a href=\"login.php?what=logout\">logout </a> | "; ?>
einfügen muss?
Ich habe hier einfach mal meinen index.php sourcecode eingefügt:
<html>
<head>
<title>Unbenanntes Dokument</title>
<link rel="stylesheet" href="style.css" type="text/css">
<script language="JavaScript" type="text/JavaScript">
<!--
function MM_reloadPage(init) { //reloads the window if Nav4 resized
if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
</script>
</head>
<body scroll="auto">
<div id="Layer1" style="position:absolute; width:900px; height:640px; z-index:1; left: 69px; top: 65px; overflow: auto;"><?php include("./corenews2/shownews.php"); ?></div>
<div id="Layer2" style="position:absolute; width:486px; height:27px; z-index:2; left: 272px; top: 720px;">
<div align="center"><a href="#">[ HOME ]</a> - <a href="#">[MEMBERS ]</a> -
<a href="#">[ FORUM ]</a> - <a href="#">[ INTERN ]</a></div>
</div>
<div id="Layer3" style="position:absolute; width:97px; height:92px; z-index:3; left: 871px; top: 628px;">
<table width="100%" border="0" cellpadding="0" cellspacing="0">
<tr>
<td>Benutzername:</td>
</tr>
<tr>
<td><input name="textfield" type="text" size="15" class="textfield"></td>
</tr>
<tr>
<td> </td>
</tr>
<tr>
<td>Passwort:</td>
</tr>
<tr>
<td><input name="textfield2" type="text" size="15" class="textfield"></td>
</tr>
<tr>
<td><input type="submit" name="Submit" value="Submit" class="submit"></td></tr>
</table>
<p> </p>
</div>
<table width="100%" height="100%" border="0">
<tr>
<td align="left" valign="top"><img src="pics/bg4.jpg" width="1028" height="768"></td>
</tr>
</table>
</body>
</html>
könnt ihr mir dsagen wo ich jetzt statt dem loginzeug das jetzt noch in html dasteht, php einfügen muss?