From 222d27a2d04f4caa4155441288db000e826e7519 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 7 Feb 2025 08:48:05 +0100 Subject: [PATCH] display descriptions and color the sensitive websites --- www/header.php | 15 +++++++++------ www/style.css | 8 ++++++++ 2 files changed, 17 insertions(+), 6 deletions(-) diff --git a/www/header.php b/www/header.php index 4f0c28b..5188615 100644 --- a/www/header.php +++ b/www/header.php @@ -35,10 +35,9 @@ if (($handle = fopen($csvfile, "r")) !== FALSE) { //echo $row; if ( $row == "2") { - echo "Category Name Score "; - //echo "Category Name Sensitive Score "; //OPTIONAL: if you want to display the sensitive column + echo "Category Name Description Score "; }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 ""; // begin html table row for that Category @@ -68,11 +67,15 @@ if (!preg_match("~^(?:f|ht)tps?://~i", $data[3])) { } echo "" ; // begin the table cell - echo ' '; // display the link echo $urllink . '"> '; // display the link - echo $data[2] . " "; // display the link title and close the a href and first cell, open the second cell - ///echo $data[4] . " "; // OPTIONAL: display the sensitive column + echo $data[2] . ' '; // display the link title and close the a href and first cell, open the second cell + echo $data[5] . " "; // OPTIONAL: display the description column echo $data[7] . " "; // display the status and close the second cell, open the third cell echo $data[6] . " \n"; // display the score and close the third cell } diff --git a/www/style.css b/www/style.css index ab8af45..496f3fa 100644 --- a/www/style.css +++ b/www/style.css @@ -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;