PhpDig.net

PhpDig.net (http://www.phpdig.net/forum/index.php)
-   Mod Submissions (http://www.phpdig.net/forum/forumdisplay.php?f=24)
-   -   mod: small improvements for 1.8.7 (http://www.phpdig.net/forum/showthread.php?t=1778)

blueyed 01-27-2005 02:59 AM

mod: small improvements for 1.8.7
 
Display URL with "not found" messages:
replace line 531 in spider.php, which is:
PHP Code:

print $s_no.phpdigMsg('error').' 404'.$br

into
PHP Code:

print $s_no.phpdigMsg('error').' 404 ('.str_replace('@url',$url_indexing,$s_link).')'.$br

Fix.. in line 113 of libs/function_phpdig_form.php I've changed
PHP Code:

$relative_script_path '.'

to
PHP Code:

global $relative_script_path

because otherwise I'll get "Unable to find connect.php file for dropdown menu."


Change request: use a constant/variable for:
  • temp directory (line 464 of admin/spider.php), because this has to be writeable and "/tmp" is probably more appropriate in most cases
  • URI to the phpdig directory. This would be useful for lines 671 & 708 in libs/search_function.php (lines 738 & 775 in search_function.php that I'll post later).


All times are GMT -8. The time now is 05:56 PM.

Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright © 2001 - 2005, ThinkDing LLC. All Rights Reserved.