Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- echo sha1("%20");
- echo "<br />";
- echo sha1(" ");
- echo "<br />";
- echo sha1(" ");
- // Check variables.
- $fullname = isset($_POST['fullname']) ? $_POST['fullname'] : false;
- $username = isset($_POST['username']) ? $_POST['username'] : false;
- $password = isset($_POST['password']) ? $_POST['password'] : false;
- $repeatpassword = isset($_POST['repeatpassword']) ? $_POST['repeatpassword'] : false;
- $date = isset($_POST['date']) ? $_POST['date'] : false;
- // Set variables.
- @$submit = $_POST['submit'];
- @$fullname = strip_tags($_POST['fullname']);
- @$username = strip_tags($_POST['username']);
- @$password = sha1(strip_tags($_POST['password']));
- @$repeatpassword = sha1(strip_tags($_POST['repeatpassword']));
- @$date = date("Y-m-d");
- echo "<h1>Register</h1>";
- echo "<p><sub>Form status:</sub></p>";
- echo "<span class='base4 form_status'>";
- if(isset($_POST['fullname'])) {
- if (!empty($_POST['fullname'])) {echo "The fullname has been <b>set</b>.<br />";}
- else {echo "No information entered for <b>fullname</b>.<br />";}
- } else {echo "The fullname is <b>not set</b> yet.<br />";}
- if(isset($_POST['username'])) {
- if (!empty($_POST['username'])) {echo "The username has been <b>set</b>.<br />";}
- else {echo "No information entered for <b>username</b>.<br />";}
- } else {echo "The username is <b>not set</b> yet.<br />";}
- if(isset($_POST['password'])) {
- if (!empty($_POST['password'])) {echo "The password has been <b>set</b>.<br />";}
- else {echo "No information entered for <b>password</b>.<br />";}
- } else {echo "The password is <b>not set</b> yet.<br />";}
- if(isset($_POST['repeatpassword'])) {
- if (!empty($_POST['repeatpassword'])) {echo "The repeated password has been <b>set</b>.<br />";}
- else {echo "No information entered for <b>repeated password</b>.<br />";}
- } else {echo "The repeated password is <b>not set</b> yet.<br />";}
- echo "</span>";
- if (($fullname)==='da39a3ee5e6b4b0d3255bfef95601890afd80709'||'b858cb282617fb0956d960215c8e84d1ccf909c6'||'986f2ed15c79ed805000eccd85519810b2db2a93'||'47c1f11ed4d1aad1a1b674bda71a89d4ff562d55') {$fullname = '[MANDATORY!]';}
- if (($username)==='da39a3ee5e6b4b0d3255bfef95601890afd80709'||'b858cb282617fb0956d960215c8e84d1ccf909c6'||'986f2ed15c79ed805000eccd85519810b2db2a93'||'47c1f11ed4d1aad1a1b674bda71a89d4ff562d55') {$username = '[MANDATORY!]';}
- if (($password)==='da39a3ee5e6b4b0d3255bfef95601890afd80709'||'b858cb282617fb0956d960215c8e84d1ccf909c6'||'986f2ed15c79ed805000eccd85519810b2db2a93'||'47c1f11ed4d1aad1a1b674bda71a89d4ff562d55') {$password = '[MANDATORY!]';}
- if (($repeatpassword)==='da39a3ee5e6b4b0d3255bfef95601890afd80709'||'b858cb282617fb0956d960215c8e84d1ccf909c6'||'986f2ed15c79ed805000eccd85519810b2db2a93'||'47c1f11ed4d1aad1a1b674bda71a89d4ff562d55') {$repeatpassword = '[MANDATORY!]';}
- $sent_data = "<p><b>Full name:</b> $fullname<br /><b>Username:</b> $username</br><b>Password (SHA1-encrypted):</b> <span id='asterix'>$password</span><br /><b>Repeated password (SHA1-encrypted):</b> <span id='asterix'>$repeatpassword</span></p>";
- if ($submit)
- {
- echo $sent_data;
- }
- ?>
- <html>
- <head>
- <title>Register form</title>
- <script type="text/javascript" src="../../jquery/jquery-1.4.2.js"></script>
- <script type="text/javascript">
- $(document).ready(function(){
- $('.button').click(function(){ return true; });
- });
- </script>
- <style>
- /* The following styles are used only for this page - the actual plugin styles are in slidernav.css */
- * { margin: 0; padding: 0; }
- body { padding: 40px; background: #eee; font-family:'Base 5'; text-shadow: 0.0em 0.0em 0.2em #FFF;}
- a { text-decoration: none; }
- h1, h2, h3 { margin: 0 0 20px; text-shadow: 2px 2px #fff; }
- h2 { font-size: 28px; }
- h3 { font-size: 22px; }
- pre { background: #fff; width: 460px; padding: 10px 20px; border-left: 5px solid #ccc; margin: 0 0 20px; }
- p { width: 500px; font-size: 18px; line-height: 24px; margin: 0 0 30px; }
- input { margin: 0; padding: 0.4em; height: 2.022em; width: 19.2em; font-family: Verdana, Arial; font-size: 12px; line-height: 18px; }
- .button {
- padding: 5px 10px;
- display: inline;
- background: #777 url(img/button_shade.png) repeat-x bottom;
- border: none;
- color: #fff;
- cursor: pointer;
- font-weight: bold;
- border-radius: 5px;
- -moz-border-radius: 5px;
- -webkit-border-radius: 5px;
- text-shadow: 1px 1px #666;
- }
- .button:hover {
- background-position: 0 center;
- }
- .button:active {
- background-position: 0 top;
- position: relative;
- top: 1px;
- padding: 6px 10px 4px;
- }
- .button.red { background-color: #e50000; }
- .button.purple { background-color: #9400bf; }
- .button.green { background-color: #58aa00; }
- .button.orange { background-color: #ff9c00; }
- .button.blue { background-color: #2c6da0; }
- .button.black { background-color: #333; }
- .button.white { background-color: #fff; color: #000; text-shadow: 1px 1px #fff; }
- .button.small { font-size: 75%; padding: 3px 7px; }
- .button.small:active { padding: 4px 7px 2px; background-position: 0 top; }
- .button.large { font-size: 125%; padding: 7px 12px; }
- .button.large:active { padding: 8px 12px 6px; background-position: 0 top; }
- </style>
- <style type="text/css">
- #asterix {color:transparent;}
- .form_status {color: lightgreen; text-shadow: 0.0em 0.0em 0.3em #222, 0.0em 0.0em 0.1em #000;}
- @font-face {font-family: "Base 4"; src: url(../../fonts/base4.ttf);}
- @font-face {font-family: "Base 5"; src: url(../../fonts/base5.ttf);}
- @font-face {font-family: "Base 6"; src: url(../../fonts/base6.ttf);}
- .base4 {font-family: "Base 4"; font-size: 100%;}
- .base5 {font-family: "Base 5"; font-size: 100%; src: url(../../fonts/base5.ttf);}
- .base6 {font-family: "Base 6"; font-size: 100%; src: url(../../fonts/base6.ttf);}
- </style>
- </head>
- <body>
- <p>
- <form name="register_form" action='register.php' method='POST'>
- <table>
- <tr>
- <td>
- Your full name:
- </td>
- <td>
- <input type='text' name='fullname'>
- </td>
- </tr>
- <tr>
- <td>
- Choose a username:
- </td>
- <td>
- <input type='text' name='username'>
- </td>
- </tr>
- <tr>
- <td>
- Choose a password:
- </td>
- <td>
- <input type='password' name='password'>
- </td>
- </tr>
- <tr>
- <td>
- Repeat your password:
- </td>
- <td>
- <input type='password' name='repeatpassword'>
- </td>
- </tr>
- </table>
- <p>
- <input type='submit' name='submit' value='Register' class='base5 button green'>
- </form>
- </p>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement