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