X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;ds=sidebyside;f=html%2Fhelpviewer.php;h=308500d0aa1da9fe7d56d1980ffc71a401a197a9;hb=af68c0eb4e77ea7e8f783b08fa1396a8fd8463b7;hp=e84e9e595ef87fa47a70161b99f1d8096c42406c;hpb=2d266e02f70cadc9489435639d390e15a593c684;p=gosa.git
diff --git a/html/helpviewer.php b/html/helpviewer.php
index e84e9e595..308500d0a 100644
--- a/html/helpviewer.php
+++ b/html/helpviewer.php
@@ -23,25 +23,11 @@
require_once ("../include/php_setup.inc");
require_once ("functions.inc");
require_once ("functions_helpviewer.inc");
+header("Content-type: text/html; charset=UTF-8");
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 +47,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'];
@@ -77,8 +79,8 @@ $suffix = ".html"; // Suffix of
$maxresults = 10; // max number of results shown in result list
$minwordlength = 3; // Word less than 3 chars will be dropped in search
$allowed_chars_in_searchword = "'[^a-z0-9 %_-]'i"; // Remove all chars that would disturb our search like < or > ...
-$pre_mark = "" ; // Sign words with this
-$suf_mark = ""; // and this
+$pre_mark = "" ; // Sign words with this
+$suf_mark = ""; // and this
$backwardlink = "
";
@@ -87,29 +89,38 @@ $forwardlink = "
";
-$error_collector= "";
-set_error_handler('gosaRaiseError');
-
/* Define which tags musst be delete, header, navigation, banner */
$replacements=array();
$replacements['from']=array("@@si",
- "@