minor fixes for clang++
[senf.git] / doclib / search_functions.php
index 0431d0c..9a05010 100644 (file)
@@ -1,3 +1,4 @@
+<?php include 'search_paths.php'; ?>
 <?php
 
 function search_results()
@@ -313,18 +314,11 @@ function search()
     die("Error: PHP version 4.1.0 or above required!");
   }
 
-  $paths = array(
-       "../doc/html/", 
-    "../Socket/doc/html/",
-    "../Examples/doc/html/",
-    "../Packets/doc/html/",
-    "../Utils/doc/html/",
-    "../Scheduler/doc/html/",
-  );
+  $paths = paths();
   $files = array();
   $j=0;
   for ($i=0; $i<sizeof($paths); $i++) {
-       if (!($f=@fopen($paths[$i]."search.idx","rb"))) 
+    if (!($f=@fopen($paths[$i]."search.idx","rb"))) 
     {
       die("Error: Search index file could NOT be opened!");
       continue;