From: Marc Fiuczynski <mef@cs.princeton.edu>
Date: Tue, 2 Jun 2009 13:05:04 +0000 (+0000)
Subject: correct login.php path
X-Git-Tag: PLEWWW-4.3-16~10
X-Git-Url: http://git.onelab.eu/?a=commitdiff_plain;h=a9c21b3a1f275af10b0f6ca1388d35c06ee6f3ba;p=plewww.git

correct login.php path
---

diff --git a/planetlab/includes/plc_login.php b/planetlab/includes/plc_login.php
index db9440a..8b3eb2a 100644
--- a/planetlab/includes/plc_login.php
+++ b/planetlab/includes/plc_login.php
@@ -20,7 +20,7 @@ if (!$plc->person) {
     $url .= "?" . $_SERVER['QUERY_STRING'];
   }
 
-  Header("Location: /db/login.php?url=" . urlencode($url));
+  Header("Location: /db/common/login.php?url=" . urlencode($url));
   exit();
 }
 
diff --git a/planetlab/persons/reset_password.php b/planetlab/persons/reset_password.php
index e8e8351..1a0b5b2 100644
--- a/planetlab/persons/reset_password.php
+++ b/planetlab/persons/reset_password.php
@@ -22,7 +22,7 @@ if (!empty($_REQUEST['id']) && !empty($_REQUEST['key'])) {
   if ($adm->ResetPassword($person_id, $_REQUEST['key']) != 1) {
     print '<div class="messages error">' . $adm->error() . '.</div>';
   } else {
-    drupal_set_html_head("<meta http-equiv=\"refresh\" content=\"5; URL=/db/login.php\"");
+    drupal_set_html_head("<meta http-equiv=\"refresh\" content=\"5; URL=/db/common/login.php\"");
     print '<div class="messages status">';
     print "An e-mail has been sent to you with your new temporary password. ";
     print "Please change this password as soon as possible. ";
@@ -33,7 +33,7 @@ if (!empty($_REQUEST['id']) && !empty($_REQUEST['key'])) {
   if ($adm->ResetPassword($_REQUEST['email']) != 1) {
     print '<div class="messages error">' . $adm->error() . '.</div>';
   } else {
-    drupal_set_html_head("<meta http-equiv=\"refresh\" content=\"5; URL=/db/login.php\"");
+    drupal_set_html_head("<meta http-equiv=\"refresh\" content=\"5; URL=/db/common/login.php\"");
     print '<div class="messages status">';
     print "An e-mail has been sent to " . $_REQUEST['email'] . " with further instructions. ";
     print "You will be re-directed to the login page in 5 seconds.";