$globals = new XnetGlobals;
$globals->core = new CoreConfig;
- $globals->root = dirname(dirname(dirname(__FILE__)));
$globals->hook = new XOrgHook();
$globals->hook->config(null);
$this->caching=false;
$this->compile_check=true;
- $this->template_dir = $globals->root . "/templates/";
- $this->compile_dir = $globals->root . "/spool/templates_c/";
- $this->config_dir = $globals->root . "/configs/";
+ $this->template_dir = $globals->spoolroot . "/templates/";
+ $this->compile_dir = $globals->spoolroot . "/spool/templates_c/";
+ $this->config_dir = $globals->spoolroot . "/configs/";
$this->register_outputfilter('mail_format');
$this->register_function('from', 'set_from');
$globals = new XorgGlobals;
$globals->core = new CoreConfig;
- $globals->root = dirname(dirname(dirname(__FILE__)));
$globals->hook = new XOrgHook();
$globals->menu = new XOrgMenu();
{
global $globals;
- foreach (glob($globals->root."/hooks/*.inc.php") as $file) {
+ foreach (glob($globals->spoolroot."/hooks/*.inc.php") as $file) {
require_once("$file");
$this->_mods[] = basename($file, '.inc.php');
}
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN" "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
- <base href="{#globals.baseurl#}" />
+ <base href="{#globals.baseurl#}/" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Les associations polytechniciennes</title>