Page 1 of 1

ctracker error if adding another include to index.php

PostPosted: Thu Mar 22, 2007 4:35 am
Author: Frost
Your phpBB Version: 2.0.
phpBB Type: Integramod 141
MODs: No
Your knowledge: Advanced Knowledge
Board URL: http://www.black-fusion.com/forum/

PHP Version:
MySQL Version:


What was done before the problem appeared?
Added code to display recent topics on index


What was done to try to solve the problem?
removed code



De.scription and Message

This is really for HelterSkelter and Teelk

I'm making a mod work that will allow me to display recent topics right above the forums on the index.

Everything works fine except when I try to do an include in index for the .php file

In index.php I need to add

Code: Select all
include($phpbb_root_path .'recent.'.$phpEx);


Right above..

Code: Select all
$template->pparse('body');


But if I do I get this ctracker error wherever I add the code (if I add at the top of the file, the whole site is blank except for the error message) and (if I add at the bottom, the footer is replaced with said error etc)

Fatal error]function ct_debugger($checkstring, $checkmode)[/code]

Surrounding code is:

Code: Select all
// Tell the self test that this .script was included correctlydefine('protection_unit_one', true);  function ct_debugger($checkstring, $checkmode){   if (CT_DEBUG_MODE === false)   {     return;   }   global $ct_rules, $HTTP_SERVER_VARS, $phpbb_root_path, $unchecked_post_fields;     if (in_array($checkmode, array('POST', 'RAWPOST')))   {     $temp = '&';     foreach($checkstring as $key=>$val)     {       $val = ( is_array($val) ) ? atatwalk($val) ]|&)*)#', '', $checkstring);   }   if (in_array($checkmode, array('RAWGET', 'RAWPOST')))   {     $checkstring = rawurldecode($checkstring);   }


I figure it has something to do with ctracker stopping all unknown include for security reasons, but where would I include this one for ctracker?

Thanks

Edit: Just thought to try include_once instead of include, same error

Edit 2: Just thought to try using php inside the template to include the file..

Tried..

[code]  <?php include('http]

Just resulted in

1) Blocking/Banning Me
2) Blocking/Banning Me
3) Shows the code
4) Does nothing

Running out of ideas <img>