View Single Post
Old 07-10-2004, 01:01 PM   #2
caco3
Green Mole
 
Join Date: Jul 2004
Location: Illnau, Switzerland, Europe
Posts: 9
hello bloodjelly

I have the same problem, and i solved it with adding this code:

PHP Code:
///Modifikation 2004 by George Ruinelli //////////////////////////
if($link['url']=="http://www.domain.ch/") {
  
$pos1=strpos("_".$link['path'],"subdir/");
  
$pos2=strpos("_".$link['file'],"subdir/");
  
//if($pos!=1 AND $pos!=2){ 
  
if($pos1==false AND $pos2==false){ //text nicht gefunden
    
$link['ok'] = 0;
  }

in the file robot_functions.php at the end of the function phpdigDetectDir but before
PHP Code:
if (!$link['ok'] && isset($status)) {
    
$link['status'] = $status['status'];
    
$link['host'] =   $status['host'];
    
$link['path'] =   $status['path'];
    
$link['cookies'] = $status['cookies'];

My code prevents phpdig adding a link who isn't in this subdir to it's list

Last edited by caco3; 07-10-2004 at 01:14 PM.
caco3 is offline   Reply With Quote