<?php
/***************************************************************************
- * Copyright (C) 2003-2007 Polytechnique.org *
+ * Copyright (C) 2003-2008 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
$returl = "http://{$_SERVER['SERVER_NAME']}".substr($_SERVER['REQUEST_URI'], 0, $i);
else
$returl = "http://{$_SERVER['SERVER_NAME']}{$_SERVER['REQUEST_URI']}";
- $url = "https://www.polytechnique.org/auth-groupex.php";
+ $url = "https://www.polytechnique.org/auth-groupex";
$url .= "?session=" . session_id();
$url .= "&challenge=" . S::v('challenge');
$url .= "&pass=" . md5(S::v('challenge') . $globals->xnet->secret);
}
if (is_member()) {
$perms->addFlag('groupmember');
- if ($globals->asso('pub') == 'public') {
+ if ($globals->asso('pub') != 'private') {
$perms->addFlag('groupannu');
}
}
global $globals, $page;
if (md5('1'.S::v('challenge').$globals->xnet->secret.Get::i('uid').'1') != Get::v('auth')) {
+ Get::kill('auth');
+ if (!$page) {
+ require_once 'xnet.inc.php';
+ new_skinned_page('platal/index.tpl');
+ }
$page->kill("Erreur d'authentification avec polytechnique.org !");
}