mirror of
http://git.nowherejezfoltodf4jiyl6r56jnzintap5vyjlia7fkirfsnfizflqd.onion/nihilist/darknet-lantern.git
synced 2025-05-16 20:26:58 +00:00
fixed the display of webring participants
This commit is contained in:
parent
7d6056bf92
commit
0f7c761a92
3 changed files with 11 additions and 8 deletions
|
@ -39,7 +39,11 @@ $data[0]=preg_replace("/[^a-zA-Z0-9:\/.\ -✔️❌]/", "", $data[0]);
|
|||
if ( $row == "2") {
|
||||
echo "<p>";
|
||||
}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[3]), strtolower($query)) or str_contains(strtolower($data[2]), strtolower($query)) or str_contains(strtolower($data[1]), strtolower($query)) ) {
|
||||
|
||||
// dont display your own instance
|
||||
if ( strtolower($data[1]) != strtolower($_SERVER['SERVER_NAME']) ){
|
||||
|
||||
$resultcount++;
|
||||
for ($c=0; $c < $num; $c++) { // iterate over each row
|
||||
if ($c == "1"){
|
||||
|
@ -50,13 +54,14 @@ if (!preg_match("~^(?:f|ht)tps?://~i", $data[1])) {
|
|||
$webringp = $data[1];
|
||||
}
|
||||
|
||||
echo '<a href="' . $webringp . '"><img src="participants/' . str_replace('http://', '', $data[1]) . '/banner.png"></a>'; // display the category as its the first row with this new category
|
||||
echo '<a href="' . $webringp . '/static.php"><img src="participants/' . str_replace('http://', '', $data[1]) . '/banner.png"></a>'; // display the category as its the first row with this new category
|
||||
$url = '';
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
echo "\n</p>";
|
||||
fclose($handle);
|
||||
}
|
||||
|
@ -65,10 +70,10 @@ if (!preg_match("~^(?:f|ht)tps?://~i", $data[1])) {
|
|||
}
|
||||
|
||||
|
||||
echo '<a href="http://' . $instance . '"><img src="' . $participantpath . 'banner.png"></a>';
|
||||
?>
|
||||
</br>
|
||||
|
||||
<h3>Webring Participants:</h3>
|
||||
<h3>Other Webring Participants:</h3>
|
||||
|
||||
<p>
|
||||
<?php
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue