[ create a new paste ] login | about

Link: http://codepad.org/pUiSFRwE    [ raw code | output | fork ]

PHP, pasted on Sep 7:
<?php
$pass = $_POST['pass'];
$password = "content";  // Modify Password to suit for access, Max 10 Char.
?>
<html>
<title></title>
<head>
<?php 
// If password is valid let the user get access
if ( $pass == $password) {
?>
<!-- START OF HIDDEN HTML - PLACE YOUR CONTENT HERE -->
</head>
<body>
You have gained access!
<!-- END OF HIDDEN HTML -->
<?php 
}
else
{
// Wrong password or no password entered display this message
print "<p align=\"center\"><font color=\"red\"><b>Restricted Area!</b><br>Please enter from the log in page</font></p>";
}
?>
</body>
</html>


Output:
1
2
3
4
5
<html>
<title></title>
<head>
<p align="center"><font color="red"><b>Restricted Area!</b><br>Please enter from the log in page</font></p></body>
</html>


Create a new paste based on this one


Comments: