MMDVM/html/id.php
2022-08-24 08:10:10 +02:00

81 lines
2.4 KiB
PHP
Executable File

<?php
$callsign = (!empty($_GET['id'])) ? $_GET['id'] : 'FRA1OD';
$chemin = 'listing.csv';
$lines = file($chemin);
$id = '';
$nom ='';
$prenom = '';
$ville='';
$departement ='';
$pays='';
foreach ($lines as $line_num => $line)
{
//echo "<br>Ligne #<b>{$line_num}</b> : <b>ICI</b> : ".htmlspecialchars($line)."<br />\n";
$tmp = explode(',',$line);
if ($callsign==$tmp[1]) {
//print_r($tmp);
$id=$tmp[0];
$name=$tmp[2];
$ville=$tmp[3];
$departement =$tmp[4];
$pays=$tmp[7];
}
}
?>
<!doctype html>
<html lang="en">
<head>
<meta name="robots" content="index" />
<meta name="robots" content="follow" />
<meta name="language" content="English" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<?php echo "<meta name=\"generator\" content=\"$progname $rev\" />\n"; ?>
<meta name="Author" content="Hans-J. Barthen (DL5DI), Kim Huebel (DV9VH) and Andy Taylor (MW0MWZ)" />
<meta name="Description" content="Pi-Star Dashboard" />
<meta name="KeyWords" content="MW0MWZ,MMDVMHost,ircDDBGateway,D-Star,ircDDB,Pi-Star,Blackwood,Wales,DL5DI,DG9VH" />
<meta http-equiv="cache-control" content="max-age=0" />
<meta http-equiv="cache-control" content="no-cache, no-store, must-revalidate" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="pragma" content="no-cache" />
<link rel="shortcut icon" href="images/favicon.ico" type="image/x-icon">
<title><?php echo "$MYCALL"." - ".$lang['digital_voice']." ".$lang['dashboard'];?></title>
<?php include_once "config/browserdetect.php"; ?>
<link href="/featherlight.css" type="text/css" rel="stylesheet" />
</head>
<body class="scroll-assist">
<center>
<div id="localTxs"><b>Information sur l'opérateur:</b>
<table border="1">
<tbody><tr>
<th><a class="tooltip" href="#">Indicatif</a></th>
<th><a class="tooltip" href="#">Id Réseau</a></th>
<th><a class="tooltip" href="#">Prénom</a></th>
<th><a class="tooltip" href="#">Ville</a></th>
<th><a class="tooltip" href="#">Département</a></th>
<th><a class="tooltip" href="#">Pays</a></th>
</tr>
<tr>
<td align="left"><?php echo $callsign; ?></td>
<td align="left"><?php echo $id; ?></td>
<td align="left"><?php echo $name; ?></a></td>
<td align="left"><?php echo $ville; ?></td>
<td align="left"><?php echo $departement; ?></td>
<td align="left"><?php echo $pays; ?></td>
</tr>
</tbody></table>
</div>
</center>
</body>
</html>