|
@@ -24,16 +24,21 @@
|
|
|
>
|
|
|
<br>
|
|
|
<?php
|
|
|
- $type = isset($_REQUEST["type"]) ? (int) $_REQUEST["type"] : 0;
|
|
|
- echo "<button class=\"hide\" name=\"type\" value=\"$type\"/></button>";
|
|
|
+ foreach($_REQUEST as $key=>$value)
|
|
|
+ {
|
|
|
+ if ($key != "q" && $key != "p" && $key != "t")
|
|
|
+ {
|
|
|
+ echo "<input type=\"hidden\" name=\"$key\" value=\"$value\"/>";
|
|
|
+ }
|
|
|
+ }
|
|
|
?>
|
|
|
<button type="submit" class="hide"></button>
|
|
|
<input type="hidden" name="p" value="0">
|
|
|
<div class="sub-search-button-wrapper">
|
|
|
- <button name="type" value="0"><img src="static/images/text_result.png" alt="text result" />General</button>
|
|
|
- <button name="type" value="1"><img src="static/images/image_result.png" alt="image result" />Images</button>
|
|
|
- <button name="type" value="2"><img src="static/images/video_result.png" alt="video result" />Videos</button>
|
|
|
- <button name="type" value="3"><img src="static/images/torrent_result.png" alt="torrent result" />Torrents</button>
|
|
|
+ <button name="t" value="0"><img src="static/images/text_result.png" alt="text result" />General</button>
|
|
|
+ <button name="t" value="1"><img src="static/images/image_result.png" alt="image result" />Images</button>
|
|
|
+ <button name="t" value="2"><img src="static/images/video_result.png" alt="video result" />Videos</button>
|
|
|
+ <button name="t" value="3"><img src="static/images/torrent_result.png" alt="torrent result" />Torrents</button>
|
|
|
</div>
|
|
|
<hr>
|
|
|
</form>
|
|
@@ -42,6 +47,7 @@
|
|
|
$config = require "config.php";
|
|
|
require "misc/tools.php";
|
|
|
|
|
|
+ $type = isset($_REQUEST["t"]) ? (int) $_REQUEST["t"] : 0;
|
|
|
$page = isset($_REQUEST["p"]) ? (int) $_REQUEST["p"] : 0;
|
|
|
|
|
|
$start_time = microtime(true);
|