<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body>
<?php
require_once('./include.php');
?>

<h2>Search</h2>

<?php
$query 
$_POST['query'];
$where $_POST['where'];

if (
$where == "Downloads") {
    
// search in Downloads
    
$path PATH_DL;
} elseif (
$where == "complete site") {
    
// search in main index
    
$path PATH_ALL;
}

$cur_index = new search_index($path);

$cur_index->search($query);






?>
</body>
</html>