PDA

View Full Version : Problem with in.php + out.php


flypaper
25th September 2010, 01:07 PM
Hello,

Im running wordpress 3.0.1 on my server (+ CJOverKill v5.1.1)

In oder to track that traffic you need to include the in.php file to your index file using the following includes depending of your index file. That include must be placed on the first line of your index file. It's recommended to use php index files because they are faster in processing and also the anticheat and filter features work much better with them.

PHP index file (index.php):

<?php include file="in.php" ?>

ist not working!!! When I inlude the in.php in my index.php:
Parse error: syntax error, unexpected '=' in /var/www/web33/html/blog/wp-content/themes/rockwell/index.php on line 4

and out.php isn't too...
I tried this link prefix: http://mywebsite.com/out.php?url=http://www.example.com

Fatal error: Unable to read 17984 bytes in /var/www/web33/html/out.php on line 0

Can anyone help me please?

ICEFIRE
25th September 2010, 09:08 PM
Take a look at this thread for the in.php include fix for wp:

http://bbs.icefire.org/showthread.php?t=250

For the out.php fix, just reupload the CjOverkill files in binary mode. Most probably your ftp client has choosen to upload them in text mode and some of the files got corrupted during the transfer.

Reupload all except the cj-conf.inc.php file.


That will fix you.

flypaper
25th September 2010, 09:33 PM
Thanks for the fast answer. But where to post this code exactly?
I tried it in index.php but it only prints the code on my site...

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

ICEFIRE
26th September 2010, 02:48 AM
It should be on the wordpress index at the very beginning before anything else, just after the <?php

So the wp index.php should look like:

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

Whatever other info there was on the file