SEO-Board: Free, Fast and Search Engine Optimization Friendly Forum Script
»User: »Password:   Remember Me? 
Posted:  23 Sep 2006 11:03
When I click on the users IP logged in as Admin I can not access viewip.php

This is the the code that determines this:
Code:

else if(($user_id != 2) && (is_user_moderator(-2, $user_id) == 0))
{
  die($lang['access_denied']);
}


Admin, of course is user id 1 and Support is user id 2. How can I fix it so that both can access viewip.php?

Thanks
Posted:  23 Sep 2006 12:35
That's some bad modification on your part. If you want only user_ids 1 and 2 to have access then put it this way:
Code:

else if(($user_id != 1)&&($user_id != 2))...

__________________
Are you looking for an SEO Consultant?
Email me: hristo at seo-board dot com
Posted:  23 Sep 2006 13:07
ah...thanks

I will try to watch how I modify things next time...lol