From 57cf3ba758cadf56e35aa030edf525e61a56cfc6 Mon Sep 17 00:00:00 2001 From: nikrou Date: Sun, 18 Jun 2006 12:04:59 +0000 Subject: Issue 426: first step; separation of admin and public into two templates Need to simplify and delete files not needed git-svn-id: http://piwigo.org/svn/trunk@1363 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/page_header.php | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) (limited to 'include/page_header.php') diff --git a/include/page_header.php b/include/page_header.php index 6a48b4b81..e4833e9c1 100644 --- a/include/page_header.php +++ b/include/page_header.php @@ -28,7 +28,16 @@ // // Start output of page // -$template->set_filenames(array('header'=>'header.tpl')); +if (IN_ADMIN) +{ + $template->set_rootdir(PHPWG_ROOT_PATH.'template/admin/'.$user['template']); + $template->set_filenames(array('header'=>'header.tpl')); +} +else +{ + $template->set_rootdir(PHPWG_ROOT_PATH.'template/public/'.$user['template']); + $template->set_filenames(array('header'=>'header.tpl')); +} $template->assign_vars( array( -- cgit v1.2.3