From 7c1a0ec59cee795b97482d52ab94d64c8ea4c0fb Mon Sep 17 00:00:00 2001 From: cajus Date: Mon, 13 Jun 2005 07:43:37 +0000 Subject: [PATCH] Moved language definition up... git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@684 594d385d-05f5-0310-b6e9-bd551577e9d8 --- html/helpviewer.php | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/html/helpviewer.php b/html/helpviewer.php index 2badaaef6..d79de3bde 100644 --- a/html/helpviewer.php +++ b/html/helpviewer.php @@ -27,21 +27,6 @@ require_once ("functions_helpviewer.inc"); session_start (); error_reporting(E_ALL); -/* Logged in? Simple security check */ -if (!isset($_SESSION['ui'])){ - gosa_log ("Error: helpviewer.php called without session"); - echo ""._("Help is not available if you are not logged in.").""; - exit; -} - -/* Set template compile directory */ -$config= $_SESSION['config']; -if (isset ($config->data['MAIN']['COMPILE'])){ - $smarty->compile_dir= $config->data['MAIN']['COMPILE']; -} else { - $smarty->compile_dir= '/var/spool/gosa/'; -} - /* Language setup */ if ($config->data['MAIN']['LANG'] == ""){ $lang= get_browser_language(); @@ -61,6 +46,22 @@ bindtextdomain($domain, "$BASE_DIR/locale"); textdomain($domain); @DEBUG (DEBUG_TRACE, __LINE__, __FUNCTION__, __FILE__, $lang, "Setting language to"); + +/* Logged in? Simple security check */ +if (!isset($_SESSION['ui'])){ + gosa_log ("Error: helpviewer.php called without session"); + echo ""._("Help is not available if you are not logged in.").""; + exit; +} + +/* Set template compile directory */ +$config= $_SESSION['config']; +if (isset ($config->data['MAIN']['COMPILE'])){ + $smarty->compile_dir= $config->data['MAIN']['COMPILE']; +} else { + $smarty->compile_dir= '/var/spool/gosa/'; +} + /* Get plugin list */ $plist= $_SESSION['plist']; -- 2.30.2