Browse Source

show latest member in database in footer line

master
Fabian Kurz 2 years ago
parent
commit
85b3216f41
  1. 6
      functions.php
  2. 2
      index.php

6
functions.php

@ -1153,5 +1153,11 @@ function is_call ($c) {
return $ret;
}
function latest_member() {
global $db;
$q = mysqli_query($db, "select * from cwops_members order by nr desc limit 1");
$member = mysqli_fetch_object($q);
return "$member->callsign (#$member->nr, $member->joined) ";
}
?>

2
index.php

@ -389,7 +389,7 @@ else {
?>
<hr>
<p>Last modified: <? echo date ("Y-m-d", filemtime("index.php")); ?> - <a href="http://fkurz.net/">Fabian Kurz, DJ1YFK</a> <a href="mailto:fabian@fkurz.net">&lt;fabian@fkurz.net&gt;</a>
<p>Last modified: <? echo date ("Y-m-d", filemtime("index.php")); ?> - Newest member in database: <?=latest_member();?> - <a href="http://fkurz.net/">Fabian Kurz, DJ1YFK</a> <a href="mailto:fabian@fkurz.net">&lt;fabian@fkurz.net&gt;</a>
- <a href="/privacy">Impressum / Datenschutz / Privacy Policy</a> - <a href="https://git.fkurz.net/dj1yfk/cwops">Source code repository</a>
</p>

Loading…
Cancel
Save