<?php
/***************************************************************************
- * Copyright (C) 2003-2010 Polytechnique.org *
+ * Copyright (C) 2003-2011 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
{
public function __construct()
{
- parent::__construct('xnet', 'xnetgrp', 'xnetlists', 'xnetevents',
- 'payment', 'bandeau');
+ parent::__construct(
+ 'xnet',
+
+ 'bandeau',
+ 'geoloc',
+ 'payment',
+ 'xnetevents',
+ 'xnetgrp',
+ 'xnetlists',
+ 'xnetnl'
+ );
}
public function hook_map($name)
return $ans;
}
- public function force_login(PlPage &$page)
+ public function force_login(PlPage $page)
{
- http_redirect(S::v('loginX'));
+ $redirect = S::v('loginX');
+ if (!$redirect) {
+ $page->trigError('Impossible de s\'authentifier. Problème de configuration de plat/al.');
+ return;
+ }
+ http_redirect($redirect);
}
}