ICEFIRE Webmaster Board  

Go Back   ICEFIRE Webmaster Board > CjOverkill Support Forum > CjOverkill General Discussion and Support

CjOverkill General Discussion and Support CjOverkill general discussion and support.

Reply
 
Thread Tools Display Modes
  #1  
Old 4th August 2011, 05:58 PM
tommon tommon is offline
Junior Member
 
Join Date: Nov 2010
Posts: 2
Default multiple pages on the same site

Hi,

I'm working on a site, but this one has more pages. (niche tgp)

my question is: Are the in.php code's on the sub pages such as index.php or is this a different code.

THx
Reply With Quote
  #2  
Old 5th August 2011, 07:13 PM
ICEFIRE ICEFIRE is offline
Administrator
 
Join Date: Sep 2008
Location: Galaxy Media
Posts: 503
Send a message via ICQ to ICEFIRE
Default

You should use this include code on multipage sites:

PHP Code:
$cookietime=300;
$referer=$_SERVER["HTTP_REFERER"];
if(
$_COOKIE["overkill_in"]<time()-$cookietime){
  
setcookie("overkill_in"time(), time()+($cookietime*1));
  include (
"in.php");

It will just work as the usual include, but will skip including in.php when jumping from one page to another relatively fast. This also prevents lots of false positives when detecting bots on such kind of sites.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +2. The time now is 06:16 AM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2018, Jelsoft Enterprises Ltd.