//****************************
// IPB 2.1 includes Hack
//****************************
//****************************
//PART 1
//FILE : sources/ipsclass.php
//****************************
//****************************
//FIND
//****************************
$text = preg_replace( "/(<|<)% (MEMBER BAR|BOARD FOOTER|BOARD HEADER|CSS|JAVASCRIPT|TITLE|BOARD|STATS|GENERATOR|COPYRIGHT|NAVIGATION) %(>|>)/i", "<% \\2 %>", $text );
//****************************
//REPLACE WITH
//****************************
$text = preg_replace( "/(<|<)% (INCLUDE|MEMBER BAR|BOARD FOOTER|BOARD HEADER|CSS|JAVASCRIPT|TITLE|BOARD|STATS|GENERATOR|COPYRIGHT|NAVIGATION) %(>|>)/i", "<% \\2 %>", $text );
//****************************
//PART 3
//FILE : sources/classes/class_display.php
//****************************
//****************************
//FIND
//****************************
$this->ipsclass->skin['_wrapper'] = str_replace( "<% CHARSET %>" , $this->ipsclass->vars['gb_char_set'], $this->ipsclass->skin['_wrapper']);
//****************************
//ADD AFTER
//****************************
//-----------------------------------------
// PHP INCLUDES
//-----------------------------------------
$incmatches=array();
while (preg_match("\x3C\% INCLUDE \"(\S*?)\" \%\x3E", $this->ipsclass->skin['_wrapper'], $incmatches) >0)
{
$this->ipsclass->skin['_wrapper'] = str_replace("<".$incmatches[0].">", "<?php include\"" . $incmatches[1] . "\"; ?>", $this->ipsclass->skin['_wrapper']);
$incmatches=array();
}
//****************************
//PART 4
//FILE : sources/classes/class_display.php
//****************************
//****************************
//FIND IN THE do_output Function
//****************************
print $this->ipsclass->skin['_wrapper'];
//****************************
//REPLACE WITH
//****************************
print eval('?>' . $this->ipsclass->skin['_wrapper'] . '<?php ');
//****************************
//SAVE ALL AND UPLOAD
//****************************
//****************************
//FINISHED
//****************************
//****************************
//TO USE
//****************************
<% INCLUDE "http://www.yourdomain.com/test.html" %>
//Works with php, html and txt files
//Enjoy
//Andrew