mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 20:26:58 +00:00
added optional sensitive search
This commit is contained in:
parent
bdde1d4f44
commit
99e101f9cf
2 changed files with 20 additions and 9 deletions
|
@ -14,19 +14,24 @@
|
|||
|
||||
<?php
|
||||
require("header.php");
|
||||
$sensitive=0;
|
||||
?>
|
||||
|
||||
<form action="index.php" method="GET">
|
||||
<input type="text" name="query" />
|
||||
<input type="submit" value="Search" />
|
||||
<input type="checkbox" name="sensitive" value="1"></br>
|
||||
<input type="submit" value="Search" /> </br>
|
||||
<p>Sensitive Search: <input type="checkbox" name="sensitive" value="1"></p></br>
|
||||
</form>
|
||||
|
||||
|
||||
<?php
|
||||
$sensitive = $_GET['sensitive']
|
||||
echo "sensitive= " . $sensitive;
|
||||
$sensitive = $_GET['sensitive'];
|
||||
if ($sensitive == 1){
|
||||
//echo "<p>Sensitive ON " . $sensitive . "</p>";
|
||||
$sensitive=1;
|
||||
}else{
|
||||
$sensitive=0;
|
||||
//echo "<p>Sensitive OFF " . $sensitive . "</p>";
|
||||
}
|
||||
$query = $_GET['query'];
|
||||
// gets value sent over search form
|
||||
|
||||
|
@ -51,10 +56,10 @@ $sensitive=0;
|
|||
//echo $unverifiedcsvpath;
|
||||
echo "<h3><u>Verified Links:</u></h3>";
|
||||
echo nl2br("\n");
|
||||
DisplayCSVNEW($verifiedcsvpath,$query);
|
||||
DisplayCSVNEW($verifiedcsvpath,$query,$sensitive);
|
||||
echo "</br></br></br><h3><u>Unverified Links:</u></h3>";
|
||||
echo nl2br("\n");
|
||||
DisplayCSVNEW($unverifiedcsvpath,$query);
|
||||
DisplayCSVNEW($unverifiedcsvpath,$query,$sensitive);
|
||||
// display the results of verified.csv
|
||||
// only display the results of verified.csv that matches with the search term
|
||||
// display the results of unverified.csv
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue