mirror of
https://github.com/Ahwxorg/librey/
synced 2024-12-06 19:16:48 +01:00
added "my ip", "my user agent" special queries, settings set via parameters now persist, changed "type" to "t" for consistency
This commit is contained in:
+8
-1
@@ -141,9 +141,16 @@
|
||||
function print_next_page_button($text, $page, $query, $type)
|
||||
{
|
||||
echo "<form class=\"page\" action=\"search.php\" target=\"_top\" method=\"get\" autocomplete=\"off\">";
|
||||
foreach($_REQUEST as $key=>$value)
|
||||
{
|
||||
if ($key != "q" && $key != "p" && $key != "t")
|
||||
{
|
||||
echo "<input type=\"hidden\" name=\"$key\" value=\"$value\"/>";
|
||||
}
|
||||
}
|
||||
echo "<input type=\"hidden\" name=\"p\" value=\"" . $page . "\" />";
|
||||
echo "<input type=\"hidden\" name=\"q\" value=\"$query\" />";
|
||||
echo "<input type=\"hidden\" name=\"type\" value=\"$type\" />";
|
||||
echo "<input type=\"hidden\" name=\"t\" value=\"$type\" />";
|
||||
echo "<button type=\"submit\">$text</button>";
|
||||
echo "</form>";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user