Quote:
Originally Posted by 662C
I tried changing
PHP Code:
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
if (!($forumperms & GTPCANREADCONTENT)
{
print_no_permission();
}
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
to this
PHP Code:
// == [ ALLOW GROUP TO READ TITLE / NOT CONTENT - GTP BEGIN ]
if (!($forumperms & GTPCANREADCONTENT) OR !preg_match("#(google|slurp@inktomi|yahoo! slurp)#si", $_SERVER['HTTP_USER_AGENT']))
{
print_no_permission();
}
// == [ 00-00-2004 - GTP END ]
// ================================================= \\
after seeing the useragent details in [ this thread] but I noticed that the inktomi spider was still being denied access when it hit showthread.php, any ideas?
Cheers,
Robert
|
it should be "AND" instead of "OR" in the follwing line:
if (!($forumperms & GTPCANREADCONTENT) OR !preg_match("#(google|slurp@inktomi|yahoo! slurp)#si", $_SERVER['HTTP_USER_AGENT']))
am i right?
i changed the line w/o thinking, and promptly shut off access to everybody.