Jump to content

Promote a user (Membership System)


bilis_money

Recommended Posts

I use a 'user_level' to do things like that. Set the session/cookie variables to store user_level along with all the other stuff you need to pass along. the code would look something like this assuming you use sql you can just add another column to your user table that would set user level.

 

user_level1 = admin

user_level2 = helper

user_level3 = user

 

<?php

if($user_level == 1) {
            //This would be the top admin area
           include"admin.php";
}

if($user_level == 2) {
          //This could be a helper type area
         include"helper.php";
}

if($user_level == 3) {
         //This would be a regular user area
        include"user.php";
}
?>

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.