From 05df3fb98d663705508a55aa50a3e8fe1a125e81 Mon Sep 17 00:00:00 2001 From: Daniel Winzen Date: Fri, 16 Oct 2020 17:06:49 +0200 Subject: [PATCH] Replace deprecated html tags with css --- www/admin.php | 4 ++-- www/onions.php | 7 ++++--- 2 files changed, 6 insertions(+), 5 deletions(-) diff --git a/www/admin.php b/www/admin.php index 0bd85ce..e77af27 100644 --- a/www/admin.php +++ b/www/admin.php @@ -1,6 +1,6 @@ PDO::ERRMODE_WARNING, PDO::ATTR_PERSISTENT=>PERSISTENT]); @@ -48,7 +48,7 @@ if(!isSet($_POST['pass']) || $_POST['pass']!==ADMINPASS){ } echo '" required autofocus>

'; } else { - echo ''; + echo '
SelectAddressDescriptionCategoryStatus
'; $stmt=$db->query('SELECT address, description, category, approved, locked FROM ' . PREFIX . "onions WHERE address!='';"); while($onion = $stmt->fetch(PDO::FETCH_ASSOC)){ echo ''; diff --git a/www/onions.php b/www/onions.php index 705e131..bf6f4a4 100644 --- a/www/onions.php +++ b/www/onions.php @@ -44,6 +44,7 @@ function send_html(){ $style .= '.promo{outline:medium solid #FFD700} .list{display: inline-block; padding: 0; margin: 0} .list li{display:inline}'; $style .= '.active{font-weight:bold} .down td+td+td+td+td,.up td+td+td+td+td{background-color:unset} #maintable td{word-break:break-all}'; $style .= '#maintable td+td+td{word-break:unset} #maintable tr td:first-child{min-width:16em} .software-link{text-align:center;font-size:small}'; + $style .= '#maintable ,#maintable th,#maintable td{border: 1px solid black} #edit-search td{vertical-align:top}'; send_headers([$style]); asort($categories); //sql for special categories @@ -80,7 +81,7 @@ function send_html(){ } echo '

I\'m not responsible for any content of websites linked here. 99% of darkweb sites selling anything are scams. Be careful and use your brain. Every week I get 2-5 E-Mails from people that were desperate to make money and fell for scammers, don\'t be one of them!

'; //update onions description form - echo "
SelectAddressDescriptionCategoryStatus
'.$onion['address'].'.onion
"; + echo ""; + echo "
"; echo ""; echo ""; echo "

$I[link]$I[description]$I[lasttested]$I[lastup]$I[timeadded]$I[actions]
"; if($promoted){//print promoted links at the top $time=time(); $promo=$db->prepare('SELECT address, lasttest, lastup, timeadded, description, locked, special FROM ' . PREFIX . "onions WHERE $admin_approval special>? AND address!='' AND id NOT IN (SELECT onion_id FROM " . PREFIX . 'phishing) AND timediff<604800 ORDER BY address;'); @@ -391,7 +392,7 @@ function print_phishing_table(){ if(REQUIRE_APPROVAL){ $admin_approval = 'approved = 1 AND'; } - echo "
$I[link]$I[description]$I[lasttested]$I[lastup]$I[timeadded]$I[actions]
"; + echo "
$I[link]$I[cloneof]$I[lastup]
"; $stmt=$db->query('SELECT address, original, lasttest, lastup FROM ' . PREFIX . 'onions, ' . PREFIX . 'phishing WHERE ' . "$admin_approval " . PREFIX . "onions.id=onion_id AND address!='' AND timediff<604800 ORDER BY address;"); while($link=$stmt->fetch(PDO::FETCH_ASSOC)){ if($link['lastup']===$link['lasttest']){
$I[link]$I[cloneof]$I[lastup]