Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

cvs: livedocs / error.php
iliaa		Fri Jul 30 11:26:40 2004 EDT

Modified files:
/livedocs	error.php
Log:
Explicitly specify index.php, so redirects & links work for setups
where index.php is not a directory index.


http://cvs.php.net/diff.php/livedoc...13&r2=1.14&ty=u
Index: livedocs/error.php
diff -u livedocs/error.php:1.13 livedocs/error.php:1.14
--- livedocs/error.php:1.13	Mon May 24 16:03:22 2004
+++ livedocs/error.php	Fri Jul 30 11:26:40 2004
@@ -18,7 +18,7 @@
// | Handles the 404 error and try to redirect to the good place.         |
// +----------------------------------------------------------------------+
//
-// $Id: error.php,v 1.13 2004/05/24 20:03:22 iliaa Exp $
+// $Id: error.php,v 1.14 2004/07/30 15:26:40 iliaa Exp $

/* handle IIS style 404 handler */
if (strncmp($_SERVER['SERVER_SOFTWARE'], "Microsoft", 9) == 0 &&
@@ -106,7 +106,7 @@
$languages = explode(' ', LANGUAGES);

if (count($languages) == 1) {
-		$link = FORCE_DYNAMIC ? "?l=$languages[0]&q=manual" : "$languages[0]/manu
al.html";
+		$link = FORCE_DYNAMIC ? "index.php?l=$languages[0]&q=manual" : "$language
s[0]/manual.html";
die(header('Location: http://' . $_SERVER['HTTP_HOST'] . WEBBASE . $link));
}

@@ -115,7 +115,7 @@
echo 'Choose a language:';
echo '<ul>';
foreach ($languages as $language) {
-		$link = FORCE_DYNAMIC ? "?l=$language&q=manual" : "$language/manual.h
tml";
+		$link = FORCE_DYNAMIC ? "index.php?l=$language&q=manual" : "$language
/manual.html";
echo '<li><a href="' . WEBBASE . $link . '">' . $langs[$language] . '</a></l
i>';
}
echo '</ul>';

Report this thread to moderator Post Follow-up to this message
Old Post
Ilia Alshanetsky
07-30-04 08:56 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

PHP Documentation archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 04:27 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.