From 259626014d09f53dd6993724a6b0f38bb8af8b86 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Sun, 5 Aug 2007 13:04:40 +0000 Subject: [PATCH] Default skin can be specified in the configuration file. skin = external/default skin register_skin = skin for registration (ligth version of the default skin) configs/platal.ini | 3 +++ include/globals.inc.php.in | 4 ++++ include/xorg.inc.php | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) git-svn-id: svn+ssh://murphy/home/svn/platal/trunk@1898 839d8a87-29fc-0310-9880-83ba4fa771e5 --- configs/platal.ini | 3 +++ include/globals.inc.php.in | 4 ++++ include/xorg.inc.php | 4 ++-- 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/configs/platal.ini b/configs/platal.ini index d6b1e63..d8237f0 100644 --- a/configs/platal.ini +++ b/configs/platal.ini @@ -3,6 +3,9 @@ locale = "fr_FR.UTF-8" timezone = "Europe/Paris" secure_domain = "" +skin = "default" +register_skin = "register" + [Banana] server = "localhost" port = 119 diff --git a/include/globals.inc.php.in b/include/globals.inc.php.in index 1c2661b..6ad5a3c 100644 --- a/include/globals.inc.php.in +++ b/include/globals.inc.php.in @@ -34,6 +34,10 @@ class PlatalGlobals public $dbpwd = 'x4dat'; public $dbcharset = 'utf8'; + /** default skin */ + public $skin; + public $register_skin; + /** paths */ public $baseurl; public $spoolroot; diff --git a/include/xorg.inc.php b/include/xorg.inc.php index 62bfbe8..f37d2a7 100644 --- a/include/xorg.inc.php +++ b/include/xorg.inc.php @@ -39,9 +39,9 @@ class XorgPage extends PlatalPage global $globals, $platal; $this->assign('globals', $globals); if (isset($platal) && $platal->path == 'register') { - $skin = 'register.tpl'; + $skin = $globals->register_skin . ".tpl"; } else { - $skin = S::v('skin', 'default.tpl'); + $skin = S::v('skin', $globals->skin . ".tpl"); } $this->_run('skin/' . $skin); } -- 2.1.4