For Programmers: Free Programming Magazines  


Home > Archive > PHP Documentation > August 2006 > cvs: phpdoc /en/features http-auth.xml









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author cvs: phpdoc /en/features http-auth.xml
TAKAGI Masahiro

2006-08-16, 9:57 pm

takagi Wed Aug 16 04:07:22 2006 UTC

Modified files:
/phpdoc/en/features http-auth.xml
Log:
Examples indentation.


http://cvs.php.net/viewvc.cgi/phpdo...7&diff_format=u
Index: phpdoc/en/features/http-auth.xml
diff -u phpdoc/en/features/http-auth.xml:1.46 phpdoc/en/features/http-auth.xml:1.47
--- phpdoc/en/features/http-auth.xml:1.46 Tue Aug 15 16:17:01 2006
+++ phpdoc/en/features/http-auth.xml Wed Aug 16 04:07:22 2006
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
-<!-- $Revision: 1.46 $ -->
+<!-- $Revision: 1.47 $ -->
<chapter id="features.http-auth">
<title>HTTP authentication with PHP</title>

@@ -197,15 +197,14 @@
if (!isset($_SERVER['PHP_AUTH_USER']) ||
($_POST['SeenBefore'] == 1 && $_POST['OldAuth'] == $_SERVER['PHP_AUTH_USER'])) {
authenticate();
-}
-else {
- echo "<p>Welcome: {$_SERVER['PHP_AUTH_USER']}<br />";
- echo "Old: {$_REQUEST['OldAuth']}";
- echo "<form action='{$_SERVER['PHP_SELF']}' METHOD='post'>\n";
- echo "<input type='hidden' name='SeenBefore' value='1' />\n";
- echo "<input type='hidden' name='OldAuth' value='{$_SERVER['PHP_AUTH_USER']}' />\n";
- echo "<input type='submit' value='Re Authenticate' />\n";
- echo "</form></p>\n";
+} else {
+ echo "<p>Welcome: {$_SERVER['PHP_AUTH_USER']}<br />";
+ echo "Old: {$_REQUEST['OldAuth']}";
+ echo "<form action='{$_SERVER['PHP_SELF']}' METHOD='post'>\n";
+ echo "<input type='hidden' name='SeenBefore' value='1' />\n";
+ echo "<input type='hidden' name='OldAuth' value='{$_SERVER['PHP_AUTH_USER']}' />\n";
+ echo "<input type='submit' value='Re Authenticate' />\n";
+ echo "</form></p>\n";
}
?>
]]>
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com