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


    When you log in..

    Share

    Nate

    Number of posts : 1
    Registration date : 2007-06-05

    When you log in..

    Post  Nate on Tue Jun 05, 2007 5:18 pm

    When you log-in how can i make it so that you redirect to a different page only members can see, ex

    login in from main.php, and it redirects you to game_start.php, how would i do this? (im not good at php at all...so you might have to explain a little more)
    avatar
    Fred-Eric

    Number of posts : 63
    Registration date : 2007-05-13

    Re: When you log in..

    Post  Fred-Eric on Wed Jun 06, 2007 7:59 am

    Nate wrote:When you log-in how can i make it so that you redirect to a different page only members can see, ex

    login in from main.php, and it redirects you to game_start.php, how would i do this? (im not good at php at all...so you might have to explain a little more)

    check process.php file and check for the redirection link when user login.

    arround line: 70
    avatar
    Linchpin311

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

    Re: When you log in..

    Post  Linchpin311 on Fri Jun 08, 2007 12:26 am

    hey, nate..

    if you open process.php in your text editor, look for the function procLogin(). as you may have guessed, this function takes care of the login process. a few lines down you should see:
    Code:
    /* Login successful */
    if($retval){
    header("Location: ".$session->referrer);
    i would change the header() function to:
    Code:
    header("Location: game_start.php")
    as long as game_start.php is in the same directory as process.php this should work fine, if it is in another directory, you may have to change it accordingly. hope this helps!!


    _________________
    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: When you log in..

    Post  Sponsored content


      Current date/time is Mon Nov 20, 2017 9:27 am