mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 20:26:58 +00:00
bring support for simplex links now
This commit is contained in:
parent
35b90d927f
commit
6de26c5fa5
6 changed files with 95 additions and 9 deletions
|
@ -69,8 +69,13 @@ if (!preg_match("~^(?:f|ht)tps?://~i", $data[3])) {
|
|||
echo "<td><p>" . ' </p></td>'; // category is already displayed so skip it (empty cell in category column)
|
||||
}
|
||||
|
||||
|
||||
echo '<td class="linktitle"><p class="linktitle">' ; // begin the table cell of link title
|
||||
if($data[4] == "YES"){
|
||||
if(str_contains(strtolower($data[1]),'monero' )){
|
||||
echo '<a class="xmr" href="'; // begin a href
|
||||
}elseif(str_contains(strtolower($data[1]),'simplex' )){
|
||||
echo '<a class="sxc" href="'; // begin a href
|
||||
}elseif($data[4] == "YES"){
|
||||
echo '<a class="sensitivelink" href="'; // begin a href
|
||||
}else{
|
||||
echo '<a href="'; // begin a href
|
||||
|
@ -167,9 +172,17 @@ if (($handle = fopen($csvfile, "r")) !== FALSE) {
|
|||
if ( $c == "1" ){
|
||||
|
||||
if (strtolower($oldcatname) != strtolower($data[1])){
|
||||
if( str_contains(strtolower($data[1]),'monero' )){
|
||||
echo '<a class="xmr" href="index.php?query=' . $data[1] . '">' . $data[1] . '</a> | '; // display the category as its the first row with this new category
|
||||
$oldcatname=$data[1];
|
||||
}elseif( str_contains(strtolower($data[1]),'simplex' )){
|
||||
echo '<a class="sxc" href="index.php?query=' . $data[1] . '">' . $data[1] . '</a> | '; // display the category as its the first row with this new category
|
||||
$oldcatname=$data[1];
|
||||
}else{
|
||||
echo '<a href="index.php?query=' . $data[1] . '">' . $data[1] . '</a> | '; // display the category as its the first row with this new category
|
||||
$oldcatname=$data[1];
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
|
@ -42,7 +42,15 @@
|
|||
}
|
||||
|
||||
.sensitivelink{
|
||||
color: #fc6e02;
|
||||
color: #f43602;
|
||||
}
|
||||
|
||||
.xmr{
|
||||
color: #fcab0a;
|
||||
}
|
||||
|
||||
.sxc{
|
||||
color: #0ab7fc;
|
||||
}
|
||||
|
||||
|
||||
|
@ -229,7 +237,7 @@ h1,h2,h3,p,td{
|
|||
}
|
||||
|
||||
.category{
|
||||
max-width: 80px;
|
||||
max-width: 90px;
|
||||
word-wrap: break-word;
|
||||
}
|
||||
.linktitle{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue