svn: /web/php-master/trunk/include/ login.inc
| From: | Daniel Convissor | Date: | Fri, 10 Jun 2011 18:52:22 +0000 |
| Subject: | svn: /web/php-master/trunk/include/ login.inc | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-11174@lists.php.net to get a copy of this message | ||
danielc Fri, 10 Jun 2011 18:52:22 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=312020
Log:
Login is in root, not master dir.
Changed paths:
U web/php-master/trunk/include/login.inc
Modified: web/php-master/trunk/include/login.inc
===================================================================
--- web/php-master/trunk/include/login.inc 2011-06-10 17:50:31 UTC (rev 312019)
+++ web/php-master/trunk/include/login.inc 2011-06-10 18:52:22 UTC (rev 312020)
@@ -20,7 +20,12 @@
session_destroy();
if (!isset($_SERVER["HTTPS"]) || $_SERVER["HTTPS"] != "on") {
- header("Location: https://master.php.net/manage/" .
basename($_SERVER["SCRIPT_NAME"]));
+ $name = basename($_SERVER["SCRIPT_NAME"]);
+ if ($name = 'login.php') {
+ header("Location: https://master.php.net/" . $name);
+ } else {
+ header("Location: https://master.php.net/manage/" . $name);
+ }
exit;
}
?>