Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <html>
- <head>
- <script type="text/javascript">
- $(function(){
- $(".eventtest").click(function(){
- alert("click through!");
- });
- });
- </script>
- <style>
- body {font-family: Arial,sans-serif;}
- h1 {font-size: 30pt;}
- h2 {font-size: 16pt; margin: 1em 0;}
- h1, h2 {font-family: Helvetica,Arial,sans-serif;}
- dt {
- font-weight: bold;
- margin: 1em 0 0 0;
- }
- dd {
- font-weight: normal;
- margin: 0.2em 0 0.5em 0;
- padding: 0;
- width: 42em;
- }
- p {
- margin: 0.2em 0 0.5em 0;
- width: 42em;
- }
- .eventtest {
- width: 155px;
- height: 75px;
- background: #00f;
- cursor: pointer;
- position: Center;
- top: 20px;
- right: 150px;
- padding: 15px;
- }
- </style>
- </head>
- <body>
- <center>
- <form id="register" action="?do=register" method=post>
- <center>
- </br>
- </br>
- </br>
- <font color='white'>Name - Lower Case</font>
- <br>
- <input class="input_box" type=text name=login><br>
- <font color='white'>Password</font> <br>
- <input class="input_box" type=password name=passwd><br>
- <font color='white'>Repeat Password</font> <br>
- <input class="input_box" type=password name=repasswd><br>
- <font color='white'>E-Mail Address</font> <br>
- <input class="input_box" type=text name=email><br>
- <input class="input_submit" type=submit name=submit value="Register"><br>
- </table>
- </form>
- </body>
- </html>
- <?php
- $ipcheck=$_SERVER['REMOTE_ADDR'];
- error_reporting(0);
- $config = array
- (
- 'host' => '192.168.200.128',
- 'user' => 'timore',
- 'pass' => 'Skipper3lite1989',
- 'name' => 'shengui',
- 'gold' => '10000',
- );
- if (isset($_POST['login']))
- {
- $link = mysql_connect($config['host'], $config['user'], $config['pass']) or die ("Can Not Connect To MySQL");
- mysql_select_db($config['name'], $link) or die ("ERROR ".$DBName." Is not able to be accessed o_O");
- $Login = $_POST['login'];
- $Pass = $_POST['passwd'];
- $Repass = $_POST['repasswd'];
- $Email = $_POST['email'];
- $Login = StrToLower(Trim($Login));
- $Pass = StrToLower(Trim($Pass));
- $Repass = StrToLower(Trim($Repass));
- $Email = Trim($Email);
- if (empty($Login) || empty($Pass) || empty($Repass) || empty($Email))
- {
- echo "Please Don't Leave Blank Field";
- }
- elseif (ereg("[^0-9a-zA-Z_-]", $Login, $Txt))
- {
- echo "Invalid Login Format";
- }
- elseif (ereg("[^0-9a-zA-Z_-]", $Pass, $Txt))
- {
- echo "Invalid Password Format";
- }
- elseif (ereg("[^0-9a-zA-Z_-]", $Repass, $Txt))
- {
- echo "Passwords Do Not Match";
- }
- elseif (StrPos('\'', $Email))
- {
- echo "Invalid E-Mail Format";
- }
- elseif ((StrLen($Login) < 4) or (StrLen($Login) > 10))
- {
- echo "Username must be at least 4 and no more than 10 line length.";
- }
- else
- {
- $Result = MySQL_Query("SELECT name FROM users WHERE name='$Login'") or ("Can't execute query.");
- if (MySQL_Num_Rows($Result))
- {
- echo "<font color='red'>Login</font> <b>".$Login."</b> <font color='red'>Account Already Exists In Database</font>";
- }
- elseif ((StrLen($Pass) < 4) or (StrLen($Pass) > 10))
- {
- echo "The password must be at least 4 and no more than 10 letters long.";
- }
- elseif ((StrLen($Repass) < 4) or (StrLen($Repass) > 10))
- {
- echo "Confirm password must be at least 4 and no more than 10 letters long.";
- }
- elseif ((StrLen($Email) < 4) or (StrLen($Email) > 25))
- {
- echo "Email must be at least 4 and no more than 25 letters long.";
- }
- else
- {
- $Result = MySQL_Query("SELECT name FROM users WHERE name='$Email'") or ("Can't execute query. Select E-Mail");
- if (MySQL_Num_Rows($Result))
- {
- echo "<font color='red'>E-Mail</font> <b>".$Email."</b> <font color='red'>Has already been Registered.</font>";
- }
- elseif ($Pass != $Repass)
- {
- echo "Passwords Do Not Match";
- }
- else
- {
- $Salt = $Login.$Pass;
- $Salt = md5($Salt);
- $Salt = "0x".$Salt;
- MySQL_Query("call adduser('$Login', $Salt, '0', '0', '0', '0', '$Email', '0', '0', '0', '0', '0', '0', '0', '', '', $Salt)") or die ("Can't execute query.");
- $mysqlresult=MySQL_Query("select * from `users` WHERE `name`='$Login'");
- $User_ID=MySQL_result($mysqlresult,0,'ID');
- MySQL_Query("INSERT INTO `gs1_clone` VALUES ('$Login', '$ipcheck', '$Email');") or die ("MYSQL ERROR GS1_CLONE Database Error");
- echo "User: <b>".$Login." ~";
- echo "Pass: <b>".$Pass." ~";
- echo "Email: <b>".$Email." ~";
- echo "<font color='green'>Account <b>".$Login." Success!";
- echo "Encrypted Pass: ".$Login." </br> Keep a Copy!"
- }
- }
- }
- }
- echo $Data;
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement