dnsmasq dhcp.leases v0.1 #661

This commit is contained in:
jokob-sk
2024-05-02 20:57:55 +10:00
parent 5d761e8687
commit 0b6071a272
2 changed files with 30 additions and 6 deletions

View File

@@ -11,11 +11,16 @@
# cvc90 2023 https://github.com/cvc90 GNU GPLv3 #
#---------------------------------------------------------------------------------#
$filename = "/app/.VERSION";
if(file_exists($filename)) {
echo file_get_contents($filename);
$filename = "/app/.VERSION";
if(file_exists($filename)) {
$fileContents = file_get_contents($filename);
if(trim($fileContents) === 'Dev') {
echo date('H:i:s') . " - " . $fileContents;
} else {
echo $fileContents;
}
else{
echo date('Y-m-d H:i:s') . " - N/A";
}
}
else {
echo date('H:i:s') . " - N/A";
}
?>