login.php to HTML

index

USE AT OWN RISK

Generated: Tue Jul 31 15:22:08 2007 from login.php 2005/12/03 3.6 KB bytes.

<?PHP 
if( isset($_GET['login']) ) { 
   // establish user name and password
   $username = 'user'; 
   $password = 'pass'; 
   // get user input from POST
   $form_user = $_POST['username']; 
   $form_pass = $_POST['password']; 

   if ($username == $form_user && $password == $form_pass){ 
   // SUCCESS - fall in to SHOW the desired content, hidden by LOGIN
?>
 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<title>Zip File Listing</title>
</head>
<body>
<h1 align="center">Zip File Listing</h1>
<span style="background-color: #eeeeff;"><font style="color: black;">
<table width="100%" border="0"><tr><td width="100%" align="center">
Successfully Logged In <a href="login.php">Logout</a>
</td></tr></table>
</font></span>

<p>Click on the following links to download the ZIP file. These contain the
source, or the binary EXE WIN32 files. Most were compiled using Microsoft Visual
Studio .NET 2003 ... Naturally the source, and EXE is destined for a WIN32
environment, but some may be adaptable to other environments ... no warranty is
given or implied ... Just some <font color="#FF0000"><b>PERSONAL</b></font>
tools ...</p>

<p align="center">
Directory Compare, source <a href="DC4W-31.zip">DC4W-31.zip</a><br>
Directory Compare. EXE <a href="dc4we31.zip">dc4we31.zip</a><br>
Directory scan, outputting HTML summary, source <a href="dirg-02.zip">dirg-02.zip</a><br>
Directory scan, EXE <a href="dirge02.zip">dirge02.zip</a><br>
DIB View, source <a href="dv32-07.zip">dv32-07.zip</a><br>
DIB View, EXE <a href="dv32e07.zip">dv32e07.zip</a><br>
Execute, with redirection, source <a href="exec-04.zip">exec-04.zip</a><br>
Execute Command, EXE <a href="exece04.zip">exece04.zip</a><br>
Find All, in files, source <a href="fa4-18.zip">fa4-18.zip</a><br>
Find All, EXE <a href="fa4e18.zip">fa4e18.zip</a><br>
File Compare, source <a href="FC4-02.zip">FC4-02.zip</a><br>
Fix File, source <a href="FixF-16.zip">FixF-16.zip</a><br>
Fix File, EXE <a href="FixFe16.zip">FixFe16.zip</a><br>
MD5 Digest Generation, source <a href="md5-01.zip">md5-01.zip</a><br>
SHA1 Digest generation, source <a href="sha1-01.zip">sha1-01.zip</a><br>
Visual Basic Browser, using IE, source <a href="VBIE-01.zip">VBIE-01.zip</a><br>
Visual Basic Browser, EXE <a href="VBIEe01.zip">VBIEe01.zip</a>
</p>

<p>Listed 17 zips for download ... Due care should be taken in downloading and
running EXE files from the web ... Praise me if it works, but do not blame me
;=)) These are just a list of my person tools, and have no other intended
purpose ...</p>

</body>
</html>
<!-- Max5.2005.11.29 geoff mclane - generated by C:\Gtools\perl\zipindex.pl -->

<?PHP 
   } else { 
   // show FAILED
   print "<h1 align=\"center\">Zip Login Failed</h1>\r\n";
   print "<p align=\"center\">Sorry, Username or Password Failed!<br>\r\n"; 
   print "Click <a href='login.php'>BACK</a> to try again ...</p>\r\n"; 
   } 
}else{ 
   // show the LOGIN FORM
?>
 

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"> 
<html> 
<head> 
<title>Zip File Login</title> 
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1"> 
</head> 
<body> 
<h1 align="center">Zip File Login</h1>

<p align="center">
<center>
<form action="login.php?login=1" name="login" method="post"> 
Username: <input name="username" type="text" title="UserName"><br> 
Password: <input name="password" type="password" title="Password"><br> 
<input name="Go" type="submit" value="Login"> 
</form>
</center>
</p>

</body> 
</html> 

<?PHP 
} 
?>

index

Valid HTML 4.01 Transitional