URL: https://www.overclockers.at/coding-stuff/bald_geb_ichs_auf_35405/page_1 - zur Vollversion wechseln!
<?
srand ((double) microtime() * 1000000);
$zufall = rand(1000000,9999999); //zahl ermitteln
if ($pwd == 47478);
{
echo <<<test
<html>
<head>
<title>:: Admin bereich ::</title>
</head>
<body bgcolor="#F5D9AE" text="black">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse;
text-align:center" bordercolor="#111111" width="47%" height="127" align="center">
<tr>
<td bgcolor="#B4B4B4" width="100%" height="19">
<p style="text-align: left"><b>:: Admin Bereich für <font color="red"> $User </font> ::</b></td>
</tr>
<tr>
<td width="100%" height="87">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse"
bordercolor="#111111" width="100%" height="65">
<tr>
<BR>
<form action="news.php" method="post">
<td width="29%" height="19">News schreiben</td>
<td width="71%" height="19"><INPUT TYPE="HIDDEN" NAME="zot" VALUE="$zufall">
<input type="text" maxlength="8" size="20" name="rofl"><font size="-1" color="red">
*</font> <input type="submit" value="OK"></form></td>
</td>
</tr>
<p>
</tr>
<tr>
<BR>
<form action="loesche.php" method="post">
<td width="29%" height="19">News löschen</td>
<td width="71%" height="19"><INPUT TYPE="HIDDEN" NAME="zot" VALUE="$zufall">
<input type="text" maxlength="8" size="20" name="rofl"><font size="-1" color="red">
*</font> <input type="submit" value="OK"></form></td>
</td>
<tr>
<td width="29%" height="19">
<p align="center">
<br>
</CENTER></form></td>
<td width="71%" height="19">
<font size="-1" color="red"> *</font> <font size="-1">Deine Automatisch generiert Nummer lautet:
$zufall </font>
</td>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#B4B4B4" width="100%" height="19">
<p align="right"><b><font size="2" color="#FFFFFF">© by [ETP]Grisu</font></b></td>
</tr>
</table>
</center>
</div>
</body>
</html>
test;
} else {
$ip = getenv(REMOTE_ADDR);
$datenbank = "ip.txt";
$datei = fopen($datenbank,"a");
fwrite($datei, $ip);
fclose($datei);
echo <<<muh
<html>
<head>
<title>:: Ip Added ::</title>
</head>
<body bgcolor="#F5D9AE" text="black">
<table border="1" cellpadding="0" cellspacing="0" style="border-collapse: collapse;
text-align:center" bordercolor="#111111" width="47%" height="127" align="center">
<tr>
<td bgcolor="#B4B4B4" width="100%" height="19">
<p style="text-align: left"><b>:: IP <font color="red"> Added </font> ::</b></td>
</tr>
<tr>
<td width="100%" height="87">
<table border="0" cellpadding="0" cellspacing="0" style="border-collapse: collapse"
bordercolor="#111111" width="316" height="65">
<tr>
<BR>
<td width="298" height="10">
<p align="center">Deine IP ( $ip ) wurde soeben <font color="#FF0000">gesperrt</font>.<p
align="center"> </td>
<td width="19" height="19" rowspan="2"></td>
</td>
</tr>
<tr>
<td width="298" height="9">
</td>
</tr>
<p>
</tr>
</table>
</td>
</tr>
<tr>
<td bgcolor="#B4B4B4" width="100%" height="19">
<p align="right"><b><font size="2" color="#FFFFFF">© by [ETP]Grisu</font></b></td>
</tr>
</table>
</center>
</div>
</body>
</html>
muh;
}
?>
Parse error on line 59 oder so
lösch den strichpunkt in der 4. zeile
ich empfehl dir nochmal, lies ein gscheites php-tutorial!
Zitat von noledgeich empfehl dir nochmal, lies ein gscheites php-tutorial!
der gepostete code schaut mir nach wildem herumprobieren aus
da fehlts an den programmiergrundlagen - aber hauptsache eine ip-sperre, die nicht funktioniert ist drin
also empfehle ich wirklich mal das studium eines tutorials.
ajo, FYI: nochmal so an schwall sourcecode posten und du bist weg aus diesem forum
Zitat von .deRElict.ajo, FYI: nochmal so an schwall sourcecode posten und du bist weg aus diesem forum
Die Ipsperre funkt einwandfrei--->Habs scho probiert aber derzeit funkts nu ned mit prooxy
lol
bei einem 5-stelligen numerischen passwort hab ich das mit brute-force schneller als du sperren kannst.
finds btw ziemlich dumm so a sperre ... vertippst dich einmal und weg bist
*gG* aba fi a clanhp wirst ned extra brutforcen ... oiso voi unützte wollte nur mal mit php weil mas ned so leicht auserfind wie mit java
overclockers.at v4.thecommunity
© all rights reserved by overclockers.at 2000-2025