PHP Login System with Admin Features

This forum was created to talk about the PHP Login System with admin features created by jpmaster77 on evolt's website


    Login Re-direct and Username issues

    Share
    avatar
    Linchpin311

    Number of posts : 220
    Age : 32
    Localisation : Long Island
    Registration date : 2007-05-14

    Re: Login Re-direct and Username issues

    Post  Linchpin311 on Sun Apr 19, 2009 4:42 pm

    alikat wrote:How do I get the login script to redirect to another page?
    the header() function. the only problem with this is you cant just use it anywhere. it must use it before ANYTHING is sent to the browser... so keep this in mind.

    alikat wrote:Also how do I take the lower limit off the size of username during registration?
    Lower limit? what do you mean by this?


    _________________
    in the end, the universe tends to unfold as it should...

    Also note that it is your responsibility to die() if necessary.
    avatar
    Linchpin311

    Number of posts : 220
    Age : 32
    Localisation : Long Island
    Registration date : 2007-05-14

    Re: Login Re-direct and Username issues

    Post  Linchpin311 on Sun Apr 19, 2009 6:18 pm

    ahh, i understand. in session.php under the register function, look for a line that says if(strlen($subuser) < 5){. the number you supply in this statement controls the minimum length of a username. right now it wont allow you to register a username under 5 characters. if you are looking to get rid of this, change the 5 to a 1.

    NOTE: you cant just remove this line cause then the system would let users enter usernames with no characters and its very likely the script would break!!


    _________________
    in the end, the universe tends to unfold as it should...

    Also note that it is your responsibility to die() if necessary.
    avatar
    Linchpin311

    Number of posts : 220
    Age : 32
    Localisation : Long Island
    Registration date : 2007-05-14

    Re: Login Re-direct and Username issues

    Post  Linchpin311 on Sun Apr 19, 2009 6:22 pm

    i'll cross my fingers for ya.


    _________________
    in the end, the universe tends to unfold as it should...

    Also note that it is your responsibility to die() if necessary.

    Sponsored content

    Re: Login Re-direct and Username issues

    Post  Sponsored content


      Current date/time is Sun Oct 22, 2017 4:49 pm