Hide Hack Mod Help


Subject: Hide Hack Mod Help
Hi,

I used the instructions in another post on how to modify the hide hack as seen in the code below. How can I add so that if a visitor comes in from a certain referrer such as google, then the hide function allows them to see the hidden message. So in all, in my code, all of those who can see the hidden message are mods, admins, those with 50+ posts, and those that come from a referrer (google).

Thanks

Code:

Code: [Download] [Hide]
  1. if($item['iteration'] > 1)  
  2. {  
  3. return $error;  
  4. }  
  5. global $db, $topic_id, $userdata, $mode;  
  6. $show = false;  
  7. if($userdata['session_logged_in'])  
  8. {  
  9. $sql = "SELECT p.poster_id, p.topic_id  
  10. FROM " . POSTS_TABLE . " p  
  11. WHERE p.topic_id = $topic_id  
  12. AND p.poster_id = " . $userdata['user_id'];  
  13. $resultat = $db->sql_query($sql);  
  14. $show = $db->sql_numrows($resultat) ? true : false;  
  15. if ( ($userdata['user_level'] == ADMIN) || ($userdata['user_level'] == MOD) || ($userdata['user_posts'] > 50))  
  16. {  
  17. $show = true;  

Profile PM  
Subject: Re: Hide Hack Mod Help
You can try something like this:

Code: [Download] [Hide] [Select]
eregi('googlebot', $_SERVER['HTTP_REFERER'])


Page 1 of 1


  
You cannot post new topics
You cannot reply to topics
You cannot edit your posts
You cannot delete your posts
You cannot vote in polls
You cannot attach files
You can download files
You cannot post calendar events

   

This is a "Lo-Fi" version of our main content. To view the full version with more information, formatting and images, please click here.

Powered by Icy Phoenix based on phpBB
Generation Time: 0.9978s (PHP: 2% SQL: 98%)
SQL queries: 10 - Debug Off - GZIP Enabled