Welcome to the RaGEZONE - MMORPG development forums.

Registration Script for website (Website Add-on)

This is a discussion on Registration Script for website (Website Add-on) within the Releases forums, part of the Alternative Languages category; I decided to release this script, I used to use it on my Maple Story server's website before. You can ...

Page 1 of 2 12 LastLast
Results 1 to 15 of 22
  1. #1
    Member
    Rank
    Member
    Join Date
    Nov 2008
    Posts
    29
    Liked
    1

    Registration Script for website (Website Add-on)

    Click
    I decided to release this script, I used to use it on my Maple Story server's website before. You can edit it, integrate it into your website or whatever. This is for the people who are wanting to create there own website instead of using a CMS. This script has been tested and works 100% for a Maple Story server. It should work for anything.

    Download here!


    Config2.php
    PHP Code:
    <?php
    $host
    ['naam'] = 'localhost';                // my host
    $host['gebruikersnaam'] = 'root';       // my database username
    $host['wachtwoord'] = '';   // my database password
    $host['databasenaam'] = 'odinms';       // my database name

    $db mysql_connect($host['naam'], $host['gebruikersnaam'], $host['wachtwoord']) OR die ('Cant connect to the database');
    mysql_select_db($host['databasenaam'], $db);

    $serverip "127.0.0.1";     //Replace with your WAN IP if public
    $loginport "8484";         //Don't change
    $sql_db "odinms";             //DB Name
    $sql_host "localhost";     //DB Host
    $sql_user "root";              //DB User
    $sql_pass "";                  //DB Password
    $logserv_name "<b>Server</b>: ";         //Status Server Name
    $offline "<s>Offline</s>";  //Displays Offline Status
    $online "<u>Online</u>";    //Displays Online Status
    ?>
    Last edited by TheForce; 30-04-10 at 05:39 PM.

  2. #2
    Why you look?
    Rank
    Member +
    Join Date
    Nov 2007
    Posts
    401
    Liked
    43

    Re: Registration Script for website (Website Add-on)

    no offense, but ANOTHER useless post.

  3. #3
    } else if ( ) {
    Rank
    Member +
    Join Date
    Jun 2008
    Location
    nyc
    Posts
    271
    Liked
    3

    Re: Registration Script for website (Website Add-on)

    Quote Originally Posted by johnnyrocks View Post
    no offense, but ANOTHER useless post.
    Correction*
    It's another useless topic. And another useless post by YOU

    Thanks for your contribution though.

  4. #4
    Account Upgraded | Title Enabled!
    Rank
    Member +
    Join Date
    Oct 2009
    Location
    Under your bed
    Posts
    1,260
    Liked
    287

    Re: Registration Script for website (Website Add-on)

    Quote Originally Posted by ericm1 View Post
    Correction*
    It's another useless topic. And another useless post by YOU

    Thanks for your contribution though.
    Whats Your Point O_o?
    Let's have a toast for the douchebags, Let's have a toast for the assholes, Let's have a toast for the scumbags,
    Every one of them that I know Let's have a toast to the jerkoffs That'll never take work off Baby, I got a plan Run away fast as you can

  5. #5
    Member
    Rank
    Member
    Join Date
    Jun 2008
    Posts
    67
    Liked
    0

    Re: Registration Script for website (Website Add-on)

    You forgot to include "config2.php"

  6. #6
    Why you look?
    Rank
    Member +
    Join Date
    Nov 2007
    Posts
    401
    Liked
    43

    Re: Registration Script for website (Website Add-on)

    Quote Originally Posted by ericm1 View Post
    Correction*
    It's another useless topic. And another useless post by YOU

    Thanks for your contribution though.
    Your Welcome.

  7. #7
    Member
    Rank
    Member
    Join Date
    Nov 2008
    Posts
    29
    Liked
    1

    Re: Registration Script for website (Website Add-on)

    I'll add the config2.php later on this thread. I thought you could make your own, connecting your database.

    Added Config.php script.
    Last edited by TheForce; 30-04-10 at 05:40 PM. Reason: Added to the main post, config2.php

  8. #8
    Account Upgraded | Title Enabled!
    Rank
    Member +
    Join Date
    Jan 2009
    Posts
    233
    Liked
    4

    Re: Registration Script for website (Website Add-on)

    But....what kind of site doesn't have registration to start with???

  9. #9
    Why wait?
    Rank
    Member +
    Join Date
    May 2010
    Posts
    233
    Liked
    21

    Re: Registration Script for website (Website Add-on)

    Quote Originally Posted by johnnyrocks View Post
    Your Welcome.
    His welcome?

    Spoiler:

    You're welcome*

  10. #10
    MentaL rules.
    Rank
    Member +
    Join Date
    Jul 2008
    Posts
    946
    Liked
    38

    Re: Registration Script for website (Website Add-on)

    Quote Originally Posted by DarkX411 View Post
    But....what kind of site doesn't have registration to start with???
    I believe he said its for making your own website from scratch. Not using CMS's.
    Search before posting.

  11. #11
    Infraction Ban&#110;ed
    Rank
    Alpha Member
    Join Date
    Apr 2008
    Posts
    1,720
    Liked
    179
    Gamertag: placeb0 affect

    Re: Registration Script for website (Website Add-on)

    more complex for most of you:

    register.php
    PHP Code:
    <?php
    if($_SESSION[id]){
            echo 
    "<fieldset><legend><b>Error!</b></legend>";
            echo 
    "You are already logged in, therefore you can not register a new account!";
            echo 
    "</fieldset>";
    }else{
        if(!
    $_POST[register]){
            echo 
    "<fieldset><legend><b>Registration</b></legend><br />";
            echo 
    "Fill out all of these fields below in order to create a new account. This account will be used to enter <b>".$server_name."</b>, so you are advised not to share the informations with anyone at all!<br /><br />";
            echo 
    "<form method=\"POST\">";
            echo 
    "<center><table border=\"0\" width=\"300\">";
            echo 
    "<tr><td align=\"right\" width=\"50%\"><b>Username</b></td><td><input class=\"login\" type=\"text\" name=\"username\" maxlength=\"12\"></td></tr>";
            echo 
    "<tr><td align=\"right\" width=\"50%\"><b>Password</b></td><td><input class=\"login\" type=\"password\" name=\"password\" maxlength=\"12\"></td></tr>";
            echo 
    "<tr><td align=\"right\" width=\"50%\"><b>Confirm Password</b></td><td><input type=\"password\" class=\"login\" name=\"cpassword\" maxlength=\"12\"></td></tr>";
            echo 
    "<tr><td align=\"right\" width=\"50%\"><b>E-mail</b></td><td><input class=\"login\" type=\"text\" name=\"email\"></td></tr>";
            echo 
    "<tr><td align=\"right\" width=\"50%\"><b>Birthday</b><br /><i>(YYYY-MM-DD)</i></td><td valign=\"top\"><input class=\"login\" type=\"text\" maxlength=\"10\" name=\"birth\"></td></tr>";
            echo 
    "<tr><td></td><td><input type=\"submit\" value=\"Register\" name=\"register\">";
            echo 
    "</table></center></form>";
            echo 
    "</fieldset>";
        } else {
            if(!(empty(
    $_POST[username])||empty($_POST[password])||empty($_POST[cpassword])||empty($_POST[email])||empty($_POST[birth]))) {
                
    $Main->useClass('Database')->register(implode("_",$_POST));
            } else {
                echo 
    "Doesnt";
            }
        }
    }
    ?>
    some other file LOL
    PHP Code:
    public function register($explode) {
            
    $array explode("_"MySQLi_Real_Escape_String($this->MySQLi,$explode));
            if(
    strlen($array[0]) < || strlen($array[0]) > 12) {
                die(
    "Username must be between 4 and 12 characters!");
            } elseif(
    MySQLi_Num_Rows($this->query("SELECT `name` FROM `accounts` WHERE `name` = '{$array[0]}'")) >= 1) {
                echo 
    "The username already exists. Please select another one!";
            } elseif(
    strlen($array[1]) < || strlen($array[1]) > 12) {
                echo 
    "Password must be between 6 and 12 characters!";
            } elseif(
    $array[1] != $array[2]) {
                echo 
    "The passwords don't match!";
            } else {
                
    #$Insert = $this->query("INSERT INTO `accounts` (`name`,`password`,`birthday`,`email`) VALUES ('{$array[0]}','".sha1($array[1])."','{$array[4]}','{$array[3]}')") or die(mysql_error());
                
    echo "The user has been succesfully added into the database! You can now log into the community and in-game!";
            }
        } 
    dont really care for it because half of you wont know what to do or how it works. plus the form part was just copied over lol
    why did god curse us with the abilities to make search engines but not give us the knowledge on how to use them?

    Fully(?) working v100 GD Character Image Display for MapleStory - Link
    [PHP] Image to HTML - Link

  12. #12
    the fun stops here
    Rank
    Gamma
    Join Date
    Nov 2009
    Posts
    3,032
    Liked
    1171

    Re: Registration Script for website (Website Add-on)

    Umm, how about INSERT INTO `accounts` (name, password, pin) VALUES ($username, $passwordaftersha1, $pin);

    How many times has this actually been released though?
    [SIGPIC][/SIGPIC]
    eat some spectrum

  13. #13
    Infraction Ban&#110;ed
    Rank
    Alpha Member
    Join Date
    Apr 2008
    Posts
    1,720
    Liked
    179
    Gamertag: placeb0 affect

    Re: Registration Script for website (Website Add-on)

    Quote Originally Posted by Rice View Post
    Umm, how about INSERT INTO `accounts` (name, password, pin) VALUES ($username, $passwordaftersha1, $pin);

    How many times has this actually been released though?
    totally works when you use it on a website
    why did god curse us with the abilities to make search engines but not give us the knowledge on how to use them?

    Fully(?) working v100 GD Character Image Display for MapleStory - Link
    [PHP] Image to HTML - Link

  14. #14
    Account Upgraded | Title Enabled!
    Rank
    Member +
    Join Date
    Jul 2008
    Location
    Status 9
    Posts
    205
    Liked
    13

    Re: Registration Script for website (Website Add-on)

    Wow, fuckin leeched & everyone definitely already has this -.- OP Fails hard!
    Quote Originally Posted by Savage View Post
    It's apparent he went to the worst kind of rehab.

    Rehabbo.

  15. #15
    the fun stops here
    Rank
    Gamma
    Join Date
    Nov 2009
    Posts
    3,032
    Liked
    1171

    Re: Registration Script for website (Website Add-on)

    Quote Originally Posted by holthelper View Post
    totally works when you use it on a website
    because variables will just magicly create and define themselves.
    [SIGPIC][/SIGPIC]
    eat some spectrum

 

 
Page 1 of 2 12 LastLast

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •