View Single Post
  #4 (permalink)  
Old 03-29-2005, 05:44 PM
gabi gabi is offline
Registered User
 
Join Date: Mar 2005
Posts: 11
Post

I see what you have done you have used a case statement, to see what the users group is, from when the user logs in i.e ADMIN = 1.... and you have taken the less than so its actually = to the exact group your looking for.

then not sure about the $redirect ( is $redirect a new variable coz it has not been delared anywhere ) code bit, thats a bit far fetched for me, its selecting the group from the menu, but how does it go to the error.php

Im sorry about this .......

On the log in page this is the code which you provided us with ...

PHP Code:
if ($HTTP_POST_VARS['user'] != ''){

$sentry->checkLogin($HTTP_POST_VARS['user'],$HTTP_POST_VARS['pass'],10,'welcome.php','construction.htm');

}
Do i need to change anything here. Because its still leading to the $goodRedirect and $badRedirect ......

Also the function with the menu that you suggested, do i place that below the checklogin function, reason being that variables have not been stated yet ? Im a bit confused sorry .... ( finally placed it within the checkLogin() function, is that correct, dont look right a function within a function ? )

Last edited by gabi; 03-29-2005 at 07:14 PM.
Reply With Quote