View Single Post
Old 10-11-2004, 09:48 AM   #7
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
An idea to try...

In robot_functions.php find:
PHP Code:
foreach ($file_content as $num => $line) {
    if (
trim($line)) {
        if (
$content_type == 'HTML' && trim($line) == PHPDIG_EXCLUDE_COMMENT) {
            
$exclude true;
        }
        else if (
trim($line) == PHPDIG_INCLUDE_COMMENT) {
            
$exclude false;
            continue;
        } 
and replace with:
PHP Code:
if ($file && eregi("index.php",$file)) {
    
// tags must be on their own lines
    
$the_exclude_comment "<html>";
    
$the_include_comment "</html>";
}
else {
    
$the_exclude_comment PHPDIG_EXCLUDE_COMMENT;
    
$the_include_comment PHPDIG_INCLUDE_COMMENT;
}

foreach (
$file_content as $num => $line) {
    if (
trim($line)) {
        if (
$content_type == 'HTML' && trim($line) == $the_exclude_comment) {
            
$exclude true;
        }
        else if (
trim($line) == $the_include_comment) {
            
$exclude false;
            continue;
        } 
__________________
Responses are offered on a voluntary if/as time is available basis, no guarantees. Double posting or bumping threads will not get your question answered any faster. No support via PM or email, responses not guaranteed. Thank you for your comprehension.
Charter is offline   Reply With Quote