Rename work 🏗

This commit is contained in:
jokob-sk
2024-04-12 19:44:29 +10:00
parent b003df323d
commit 5cb7553ed5
151 changed files with 2070 additions and 1735 deletions

View File

@@ -0,0 +1,30 @@
<?php require 'php/templates/notification.php'; ?>
<script>
var migrationNeeded = <?php
// Check if either file exists
$configFile = '/home/pi/pialert/conf/pialert.conf';
$databaseFile = '/home/pi/pialert/db/pialert.db';
if (file_exists($configFile) || file_exists($databaseFile)) {
echo 'true';
} else {echo 'false'; }
?>
console.log(`migrationNeeded = ${migrationNeeded}`);
if(migrationNeeded == true)
{
message = getString("TICKER_MIGRATE_TO_NETALERTX")
setTimeout(() => {
showTickerAnnouncement(message)
},100);
}
</script>