[Release] SimpleRegister v1

Results 1 to 11 of 11
  1. #1
    Meh Matt is offline
    MemberRank
    Aug 2006 Join Date
    Ontario, CanadaLocation
    1,745Posts

    [Release] SimpleRegister v1

    This is the newest standalone registration system I have made... it is coded VERY cleanly, and I have used a new program.

    You have permission to edit / re-release these files WITH credit to me.
    --------------------------------------------

    There is no template, you can edit your own, and change it around.

    The config file is located in the root folder, and it is very simple.
    There is no title either, you can edit that very easily..


    Features
    Cleanly coded
    Faster than usual
    Passwords are ******
    Very plain, but you can add your own template
    Index.php is the register, it is all one file.


    Download: SimpleRegister


  2. #2
    Account Upgraded | Title Enabled! MasterofOrder is offline
    MemberRank
    Oct 2006 Join Date
    239Posts

    Re: [Release] SimpleRegister v1

    The link is broken to download the file plus it say's there is no contents in the file...Thought you would like to know.

  3. #3
    Member HSF is offline
    MemberRank
    Jun 2007 Join Date
    I forgot.Location
    69Posts

    Re: [Release] SimpleRegister v1

    Yes, it's quite hard to get to that file. May I suggest you (Or anyone else) uploads it to another host?

    Or, send me the file and I'd just do it.


    Anyway, is it a plain:
    "Username"
    "Password"
    "Password again"

    Registration, or does it includes features such as a e-mail registration? Perhaps a verification system? (Just naming things)

  4. #4
    Meh Matt is offline
    MemberRank
    Aug 2006 Join Date
    Ontario, CanadaLocation
    1,745Posts

    Re: [Release] SimpleRegister v1

    My really old one has verification, this one includes the email field.

  5. #5
    Account Upgraded | Title Enabled! MasterofOrder is offline
    MemberRank
    Oct 2006 Join Date
    239Posts

    Re: [Release] SimpleRegister v1

    Sorry but the link still doesn't work...Oh yea is this for the osirose or acturus files?

  6. #6
    Meh Matt is offline
    MemberRank
    Aug 2006 Join Date
    Ontario, CanadaLocation
    1,745Posts

    Re: [Release] SimpleRegister v1

    Its for osRose, not for irose, I'm working on a iRose version atm..

    Also, what are you guys talking about.. the link works fine, have you tried scrolling down?

    Ill re-upload it with another name then..

  7. #7
    Member HSF is offline
    MemberRank
    Jun 2007 Join Date
    I forgot.Location
    69Posts

    Re: [Release] SimpleRegister v1

    Thanks for the clarification Matt, I'd give it a try ;)

  8. #8
    Meh Matt is offline
    MemberRank
    Aug 2006 Join Date
    Ontario, CanadaLocation
    1,745Posts

    Re: [Release] SimpleRegister v1

    Link updated. Now working.
    If it doesnt, let me know.

  9. #9
    Enthusiast godfather9 is offline
    MemberRank
    Apr 2007 Join Date
    The NetherlandsLocation
    31Posts

    Re: [Release] SimpleRegister v1

    I dont know for who it works', but i tryed differend mirrors and all i get is..

    error 404 page not found???? :censored2

  10. #10
    Member HSF is offline
    MemberRank
    Jun 2007 Join Date
    I forgot.Location
    69Posts

    Re: [Release] SimpleRegister v1

    Link is broken again (for me it is). Thought I'd just let you know.
    I apologize if this in any way may be found necroposting. I do find this an extremly interesting piece of code and I managed to loose the files. So I'd like to get them again.
    May you be so kind to re-upload them?

    Thanks.

  11. #11
    Apprentice chun_li is offline
    MemberRank
    Apr 2007 Join Date
    16Posts

    Re: [Release] SimpleRegister v1

    Downloaded it fine but 1 problem:
    it creates an account with blank fields when the page loads.

    i made a quick fix, but you may want to go over it, did this really fast. works fine for me, but who knows XD


    PHP Code:
    <?php

    // Simple Registration for the RoseOnline private server
    // You may edit these files, and re-release them but please give me credit, matt[at]ragezone.com
    // You may PM me on RaGEZONE for help with this, or make a thread the in the rose section
    // Edit this file VERY carefully
    include ('config.php');


    mysql_connect($db['host'], $db['user'], $db['pass']);
    mysql_select_db($db['name']);

    print 
    "<fieldset><legend>Register</legend><center></form><table>
    <form action=\"index.php\" method=\"post\">
    <tr><td>Username:</td><td><input type=\"text\" name=\"user\"></td></tr>
    <tr><td>Password:</td><td><input type=\"password\" name=\"pass\"></td></tr>
    <tr><td>Repeat Pass:</td><td><input type=\"password\" name=\"passr\"></td></tr>
    <tr><td>Email:</td><td><input type=\"text\" name=\"mail\"></td></tr>
    <tr><td>Age:</td><td><input type=\"text\" name=\"age\"></td></tr>
    <tr><td></td><td><input type=\"submit\" name=\"submit\" value=\"Register\"></td></tr>
    </table></center></form></fieldset>"
    ;

    function 
    protect($string)
    {
        
    $string mysql_real_escape_string($string);
        
    $string strip_tags($string);
        
    $string addslashes($string);

        return 
    $string;
    }

    if (isset(
    $_POST['submit'])) {

        
    // Make sure we protect the database from sql injections =O
        
    $username protect($_POST['user']);
        
    $password md5($_POST['pass']);
        
    $repeat protect($_POST['passr']);
        
    $address protect($_POST['mail']);
        
    $age protect($_POST['age']);

        
    // Define a new error array
        
    $error = array();

        
    // Now check to see if the shiznat is filled in
        
    if (!$_POST['user']) {
            
    $error[] = "Username not filled in!";
        }

        if (!
    $_POST['user']) {
            
    $error[] = "Password not filled in!";
        }

        if (!
    $_POST['passr']) {
            
    $error[] = "Password not filled in!";
        }

        if (!
    $_POST['mail']) {
            
    $error[] = "E-Mail address not filled in!";
        }


        
    // Check to see if the passwords match
        
    if ($_POST['pass'] != $_POST['passr']) {
            
    $error[] = "Sorry, but the passwords you have entered do not match.";
        }

        
    // Check to see if the username is already in use
        
    $query mysql_query("SELECT `username` FROM `accounts` WHERE `username` = '{$username}'");
        
    $get_amount mysql_num_rows($query);
        if (
    $get_amount != '0') {
            die(
    'Username is already in use!');
        }

    // Check for errors, and insert the data
    if (count($error) > 0) {
        foreach (
    $error as $err) {
            echo 
    $err "<br>\n";
        }
    } else {
        
    $makemember mysql_query("INSERT INTO `accounts` (`username`, `password`, `email`) VALUES ('$username', '$password', '$address')");
        if (!
    $makemember) {
            echo 
    'Sorry, we cannot register you for some unknown reason, please try again.';
        } else {
            echo 
    'Congratulations! You are now a member of our server.';
        }
        }
    }
    ?>



Advertisement