Signed-off-by: Florent Bruneau <florent.bruneau@polytechnique.org>
require_once 'xdb.php';
-$globals->baseurl = "https://www.polytechnique.org";
// vim:set et sw=4 sts=4 sws=4 foldmethod=marker enc=utf-8:
?>
locale = "fr_FR.UTF-8"
timezone = "Europe/Paris"
secure_domain = ""
+baseurl = "https://www.example.org/"
skin = "default"
register_skin = "register"
$base .= '/' . $params['group'];
} else if (Banana::$protocole->name() == 'NNTP' && $xnet) {
if ($feed) {
- return 'http://www.polytechnique.org/banana' . hook_platalRSS(@$params['group']);
+ return $globals->baseurl . '/banana' . hook_platalRSS(@$params['group']);
}
$base = $globals->baseurl . '/' . $platal->ns . 'forum';
} else if (Banana::$protocole->name() == 'MLArchives') {
$this->session = $sess;
$base = empty($_SERVER['HTTPS']) ? 'http://' : 'https://';
- $this->baseurl = @trim($base.$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF']), '/');
+ if (isset($_SERVER) && isset($_SERVER['SERVER_NAME'])) {
+ $this->baseurl = @trim($base.$_SERVER['SERVER_NAME'].dirname($_SERVER['PHP_SELF']), '/');
+ }
$this->spoolroot = dirname(dirname(__FILE__));
$this->read_config();