mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 12:16:57 +00:00
display descriptions and color the sensitive websites
This commit is contained in:
parent
56cdb9747b
commit
222d27a2d0
2 changed files with 17 additions and 6 deletions
|
@ -35,10 +35,9 @@ if (($handle = fopen($csvfile, "r")) !== FALSE) {
|
|||
//echo $row;
|
||||
|
||||
if ( $row == "2") {
|
||||
echo "<tr><td>Category</td> <td>Name</td> <td>Score</td> <td></td></tr>";
|
||||
//echo "<tr><td>Category</td> <td>Name</td> <td>Sensitive</td> <td>Score</td> <td></td></tr>"; //OPTIONAL: if you want to display the sensitive column
|
||||
echo "<tr><td>Category</td> <td>Name</td> <td>Description</td> <td>Score</td> <td></td></tr>";
|
||||
}else{
|
||||
if (str_contains(strtolower($data[3]), strtolower($query)) or str_contains(strtolower($data[2]), strtolower($query)) or str_contains(strtolower($data[1]), strtolower($query))) {
|
||||
if (str_contains(strtolower($data[5]), strtolower($query)) or str_contains(strtolower($data[3]), strtolower($query)) or str_contains(strtolower($data[2]), strtolower($query)) or str_contains(strtolower($data[1]), strtolower($query))) {
|
||||
$resultcount++;
|
||||
for ($c=0; $c < $num; $c++) { // iterate over each row
|
||||
echo "<tr>"; // begin html table row for that Category
|
||||
|
@ -68,11 +67,15 @@ if (!preg_match("~^(?:f|ht)tps?://~i", $data[3])) {
|
|||
}
|
||||
|
||||
echo "<td>" ; // begin the table cell
|
||||
echo '<a href="'; // begin a href
|
||||
if($data[4] == "✔️"){
|
||||
echo '<a class="sensitivelink" href="'; // begin a href
|
||||
}else{
|
||||
echo '<a href="'; // begin a href
|
||||
}
|
||||
//echo $data[3] . '"> '; // display the link
|
||||
echo $urllink . '"> '; // display the link
|
||||
echo $data[2] . " </a></td><td>"; // display the link title and close the a href and first cell, open the second cell
|
||||
///echo $data[4] . " </td><td>"; // OPTIONAL: display the sensitive column
|
||||
echo $data[2] . ' </a></td><td class="description">'; // display the link title and close the a href and first cell, open the second cell
|
||||
echo $data[5] . " </td><td>"; // OPTIONAL: display the description column
|
||||
echo $data[7] . " </td><td>"; // display the status and close the second cell, open the third cell
|
||||
echo $data[6] . " </td> \n"; // display the score and close the third cell
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue