From 0c86c2ea637570f446fb109029ebb72a9e78508f Mon Sep 17 00:00:00 2001 From: Florent Bruneau Date: Fri, 12 Dec 2008 09:54:30 +0100 Subject: [PATCH] Fix instantiation of the Platal object in both listes_redirect (listes.p.org) and webredirect (carva.org). Signed-off-by: Florent Bruneau --- htdocs/listes_redirect.php | 5 +++-- htdocs/webredirect.php | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/htdocs/listes_redirect.php b/htdocs/listes_redirect.php index 432ca6f..e92260d 100644 --- a/htdocs/listes_redirect.php +++ b/htdocs/listes_redirect.php @@ -19,7 +19,8 @@ * 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA * ***************************************************************************/ -require_once 'xorg.inc.php'; +require_once dirname(__FILE__).'/../include/xorg.inc.php'; +$platal = new Xorg(); preg_match('!^/(moderate|admin|members|archives)/(.*)_([^_]*)(/.*)?$!', $_SERVER['REQUEST_URI'], $matches); @@ -28,7 +29,7 @@ if ($matches) { $action = $matches[1]; $mbox = $matches[2]; $fqdn = strtolower($matches[3]); - $sup = $matches[4]; + $sup = @$matches[4]; if ($fqdn == 'polytechnique.org') { http_redirect("https://www.polytechnique.org/lists/$action/$mbox$sup"); diff --git a/htdocs/webredirect.php b/htdocs/webredirect.php index 0de8baa..dc7e761 100644 --- a/htdocs/webredirect.php +++ b/htdocs/webredirect.php @@ -21,7 +21,7 @@ require_once 'xorg.inc.php'; -new Platal('core'); +new Xorg('core'); global $globals; list($username, $path) = preg_split('/\//', $_SERVER["REQUEST_URI"], 2, PREG_SPLIT_NO_EMPTY); -- 2.1.4