fixed the display of webring participants

This commit is contained in:
root 2025-02-01 12:16:18 +01:00
parent 7d6056bf92
commit 0f7c761a92
3 changed files with 11 additions and 8 deletions

View file

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