View Single Post
Old 01-03-2005, 07:31 AM   #4
Charter
Head Mole
 
Charter's Avatar
 
Join Date: May 2003
Posts: 2,539
Here are three more tweaks for PhpDig v.1.8.6. The first is to correct a bug when doing eregi_replace to prevent mismatched types. The second stems from this thread. The third is to remove some hardcoded text.

In limit_upd.php find:
PHP Code:
$site_cron eregi_replace('DAY',$days,$tpl_cron);
$site_cron eregi_replace('URL',$url,$site_cron); 
And replace with:
PHP Code:
$site_cron eregi_replace("DAY","$days",$tpl_cron);
$site_cron eregi_replace("URL","$url",$site_cron); 
In spider.php find:
PHP Code:
if (!phpdigReadRobots($exclude,$temp_path) && !eregi(FORBIDDEN_EXTENSIONS,$temp_file)) {
     
$result_test_http phpdigTestUrl($url_indexing,'date',$cookies);

And replace with:
PHP Code:
if (!phpdigReadRobots($exclude,$temp_path.$temp_file) && !eregi(FORBIDDEN_EXTENSIONS,$temp_path.$temp_file)) {
     
$result_test_http phpdigTestUrl($url_indexing,'date',$cookies);

In stop_spider.php find two instances of:
PHP Code:
echo "Wait... "
And replace both instances with:
PHP Code:
echo phpdigMsg('wait'); 
If you downloaded PhpDig v.1.8.6 after the date of this post, the changes in this post have already been applied to the package.
__________________
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