Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
Pages: 1
Log hits to non-TxP parts of my site
I made some modifications a long time ago to Photostack pages so that hits to them showed up in my TxP logs. At some point in updating Textpattern and Photostack, I no longer see hits to my photo pages. I’d like to get back to where I was.
Searching this forum hasn’t yielded an answer for me yet. Any pointers?
The first part of my Photostack index.php is shown here. I remember modifying it to include references to Textpattern, required to get the logs to record what I wanted.
<?php // Make sure we display all errors that occur during initialization error_reporting(E_ALL); @ini_set(“display_errors”,“1”);
if (@ini_get(‘register_gobals’)) foreach ( $_REQUEST as $name => $value ) unset($$name); define(“txpinterface”, “public”);
// Use buffering to ensure bogus whitespace in config.php is ignored ob_start(NULL, 2048); $here = dirname(FILE); include ‘../textpattern/config.php’; ob_end_clean();
if (!isset($txpcfg[‘txpath’]) ) { header(‘Status: 503 Service Unavailable’); header(‘HTTP/1.0 503 Service Unavailable’); exit(‘Please check config.php’); }
include $txpcfg[‘txpath’].’/publish.php’;
ob_start(‘parse’);/* include the class */ include(“photostack.php”);
/* load config and instantiate */ load(‘config.php’);
$photostack = new photostack;
/* Start PhotoStack */ $photostack->start(); ?>
Offline
Pages: 1