mirror of
https://github.com/jokob-sk/NetAlertX.git
synced 2026-06-20 22:30:11 -04:00
- Created skeleton templates for events, notifications, plugins, presence, report, settings, and workflows to enhance loading states. - Implemented structured skeletons for tab details, tab events, maintenance backup, database tools, logging, multi-edit, presence, sessions, and system info. - Each template includes shimmer effects for loading indicators, improving user experience during data fetching.
35 lines
712 B
PHP
Executable File
35 lines
712 B
PHP
Executable File
<?php
|
|
//------------------------------------------------------------------------------
|
|
// check if authenticated
|
|
require_once $_SERVER['DOCUMENT_ROOT'] . '/php/templates/security.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>
|
|
|