From 6d860f2d3e5a1d644973e93bc8bd893e3a93e11a Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Mon, 2 Feb 2004 23:04:07 +0000 Subject: [PATCH] Add sidebox link to return to main setup menu --- phpgwapi/inc/class.setup_html.inc.php | 12 ++++++++++-- setup/templates/default/head.tpl | 4 ++++ 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/phpgwapi/inc/class.setup_html.inc.php b/phpgwapi/inc/class.setup_html.inc.php index 0e116ac215..708767b390 100644 --- a/phpgwapi/inc/class.setup_html.inc.php +++ b/phpgwapi/inc/class.setup_html.inc.php @@ -144,9 +144,17 @@ { $GLOBALS['setup_tpl']->set_var('configdomain',' - ' . lang('Domain') . ': ' . $configdomain); } - $GLOBALS['setup_tpl']->set_var('pgw_ver',@$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']); + + if(basename($_SERVER['SCRIPT_FILENAME']) != 'index.php') + { + $index_btn = '' . lang('Setup Main Menu') . ''; + $index_img = 'ball'; + $GLOBALS['setup_tpl']->set_var('pgw_ver',@$GLOBALS['phpgw_info']['server']['versions']['phpgwapi']); + } $GLOBALS['setup_tpl']->set_var(array( - 'logoutbutton' => $btn_logout, + 'logoutbutton' => $btn_logout, + 'indexbutton' => $index_btn, + 'indeximg' => $index_img, 'check_install' => $check_install, 'main_menu' => lang('Setup Main Menu'), 'user_login' => lang('Back to user login') diff --git a/setup/templates/default/head.tpl b/setup/templates/default/head.tpl index 3b4886335b..7487162788 100644 --- a/setup/templates/default/head.tpl +++ b/setup/templates/default/head.tpl @@ -102,6 +102,10 @@ ball{check_install} + + {indeximg}{indexbutton} + + ball{logoutbutton}