Sorry to bother you guys but im only new at coding.
I am trying to change the codes to meet my needs.
My problem is that I am wanting different menus for different user rights.
For instance:
boss=1
admin=2
normal_user=3
Therefore
1 will open boss_admin.php
2 will open admin_menu.php
3 will open normal_user_menu.php
my problem is i dont know how eactly to implement this because in the sentry.php the level is set to anyone less than 10 will open either welcome.php or error.php
and in the log in its calling it again i.e
if ($HTTP_POST_VARS['user'] != ''){
$sentry->checkLogin($HTTP_POST_VARS['user'],$HTTP_POST_VARS['pass'],10,'welcome.php','error.php');
}
do i change this to something like
if ($HTTP_POST_VARS['user'] != '' & $group = 1){
$sentry->checkLogin($HTTP_POST_VARS['user'],$HTTP_POST_VARS['pass'],1,'boss_admin.php','error.php');
}
else if ($HTTP_POST_VARS['user'] != '' & $group = 2){
$sentry->checkLogin($HTTP_POST_VARS['user'],$HTTP_POST_VARS['pass'],2,'admin_menu.php','error.php');
}
etc........
do you see what i am trying to do, I am so lost
Many thanks
( my dissertation is proving to be impossible and this is only the start of it.... )