Re: copyright link patch
| From: | Vincent Gevers | Date: | Thu, 05 Aug 2004 12:02:36 +0000 |
| Subject: | Re: copyright link patch | ||
| References: | 1 | Groups: | php.doc.web |
| Request: | Send a blank email to doc-web+get-125@lists.php.net to get a copy of this message | ||
Another fix related to this problem...
doc.keliglia.com displayed a nice 404 page at /copyright
I've setup a .htaccess with "ErrorDocument 404 /error.php" and found a small
problem..
patch attached
- Vincent
On Thursday 05 August 2004 13:31, Vincent Gevers wrote:
> Just found this broken link on my local copy.
>
> I've had to remove some configuration parts form the diff:
> -define('PATH_ROOT', '/home/user/doc');
> -define('WEB_ROOT', 'doc.keliglia.com');
> +define('PATH_ROOT', '/home/phpdoc/docweb');
> +define('WEB_ROOT', 'docweb.allowee.no-ip.com');
>
> these setting can be obtained for $_SERVER or put in a config file,
also, this 'for' should be 'from' and the line should end with a ?
must have been asleep
> so that the settings will not be overwritten at every commit
>
> the diff is attached as text/plain, I hope it works :)
>
> - Vincent
>
>
? .htaccess Index: error.php =================================================================== RCS file: /repository/docweb/www/error.php,v retrieving revision 1.1 diff -u -r1.1 error.php --- error.php 4 Aug 2004 17:14:55 -0000 1.1 +++ error.php 5 Aug 2004 11:57:41 -0000 @@ -1,7 +1,7 @@ <?php -include '../../include/lib_general.inc.php'; -include '../../include/lib_revcheck.inc.php'; +include '../include/lib_general.inc.php'; +include '../include/lib_revcheck.inc.php'; if( !isset($_SERVER["REDIRECT_STATUS"]) || $_SERVER["REDIRECT_STATUS"] == 200 ) {
? .htaccess Index: error.php =================================================================== RCS file: /repository/docweb/www/error.php,v retrieving revision 1.1 diff -u -r1.1 error.php --- error.php 4 Aug 2004 17:14:55 -0000 1.1 +++ error.php 5 Aug 2004 11:57:41 -0000 @@ -1,7 +1,7 @@ <?php -include '../../include/lib_general.inc.php'; -include '../../include/lib_revcheck.inc.php'; +include '../include/lib_general.inc.php'; +include '../include/lib_revcheck.inc.php'; if( !isset($_SERVER["REDIRECT_STATUS"]) || $_SERVER["REDIRECT_STATUS"] == 200 ) {