- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
function AuthorizeUser()
{
global $USER;
if ( ( $USER->IsAuthorized() && $USER->GetID() == $this->GetUserID()) || $USER->IsAdmin())
{
return true;
}
else if ($this->AuthorizeByIP())
{
return true;
}
else if (1==2)
{
return true;
}
return false;
}
фееричнее было бы 1 == 2/2