Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: Using a cgi include for a traffic trading script to count incoming traffic  (Read 3091 times)

0 Members and 1 Guest are viewing this topic.

fusionx

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 13

Hi All,

I searched the forum heavily and tried everything I can find to no avail.

I've installed a traffic trading script that requires the use of a compiled cgi file "in.cgi".  This file basically counts incoming hits, and sets a tracking cookie.

The docs specify one of the following mehtods of inclusion:

Code: [Select]
To track incoming hits, you need to place the following code in your index.shtml file
<!--#include virtual="/cgi-bin/at3/in.cgi" -->
for php mainpages use
<?php virtual ("/cgi-bin/at3/in.cgi"); ?>


Neither one will work. I'm using the custom header mod for plain HTML without issue. However, the ssi isn't executed - of course it won't execute php files...

The php code always gives the "cannot modify headers..." error.

Any ideas on how I can execute this script correctly?

Thank you,

Jeff
« Last Edit: October 24, 2005, 07:48:10 am by GauGau »
Logged

fusionx

  • Coppermine newbie
  • Offline Offline
  • Gender: Male
  • Posts: 13

George_CC fixed this for me - the line of code:

virtual ("/cgi-bin/at3/in.cgi");

went in the theme.php just before the template was evaluated  at the end of the pagerheader function.

It's working great now.
Logged
Pages: [1]   Go Up
 

Page created in 0.017 seconds with 19 queries.