File: /home/windevelwb/liste.php
<?php
// Liste des portails
$portals = [
"http://dm700700.org:8080",
"http://dm799799.org:8080",
"http://280360.org:8080",
"http://656656.me:8080",
"http://dob-1.com:8080",
"http://656656.org:8080",
"http://150250.org:8080"
];
// Fonction pour tester un portail
function checkPortal($url) {
$cUrl = rtrim($url, "/") . "/c";
$ch = curl_init($cUrl);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_TIMEOUT, 4);
curl_setopt($ch, CURLOPT_CONNECTTIMEOUT, 4);
$response = curl_exec($ch);
$httpCode = curl_getinfo($ch, CURLINFO_HTTP_CODE);
curl_close($ch);
if ($response === false) {
return "❌ Hors ligne";
}
if ($httpCode == 200) {
return "✅ Stalker actif (/c OK)";
}
return "⚠️ Répond mais pas Stalker (code $httpCode)";
}
?>
<!DOCTYPE html>
<html lang="fr">
<head>
<meta charset="UTF-8">
<title>Liste des portails</title>
<style>
body { font-family: Arial; background:#f2f2f2; padding:20px; }
table { border-collapse: collapse; width: 100%; background:white; }
th, td { padding: 10px; border-bottom: 1px solid #ddd; }
th { background:#333; color:white; }
</style>
</head>
<body>
<h2>Liste des portails IPTV</h2>
<table>
<tr><th>Portail</th><th>Statut</th></tr>
<?php foreach ($portals as $p): ?>
<tr>
<td><?= htmlspecialchars($p) ?></td>
<td><?= checkPortal($p) ?></td>
</tr>
<?php endforeach; ?>
</table>
</body>
</html>