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


    userlevel question

    Share
    avatar
    intothefantasy

    Number of posts : 37
    Registration date : 2009-04-11

    userlevel question

    Post  intothefantasy on Fri May 15, 2009 8:25 am

    i wanna print out user level name instead user level's level number...

    is like

    define("ADMIN_NAME", "admin");
    define("ADMIN_LEVEL", 9);

    now i wanna print out admin instead of that 9 number..
    avatar
    intothefantasy

    Number of posts : 37
    Registration date : 2009-04-11

    Re: userlevel question

    Post  intothefantasy on Fri May 15, 2009 1:42 pm

    np i think i get it by using something like this

    Code:
    <?php
                        if ( $session-> isAdmin()){
                          echo ADMIN_NAME;
                          }
                          else if ($session->isTeam()){
                          echo TEAM_NAME;
                          }
                          else if($session->isTeam2()){
                          echo TEAM1_NAME;
                          }
                          ?>

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