mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2025-12-07 01:26:11 -08:00
Create build.php
Created build.php file Added new php code to search for build file and if it doesn't find it, it shows the file not found error
This commit is contained in:
8
front/php/templates/build.php
Normal file
8
front/php/templates/build.php
Normal file
@@ -0,0 +1,8 @@
|
||||
<?php
|
||||
$file = "/home/pi/pialert/front/buildtimestamp.txt";
|
||||
if (file_exists($file)) {
|
||||
echo date("Y-m-d", ((int)file_get_contents($file)));
|
||||
} else {
|
||||
echo "File not found";
|
||||
}
|
||||
?>
|
||||
Reference in New Issue
Block a user