mirror of
https://github.com/libvirt/libvirt.git
synced 2025-02-25 18:55:26 -06:00
Fix old PHP syntax in the search online form
This commit is contained in:
parent
724a297dfb
commit
657cd084a9
@ -18,14 +18,13 @@
|
|||||||
<div id="body">
|
<div id="body">
|
||||||
<div id="content">
|
<div id="content">
|
||||||
<?php
|
<?php
|
||||||
$query = $HTTP_GET_VARS[ "query" ];
|
|
||||||
$scope = $HTTP_GET_VARS[ "scope" ];
|
|
||||||
// We handle only the first argument so far
|
|
||||||
$query = $_GET['query'];
|
$query = $_GET['query'];
|
||||||
|
// We handle only the first argument so far
|
||||||
$query = ltrim ($query);
|
$query = ltrim ($query);
|
||||||
if (! $query) {
|
if (! $query) {
|
||||||
echo "<h1 align='center'>Search the documentation on Libvir.org</h1>";
|
echo "<h1 align='center'>Search the documentation on Libvir.org</h1>";
|
||||||
}
|
}
|
||||||
|
$scope = $_GET['scope"'];
|
||||||
if ($scope == NULL)
|
if ($scope == NULL)
|
||||||
$scope = "any";
|
$scope = "any";
|
||||||
$scope = ltrim ($scope);
|
$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>
|
<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">
|
enctype="application/x-www-form-urlencoded" method="get">
|
||||||
<input name="query" type="text" size="50" value="<?php echo $query?>"/>
|
<input name="query" type="text" size="50" value="<?php echo $query?>"/>
|
||||||
<select name="scope">
|
<select name="scope">
|
||||||
|
Loading…
Reference in New Issue
Block a user