display descriptions and color the sensitive websites

This commit is contained in:
root 2025-02-07 08:48:05 +01:00
parent 56cdb9747b
commit 222d27a2d0
2 changed files with 17 additions and 6 deletions

View file

@ -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
}

View file

@ -26,6 +26,10 @@
background-color: #100b16;
}
.sensitivelink{
color: #fc6e02;
}
.imgRz{
width: 100%;
height: 50%;
@ -198,9 +202,13 @@ body{
h1,h2,h3,p,td{
color: #ffffff;
/*max-width: 500px;*/
/*padding-bottom: 10px;*/
}
.description{
max-width: 500px;
}
h3,h2{
padding-top: 15px;