Code

renamed file, for fucntions helpviewer
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Jun 2005 13:51:48 +0000 (13:51 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Thu, 9 Jun 2005 13:51:48 +0000 (13:51 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@631 594d385d-05f5-0310-b6e9-bd551577e9d8

html/helpviewer.php

index b32c88f00078d97b049c327d5dda1042fc28e66f..68c0c4bd1bd5edd96529bbec0d1736bf491e0cdf 100644 (file)
@@ -24,7 +24,7 @@
 /* Basic setup, remove eventually registered sessions */
 require_once ("../include/php_setup.inc");
 require_once ("../include/functions.inc");
-require_once ("helpviewer_func.inc");
+require_once ("../include/functions_helpviewer.inc");
 session_start ();
 error_reporting(E_ALL);
 /* Logged in? Simple security check */
@@ -197,7 +197,7 @@ if(isset($_POST['search'])){
   $help_contents=readfiles($helpdir,$prefix,$suffix,false,$page);
 
   /* Mark last searched words */
-  if($_GET['mark']){
+  if(isset($_GET['mark'])){
     $marks = ($_SESSION['lastresults']) ; 
     $help_contents = markup_page($help_contents[$page]['content'],$marks[$page]);
     $help_contents=remove_unwanted_tags($help_contents,$replacements);  
@@ -205,7 +205,6 @@ if(isset($_POST['search'])){
     $help_contents=remove_unwanted_tags($help_contents[$page]['content'],$replacements);
   }
 
-
   $smarty->assign("help_contents",$help_contents);
 
   /* Define our own navigation pages */
@@ -218,4 +217,6 @@ if(isset($_POST['search'])){
   $display= $header.$smarty->fetch(get_template_path('help.tpl'));
   echo $display;
 }
+
+// vim:tabstop=2:expandtab:shiftwidth=2:filetype=php:syntax:ruler:
 ?>