08-02-2017, 07:28 PM
simple if statement should do it:
<pre></pre>
replace the 2 with the student perm id.
instead of asking to logout you could do a redirect to logout.php so they will be automatically logged out
<pre>
Code:
if(checkMenu(2,$user->data->id) {
// your student data here
}else{
// everyone else data
}
replace the 2 with the student perm id.
instead of asking to logout you could do a redirect to logout.php so they will be automatically logged out