]> xenbits.xensource.com Git - libvirt.git/commitdiff
Fix old PHP syntax in the search online form
authorDaniel Veillard <veillard@redhat.com>
Thu, 13 Jan 2011 06:09:13 +0000 (14:09 +0800)
committerDaniel Veillard <veillard@redhat.com>
Thu, 13 Jan 2011 06:09:13 +0000 (14:09 +0800)
docs/search.php

index bbd652aab689f7257560555d013e925b6c256a2a..71310621314f672c2183dfa74e5592d247f3b19b 100644 (file)
     <div id="body">
       <div id="content">
 <?php
-    $query = $HTTP_GET_VARS[ "query" ];
-    $scope = $HTTP_GET_VARS[ "scope" ];
-    // We handle only the first argument so far
     $query = $_GET['query'];
+    // We handle only the first argument so far
     $query = ltrim ($query);
     if (! $query) {
         echo "<h1 align='center'>Search the documentation on Libvir.org</h1>";
     }
+    $scope = $_GET['scope"'];
     if ($scope == NULL)
         $scope = "any";
     $scope = ltrim ($scope);
@@ -34,7 +33,7 @@
 
 ?>
 <p> The search service indexes the libvirt APIs and documentation as well as the libvir-list@redhat.com mailing-list archives. To use it simply provide a set of keywords:</p>
-<form action="<?php echo "$PHP_SELF", "?query=", rawurlencode($query) ?>"
+<form action="<?php echo "$_SERVER['PHP_SELF']", "?query=", rawurlencode($query) ?>"
       enctype="application/x-www-form-urlencoded" method="get">
   <input name="query" type="text" size="50" value="<?php echo $query?>"/>
   <select name="scope">