From 70e9b1ed49f7383d024e31a74c16b8bf1ccb8735 Mon Sep 17 00:00:00 2001 From: x2000habouzit Date: Mon, 26 Jan 2004 22:59:05 +0000 Subject: [PATCH] =?utf8?q?modifs=20pour=20supporter=20les=20ss=20r=E9perto?= =?utf8?q?ires=20dans=20les=20url?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- include/auto.prepend.inc.php | 7 ++++++- plugins/insert.mkStats.php | 10 +++++----- templates/skin/default.tpl | 10 +++++----- 3 files changed, 16 insertions(+), 11 deletions(-) diff --git a/include/auto.prepend.inc.php b/include/auto.prepend.inc.php index 4f06703..6592bcc 100644 --- a/include/auto.prepend.inc.php +++ b/include/auto.prepend.inc.php @@ -3,7 +3,7 @@ ini_set('include_path', ".:..:./include:../include/:/home/x2000habouzit/dev/diog require("xorg.common.inc.php"); function _new_page($type, $tpl_name, $tpl_head, $min_auth, $admin=false) { - global $page; + global $page,$globals; require("xorg.page.inc.php"); if(!empty($admin)) { $page = new XorgAdmin($tpl_name, $type); @@ -18,6 +18,11 @@ function _new_page($type, $tpl_name, $tpl_head, $min_auth, $admin=false) { $page = new XorgAuth($tpl_name, $type); } + $page->template_dir = $globals->spoolroot . "/templates/"; + $page->compile_dir = $globals->spoolroot . "/templates_c/"; + $page->plugin_dir = $globals->spoolroot . "/plugins/"; + $page->cache_dir = $globals->spoolroot . "/cache/"; + $page->assign('xorg_head', $tpl_head); $page->assign('xorg_tpl', $tpl_name); diff --git a/plugins/insert.mkStats.php b/plugins/insert.mkStats.php index 1251127..8202c49 100644 --- a/plugins/insert.mkStats.php +++ b/plugins/insert.mkStats.php @@ -25,22 +25,22 @@ function smarty_insert_mkStats($params, &$smarty) $nbtrk = array(nb_trk(5,2), nb_trk(4,2), nb_trk(5,1), nb_trk(4,1)); return << + - + diff --git a/templates/skin/default.tpl b/templates/skin/default.tpl index a4336e3..f68aa6b 100644 --- a/templates/skin/default.tpl +++ b/templates/skin/default.tpl @@ -1,10 +1,10 @@ -{* $Id: default.tpl,v 1.3 2004-01-26 12:36:32 x2000habouzit Exp $ *} +{* $Id: default.tpl,v 1.4 2004-01-26 22:59:05 x2000habouzit Exp $ *} {include file=skin/common.header.tpl} - + {if $xorg_head} {include file=$xorg_head} {/if} @@ -25,7 +25,7 @@
Valid Bugs Todo
$stats_req$stats_req - + {$nbtrk[0]} / {$nbtrk[1]} - + {$nbtrk[2]} / {$nbtrk[3]}
-- 2.1.4
- [ LOGO ] + [ LOGO ] - [ Polytechnique.org ] + [ Polytechnique.org ]
@@ -52,7 +52,7 @@ {insert name="getNbIns"} polytechniciens sur le web
- [LES X SUR LE WEB] + [LES X SUR LE WEB]