Register for your free account! | Forgot your password?

Go Back   elitepvpers > MMORPGs > Rappelz > Rappelz Private Server
You last visited: Today at 08:57

  • Please register to post and access all features, it's quick, easy and FREE!

Advertisement



Rappelz Private Server Registration Script

Discussion on Rappelz Private Server Registration Script within the Rappelz Private Server forum part of the Rappelz category.

Reply
 
Old   #1
 
Strean's Avatar
 
elite*gold: 141
Join Date: Dec 2009
Posts: 554
Received Thanks: 3,918
Rappelz Private Server Registration Script

Hey all .

I was wondering that i didnt see any register script for the private server...

so here is my script written in php :

PHP Code:
<?php

    $host 
"(local)\\RappelzSQL"// your sql instance
    
$user "sa"// username
    
$pw ""// password
    
$db "Auth"// db
    
$md5_key "2011"// your md5 key
    
    
$connect mssql_connect($host,$user,$pw)
    or die(
"Can't connect to the datebase.");
    
    
mssql_select_db($db,$connect)
    or die(
"Can't select the datebase");

?>

<html>
  <head>
    <title>Register</title>
    <center>
    <h3 style="color:red">Rappelz : Register Page ( Pls insert more then 4 chars ! )</h3> 
    <form action="<?php echo $_SERVER['PHP_SELF']; ?>" method="POST">
      Username : <input type="text" size="20" name="username" /><br />
      Password : <input type="password" size="20" name="password" /><br /><br />
      <input type="submit" value="Register now !" name="senden" />
    </form>
    <?php
    
      $usr 
$_POST['username'];
      
$pass $_POST['password'];
      
$endPw $md5_key $pass;
      
$md5 md5($endPw);
      
      
$results mssql_query("SELECT * FROM dbo.Accounts WHERE '$usr' LIKE login_name");
      
$res mssql_num_rows($results);
      
      if(
strlen($usr) > && strlen($pass) > 4)
      {
          if(
$res 0)
          {
              echo 
"Account Exists !";
          }
          else
          {
              
mssql_query("INSERT INTO dbo.Accounts(login_name,password,block,withdraw_remain_time,age,auth_ok,pcbang,last_login_server_idx,event_code,result) VALUES('$usr','$md5',0,0,18,1,1,1,0,1)");
              echo 
"Registration Success !";
          }
      }
      else
      {
          echo 
"Username or Password to small...";
      }
    
    
?>
    </center>
  </head>
</html>
if you want to start it with XAMPP you have to edit following things :

go in your XAMPP/php folder and open the "php.ini" file

edit following things :

;extension=php_mssql.dll ( remove the ";" before the extension )

its look like so :

extension=php_mssql.dll

and you have to edit this :

;extension=php_pdo_mssql.dll ( the same.. just remove the ";" )

Done.

Regards. Strean
Strean is offline  
Thanks
19 Users
Old 05/20/2011, 22:10   #2
 
Strean's Avatar
 
elite*gold: 141
Join Date: Dec 2009
Posts: 554
Received Thanks: 3,918
Quote:
Originally Posted by RoflcopterGoesSoiSoiSoi View Post
sorry, but lol at your ******* "engrish". you shouldn't work in web development of any kind if you can't use proper english.
oh guy thats the reason why we have some leecher in this forum...

Why you didn't make an useful post ?

and yes im web developer.... but in germany.

I know that my english isn't the best but i just want to help other peolpe.
Strean is offline  
Old 05/20/2011, 23:48   #3
 
Muumiarmor's Avatar
 
elite*gold: 0
Join Date: Jan 2008
Posts: 122
Received Thanks: 24
Quote:
Originally Posted by RoflcopterGoesSoiSoiSoi View Post
sorry, but lol at your ******* "engrish". you shouldn't work in web development of any kind if you can't use proper english.
If your going on about proper English then you should take a look at your own.

Sentence's start with a capital letter.


Don't forget you are on a German forum.
Muumiarmor is offline  
Thanks
1 User
Old 05/20/2011, 23:59   #4
 
elite*gold: 0
Join Date: Mar 2009
Posts: 136
Received Thanks: 155
@RoflcopterGoesSoiSoiSoi

Fail, making fun of someone else when you are worse than they are. You are so smart my friend.
harmbasi is offline  
Old 05/21/2011, 00:00   #5
 
Strean's Avatar
 
elite*gold: 141
Join Date: Dec 2009
Posts: 554
Received Thanks: 3,918
Quote:
Originally Posted by Muumiarmor View Post
If your going on about proper English then you should take a look at your own.

Sentence's start with a capital letter.


Don't forget you are on a German forum.
Thanks, but many people don't understand that english peoples are guests in this forum..

But now its ok we dont want to spam this thread right ; )
Strean is offline  
Old 05/21/2011, 02:37   #6
 
elite*gold: 0
Join Date: Apr 2011
Posts: 122
Received Thanks: 33
Quote:
Originally Posted by RoflcopterGoesSoiSoiSoi View Post
sorry, but lol at your ******* "engrish". you shouldn't work in web development of any kind if you can't use proper english.
F@ke just go to do something u just blalalala talking and don't do anything



just shat up ...


thx man for this Script ...
manlive is offline  
Old 05/21/2011, 11:47   #7
 
RoflcopterGoesSoiSoiSoi's Avatar
 
elite*gold: 0
Join Date: Dec 2010
Posts: 663
Received Thanks: 191
You haven't seen any of the dev work I've done. ^o) I've posted screens, just not released my stuff for fear of "Y IT NO WORK RITE??".
RoflcopterGoesSoiSoiSoi is offline  
Old 05/21/2011, 20:22   #8
 
elite*gold: 1
Join Date: Jun 2010
Posts: 315
Received Thanks: 178
Fatal error: Call to undefined function mssql_connect() in /users/maskulin/www/index.php on line 9

doesnt work...
cranK337 is offline  
Old 05/22/2011, 00:28   #9
 
Strean's Avatar
 
elite*gold: 141
Join Date: Dec 2009
Posts: 554
Received Thanks: 3,918
you have to edit your php.ini .....

read my little guide under the script
Strean is offline  
Thanks
1 User
Old 05/22/2011, 01:32   #10
 
elite*gold: 1
Join Date: Jun 2010
Posts: 315
Received Thanks: 178
Oh, okay, I'll try it. Thanks.
cranK337 is offline  
Old 05/22/2011, 09:36   #11
 
elite*gold: 0
Join Date: May 2011
Posts: 2
Received Thanks: 0
Strean please help,where i can find XAMPP/php folder?
killer1808 is offline  
Old 05/26/2011, 16:44   #12
 
elite*gold: 0
Join Date: Feb 2010
Posts: 4
Received Thanks: 0
crank did you fix your problem, i get the same, Call to undefined function mssql_connect() in test.php on line 9
and i followed every thing, my php folder doesn't have php_mssql.dll so i downloaded that and the others needed, i get nothing but errors about unable to load dynamic dll and you don't have it installed on your computer.
any one can help me, or point me in the dereliction of new servers to use.
read101 is offline  
Old 05/27/2011, 01:52   #13
 
elite*gold: 0
Join Date: Feb 2010
Posts: 4
Received Thanks: 0
i now have all the dlls installed and i get no errors when i start the web-server up but i still get error on line 9
read101 is offline  
Old 05/30/2011, 19:37   #14
 
elite*gold: 0
Join Date: Feb 2010
Posts: 4
Received Thanks: 0
ok i got it working, but i used IIS7.
read101 is offline  
Old 06/20/2011, 22:02   #15
 
elite*gold: 0
Join Date: Dec 2010
Posts: 255
Received Thanks: 14
how do i use this to make a registration page?
piratehat2 is offline  
Reply




All times are GMT +2. The time now is 08:57.


Powered by vBulletin®
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
SEO by vBSEO ©2011, Crawlability, Inc.
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.

Support | Contact Us | FAQ | Advertising | Privacy Policy | Terms of Service | Abuse
Copyright ©2024 elitepvpers All Rights Reserved.