forked from alt-magick/Newsgroup-Archiving-Tool
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsearch.php
57 lines (53 loc) · 1.37 KB
/
search.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
<!DOCTYPE HTML>
<html lang="en-US">
<head>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<style>
div {
font-size: 24px;
padding-left: 115px;
}
#panel {
font-size: 14px;
padding-left: 66px;
display: none;
}
</style>
</head>
<body>
<br>
<div>
Alt.Magick<br>
<br>
</div>
<a href="./secrets/"><img src="./files/star.png" style="padding-left:30px;"></img></a><br>
<br>
<div style="padding-left: 45px;">
<br>
<form method="post" action="<?php echo $_SERVER['PHP_SELF'];?>">
Find <input type="text" name="searchbox"><br><div id="panel"><br>This will take a minute...</div><br>
<input type="submit" value="Search" onclick="myFunction()"> or [<a href="index.php">Browse</a>]<br><br>
</form>
</div>
<br>
<div style="padding-left: 30px;">
<?php
if ($_SERVER["REQUEST_METHOD"] == "POST") {
$searched = $_POST["searchbox"];
$s = filter_var($searched, FILTER_SANITIZE_STRING);
$output = shell_exec('/var/www/html/alt-magick.com/search.py "' . $s . '"');
echo $output;
}
?>
</div>
<br>
<p style="padding-left: 110px;">Hosted on <a href="https://www.d-elete.com">D-Elete</a>,<br>
Source at <a href="https://github.com/powercrypt/Newsgroup-Archving-Tool">GitHub</a></p>
<script>
function myFunction() {
document.getElementById("panel").style.display = "block";
}
</script>
</script>
</body>
</html>