[Release] Plain Register with Security code script

Page 1 of 2 12 LastLast
Results 1 to 15 of 20
  1. #1
    Λκαяυz føяeνeя Roamer is offline
    MemberRank
    Jun 2008 Join Date
    215Location
    3,203Posts

    [Release] Plain Register with Security code script

    ALOT of people have been on my ass on MSN for a plain Register script so here it is.

    Where ever you put the register script at you must also create a file named register_do.php and put the 2nd part script in it in order to complete registrations. DONT FORGET TO DOWNLOAD SECURITY SCRIPTS HERE


    Live 24/7 Demo:
    http://rzstory.com/dev/test/register.php
    Security scripts (Must download): http://www.rzstory.com/dev/script.rar

    register.php script
    PHP Code:
    <center>
    /*Created by Roamer of RaGEZoNE */
    <table cellspacing=1 cellpadding=5>
    <
    tr><td class=listtitle colspan=2><center><span class='title2'><b>Temp Registration</b></span></center></td></tr>
    <
    form action="register_do.php" method="POST">
    <
    tr><td class=list align=right>Username:</td><td class=list><input type=text name=name maxlength="12"></td>
    </
    tr>
    <
    tr><td class=list align=right>Password:</td><td class=list><input type=password name=pass maxlength="12"></td>
    </
    tr>
    <
    tr><td class=list align=right>Verify Password:</td><td class=list><input type=password name=vpass maxlength="30"></td></tr>
    <
    tr><td class=list align=right>Email:</td><td class=list><input type=text name=email maxlength="50"></td></tr>
    <
    tr><td class=list align=right>Date of Birth: <br><i>Ex1988-09-23</i></td><td class=list><input type=text name=dob maxlength="15"></td></tr>
    <
    tr><td class=list align=right>Security Image:</td><td class=list><input type=text name=code maxlength="5"><br><img src="security-image.php" alt="Security Image" /></td></tr>
    <
    tr><td class=listtitle align=right colspan=2><center><input type=submit name=submit value='Register' /></td></tr>
    </
    form>
    </
    table>
    </
    center

    register_do.php script

    PHP Code:
    <center>
    /*Created by Roamer of RaGEZoNE */
    session_start();

    /* Store user details */
    $name $_POST['name'];
    $pass sha1($_POST['pass']);
    $email $_POST['email'];
    $dob $_POST['dob'];
    $vpass sha1($_POST['vpass']);
    include(
    'config.php');
    $sel 'SELECT * FROM accounts WHERE name="'.$_POST['name'].'"';
    if(
    $name == ""){
    echo 
    '<center><h1>No username filled in.</center></h1>';
    exit();
    }elseif(
    mysql_num_rows(mysql_query($sel)) >= ){
    echo 
    '
    <center><h1>This username already exists!</h1></center>'
    ;
    exit();
    }elseif(
    $pass == ""){
    echo 
    '<center><h1>No password filled in.</center></h1>';
    exit();
    }elseif(
    $vpass != $pass){
    echo 
    '<center><h1>The passwords did not match.</center></h1>';
    exit();
    }elseif(
    strtoupper($_POST['code']) != $_SESSION['code']) {
    echo 
    '<center><h1>You have entered the wrong code.</center></h1>';
    exit();
    }else{

    $d 'INSERT INTO accounts (name, password, email, birthday) VALUES ("'.$name.'", "'.$pass.'", "'.$email.'", "'.$dob.'")';
    mysql_query($d) OR die (mysql_error());
    echo 
    '<center><h1>Your account has been created, you can now login!</center></h1>';
    }
    ?> 
    config.php script
    PHP Code:
    <?php
    $sql_db 
    "odinms";             //DB Name
    $sql_host "localhost";     //DB Host
    $sql_user "username";              //DB User
    $sql_pass "password";                  //DB Password

    $db mysql_connect($sql_host$sql_user$sql_pass) OR die ('Cant connect to the database');
    mysql_select_db($sql_db$db);
    ?>
    Last edited by Roamer; 10-03-09 at 04:26 AM.


  2. #2
    Account Upgraded | Title Enabled! Sonny Rocks! is offline
    MemberRank
    Sep 2008 Join Date
    In a box!Location
    275Posts

    Re: [Release] Plain Register script

    Thanks luke.

  3. #3
    Λκαяυz føяeνeя Roamer is offline
    MemberRank
    Jun 2008 Join Date
    215Location
    3,203Posts

    Re: [Release] Plain Register with Secuerity code script

    Added security code scripts download.

  4. #4
    Member watupzack is offline
    MemberRank
    Jul 2008 Join Date
    57Posts

    Re: [Release] Plain Register with Security code script

    thanks i need that

  5. #5
    Λκαяυz føяeνeя Roamer is offline
    MemberRank
    Jun 2008 Join Date
    215Location
    3,203Posts

    Re: [Release] Plain Register with Security code script

    Aha np. Just added config.php and a demo, enjoy.

  6. #6
    Infraction Banned Jvlaple is offline
    MemberRank
    Jul 2008 Join Date
    PerthLocation
    291Posts

    Re: [Release] Plain Register with Security code script

    why would anyone need this, the one in KaKa is way better.

  7. #7
    Account Upgraded | Title Enabled! flashlights is offline
    MemberRank
    Jun 2008 Join Date
    307Posts

    Re: [Release] Plain Register with Security code script

    Thanks Roamer, needed this.

  8. #8
    Λκαяυz føяeνeя Roamer is offline
    MemberRank
    Jun 2008 Join Date
    215Location
    3,203Posts

    Re: [Release] Plain Register with Security code script

    Quote Originally Posted by Jvlaple View Post
    why would anyone need this, the one in KaKa is way better.
    Its not a CMS, its the parts of it which people can use if they are creating their own CMS/Website and need the scripts.

  9. #9
    Apprentice Vusys is offline
    MemberRank
    Apr 2008 Join Date
    20Posts

    Re: [Release] Plain Register with Security code script

    It's good practise to use mysql_real_escape_string().

  10. #10
    Infraction Banned viinnh is offline
    MemberRank
    Sep 2008 Join Date
    AustraliaLocation
    1,189Posts

    Re: [Release] Plain Register with Security code script

    nice job

  11. #11
    Member StormCaster is offline
    MemberRank
    Dec 2008 Join Date
    :dLocation
    79Posts

    Re: [Release] Plain Register with Security code script

    Nice release =)

  12. #12
    Account Upgraded | Title Enabled! GMLooney is offline
    MemberRank
    Mar 2008 Join Date
    New YorkLocation
    298Posts

    Re: [Release] Plain Register with Security code script

    Wow, Nice one, I kinda actually needed this =P

  13. #13
    Proficient Member tomer001 is offline
    MemberRank
    Sep 2008 Join Date
    In JEWISH WorldLocation
    150Posts

    Re: [Release] Plain Register with Security code script

    its kinda old and leached from will cms (s0wh4t? cms fork)
    and its old coz u cant make in in 1 file like signup.php and java script register.js
    but its nice that u have made it bcoz in ur reg the registration is alot shorter then in will cms so i like is coz i cant fill sign-up pages if it will take alot of time

  14. #14
    Account Upgraded | Title Enabled! AngelOfLove is offline
    MemberRank
    Nov 2008 Join Date
    HeavenLocation
    719Posts

    Re: [Release] Plain Register with Security code script

    Quote Originally Posted by tomer001 View Post
    its kinda old and leached from will cms (s0wh4t? cms fork)
    and its old coz u cant make in in 1 file like signup.php and java script register.js
    but its nice that u have made it bcoz in ur reg the registration is alot shorter then in will cms so i like is coz i cant fill sign-up pages if it will take alot of time
    LOL did u even read the date from the topic? O_O

  15. #15
    Xephizion Development Ehab is offline
    MemberRank
    Apr 2008 Join Date
    Somewhere I BelLocation
    1,935Posts

    Re: [Release] Plain Register with Security code script

    it's too old and everything, but it's good



Page 1 of 2 12 LastLast

Advertisement