$globals->menu->addPrivateEntry(XOM_CUSTOM, 50, 'Mes préférences', 'prefs');
$globals->menu->addPrivateEntry(XOM_GROUPS, 10, 'Trombi promo', 'trombi');
- $globals->menu->addPrivateEntry(XOM_GROUPS, 20, 'Conseil Pro.', 'referent');
+ $globals->menu->addPrivateEntry(XOM_GROUPS, 20, 'Conseil Pro.', 'referent/search');
if ($globals->geoloc->use_map())
$globals->menu->addPrivateEntry(XOM_GROUPS, 10, 'Planisphère', 'geoloc/');
$globals->menu->addPrivateEntry(XOM_GROUPS, 30, 'Groupes X', 'http://www.polytechnique.net/plan');
$page->assign('op',$op);
$page->assign('target',$target);
-$page->assign('baseurl',$globals->baseurl);
// on a un $target valide, on prepare les mails
if ($target) {
require_once('banana/banana.inc.php');
function hook_formatDisplayHeader($_header, $_text) {
- global $globals, $banana;
+ global $banana;
if ($_header == 'from') {
$id = $banana->post->headers['x-org-id'];
$_text = formatFrom($_text);
- return $_text . ' <a href="' . $globals->baseurl . '/profile/'
- . $id . '" class="popup2" title="' . $id . '">'
- . '<img src="' . $globals->baseurl . '/images/loupe.gif" alt="fiche" title="fiche" />'
- . '</a>';
+ return $_text . ' <a href="profile/' . $id . '" class="popup2" title="' . $id . '">'
+ . '<img src="images/loupe.gif" alt="fiche" title="fiche" /></a>';
}
}
function hook_shortcuts()
{
- global $globals;
- return Array('profile' => Array('<a href="' . $globals->baseurl . '/banana/profile">Préférences</a>',
+ return Array('profile' => array('<a href="banana/profile">Préférences</a>',
'Préférences'));
}
function hook_makeLink($params) {
- global $globals;
- $base = $globals->baseurl . '/banana';
+ $base = 'banana';
if ($params['subscribe'] == 1) {
return $base . '/subscription';
}
function hook_makeImg($img, $alt, $height, $width)
{
- global $globals;
- $url = $globals->baseurl . '/images/banana/' . $img;
+ $url = 'images/banana/' . $img;
if (!is_null($width)) {
$width = ' width="' . $width . '"';
function PlatalBanana()
{
global $globals;
-
+
$uid = S::v('uid');
$req = XDB::query(
"SELECT nom, mail, sig, FIND_IN_SET('threads',flags), FIND_IN_SET('automaj',flags)
// {{{ function getNbNotifs
function getNbNotifs() {
- global $globals;
if (!S::has('uid')) {
return 0;
}
$res = select_notifs(false, $uid, $watchlast, false);
$n = $res->numRows();
$res->free();
- $url = $globals->baseurl."/carnet/panel";
- if($n==0) { return; }
- if($n==1) { return "<a href='$url'>1 évènement !</a>"; }
- return "<a href='$url'>$n évènements !</a>";
+ if ($n == 0) {
+ return;
+ }
+
+ return "<a href='carnet/panel'>$n évènement".($n > 1 ? 's' : '')." !</a>";
}
// }}}
$this->assign('db_trace', $globals->db->trace_format($this, 'database-debug.tpl'));
}
- $this->assign('validate', urlencode($globals->baseurl.'/valid.html'));
+ $this->assign('validate', true);
$result = $this->fetch($skin);
$ttime .= sprintf('Temps total: %.02fs<br />', microtime_float() - $TIME_BEGIN);
$replc = "<span class='erreur'>VALIDATION HTML INACTIVE</span><br />";
$n = $keywords[$count - 2].".".$keywords[$count - 1];
global $globals;
if (($urln = str_replace('.', '/', $n)) != Env::get('n') && $n != Env::get('n'))
- redirect($globals->relurl.'/'.$urln);
+ redirect($globals->baseurl.'/'.$urln);
$_REQUEST['n'] = $n;
return $n;
}
function addPublicEntry($head, $prio, $text, $url)
{
- if (strpos($url, '://') === false) {
- global $globals;
- $url = $globals->baseurl.'/'.$url;
- }
$this->_ext[$head][] = Array($prio, 'text' => $text, 'url' => $url);
}
function addPrivateEntry($head, $prio, $text, $url)
{
- if (strpos($url, '://') === false) {
- global $globals;
- $url = $globals->baseurl.'/'.$url;
- }
$this->_int[$head][] = Array($prio, 'text' => $text, 'url' => $url);
}
$res = S::logged() ? $this->_int : $this->_ext;
if (S::identified()) {
$res[XOM_NO][] = Array(0, 'text' => 'Déconnexion',
- 'url' => $globals->baseurl.'/exit');
+ 'url' => 'exit');
} elseif (Cookie::has('ORGaccess')) {
$res[XOM_NO][] = Array(0, 'text' => 'Déconnexion totale',
- 'url' => $globals->baseurl.'/exit/forget');
+ 'url' => 'exit/forget');
}
if (!S::has_perms()) {
unset($res[XOM_ADMIN]);
// photo
- $photo = $globals->baseurl.'/photo/'.$user['forlife'].($new ? '/req' : '');
+ $photo = 'photo/'.$user['forlife'].($new ? '/req' : '');
if (!isset($user['y']) and !isset($user['x'])) {
list($user['x'], $user['y']) = getimagesize("images/none.png");
function smarty_function_rel()
{
- static $rel;
- if (empty($rel)) {
- global $globals, $platal;
-
- $url = parse_url($globals->baseurl);
- return ($rel = $url['path']);
- }
- return $rel;
+ return '.';
}
?>
<?php if (!defined('PmWiki')) exit();
-$ScriptUrl = $globals->relurl;
+$ScriptUrl = $globals->baseurl;
$UploadUrlFmt = $ScriptUrl."/uploads";
$WorkDir = $globals->wiki->workdir;
$WikiDir = new PageStore('$FarmD/'.$WorkDir.'/$FullName');
$DefaultPasswords['upload'] = 'has_perms: and: identified:';
$EnableGUIButtons = 1;
-$EnableUpload = 1;
+$EnableUpload = 1;
$LinkWikiWords = 0; # disable WikiWord links
$EnableIMSCaching = 1; # allow browser caching
// set profiles to point to plat/al fiche
Markup('[[~platal', '<[[~', '/\[\[~([^|\]]*)\|([^\]]*)\]\]/e',
- 'PreserveText("=", \'<a href="'.$globals->baseurl
- .'/profile/$1" class="popup2">$2</a>\', "")');
+ 'PreserveText("=", \'<a href="profile/$1" class="popup2">$2</a>\', "")');
// prevent restorelinks before block apply (otherwise [[Sécurité]] will give
// .../S<span class='e9curit'>e9'>Sécurité</a>
est ambigu pour des raisons d'homonymie et signalera ton email exact.
L'équipe Polytechnique.org
-{$baseurl}
+{#globals.baseurl#}
</textarea>
</td>
</tr>
<td>
<textarea cols="80" rows="20" name="mailbody">
{$prenom},
-
+
Comme nous t'en avons informé par mail il y a quelques temps,
nous t'avons retiré de façon définitive l'adresse
{$loginbis}@polytechnique.org.
Tu peux faire l'essai toi-même en écrivant à {$loginbis}@polytechnique.org.
L'équipe Polytechnique.org
-{$baseurl}
+{#globals.baseurl#}
</textarea>
</td>
</tr>
<div id="dev">
@HOOK@
Validation:
- <a href="http://jigsaw.w3.org/css-validator/validator?uri={$validate}">CSS</a>
+ <a href="http://jigsaw.w3.org/css-validator/validator?uri={#globals.baseurl#}/valid.html">CSS</a>
|
références :
<a href="http://www.w3schools.com/xhtml/xhtml_reference.asp">XHTML</a>
<!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#}/" />
<link rel="stylesheet" type="text/css" href="{rel}/css/default.css" media="screen" />
{include file=skin/common.header.tpl}
{include file=skin/common.bandeau.head.tpl}
<!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#}/" />
<link rel="stylesheet" type="text/css" href="{rel}/css/default.css" media="screen" />
<link rel="stylesheet" type="text/css" href="{rel}/css/espace.css" media="screen" />
{include file=skin/common.header.tpl}
<!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#}/" />
<link rel="stylesheet" type="text/css" href="{rel}/css/default.css" media="screen" />
<link rel="stylesheet" type="text/css" href="{rel}/css/humlinux.css" media="screen" />
{include file=skin/common.header.tpl}
<!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#}/" />
<link rel="stylesheet" type="text/css" href="{rel}/css/default.css" media="screen" />
<link rel="stylesheet" type="text/css" href="{rel}/css/linux.css" media="screen" />
{include file=skin/common.header.tpl}
<!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#}/" />
<link rel="stylesheet" type="text/css" href="{rel}/css/default.css" media="screen" />
<link rel="stylesheet" type="text/css" href="{rel}/css/liteskin.css" media="screen" />
{include file=skin/common.header.tpl}
<!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#}/" />
<link rel="stylesheet" type="text/css" href="{rel}/css/default.css" media="screen" />
<link rel="stylesheet" type="text/css" href="{rel}/css/nbviolet.css" media="screen" />
{include file=skin/common.header.tpl}
<!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#}/" />
<link rel="stylesheet" type="text/css" href="{rel}/css/default.css" media="screen" />
<link rel="stylesheet" type="text/css" href="{rel}/css/newxorg.css" media="screen" />
{include file=skin/common.header.tpl}
<!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#}/" />
<link rel="stylesheet" type="text/css" href="{rel}/css/default.css" media="screen" />
<link rel="stylesheet" type="text/css" href="{rel}/css/oldtimes.css" media="screen" />
{include file=skin/common.header.tpl}
<!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#}/" />
<link rel="stylesheet" type="text/css" href="{rel}/css/openweb.css" media="screen" />
{include file=skin/common.header.tpl}
{include file=skin/common.bandeau.head.tpl}
<!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#}/" />
<link rel="stylesheet" type="text/css" href="{rel}/css/default.css" media="screen" />
<link rel="stylesheet" type="text/css" href="{rel}/css/sharky.css" media="screen" />
{include file=skin/common.header.tpl}
<!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#}/" />
<link rel="stylesheet" type="text/css" href="{rel}/css/default.css" media="screen" />
<link rel="stylesheet" type="text/css" href="{rel}/css/spectral.css" media="screen" />
{include file=skin/common.header.tpl}
<!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#}/" />
<link rel="stylesheet" type="text/css" href="{rel}/css/default.css" media="screen" />
<link rel="stylesheet" type="text/css" href="{rel}/css/trapped.css" media="screen" />
{include file=skin/common.header.tpl}
<!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#}" />
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<title>Les associations polytechniciennes</title>
<link rel="bookmark" href="http://www.polytechnique.fr/eleves/" title="| Site d'élèves" />
{foreach from=$xorg_css item=css}
- <link rel="stylesheet" type="text/css" href="{rel}/{$css}" />
+ <link rel="stylesheet" type="text/css" href="{rel}/css/{$css}" />
{/foreach}
{foreach from=$xorg_js item=js}
<script type="text/javascript" src="{rel}/{$js}"></script>