Files
QNAP_RoonServer/QPKG/shared/web/modals.php

50 lines
1.9 KiB
PHP
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<?php
include_once("/home/httpd/cgi-bin/qpkg/RoonServer/__include.php");
include_once("/home/httpd/cgi-bin/qpkg/RoonServer/__functions.php");
$section = filter_var($_GET['s'], FILTER_SANITIZE_STRING);
$req = filter_var($_GET['r'], FILTER_SANITIZE_STRING);
if ($section == "log") {
echo nl2br(
'<div class="modal-header">' .
'<h4 id="modal-title" class="modal-title">' . localize("MODAL_LOGFILES_HEADLINE") . '</h4>' .
'<button type="button" class="close" data-dismiss="modal" aria-hidden="true">×</button>' .
'</div>' .
'<div id="modal-body" class="modal-body modal-content">' .
localize("MODAL_LOGFILES_DESCRIPTION1") . '<br><br>' .
localize("MODAL_LOGFILES_DESCRIPTION2") .
'<span id="download-area">' .
'<a class="downloadlogs" href="#" onclick="downloadLogs()">' .
'<div class="fa-4x text-center" style="text-align: center;">' .
'<span class="fa-layers fa-fw">' .
'<i class="fas fa-circle"></i>' .
'<i class="fa-inverse fas fa-ambulance faa-passing animated" data-fa-transform="shrink-6"></i>' .
'</span>' .
'</div>' .
'<div class="text-center">' .
localize("MODAL_LOGFILES_DOWNLOAD_BTN_TEXT") .
'</div>' .
'</a>' .
'</span>' .
'</div>' .
'<div class="modal-footer">' .
'<button type="button" class="btn btn-outline-secondary" data-dismiss="modal">' . localize("BTN_CLOSE") . '</button>');
}
if ($section == "setStorage") {
$currentPath = (!empty($dblocation) ? json_encode($dblocation) : '""');
echo '<script>';
echo 'var currentPath = ' . $currentPath;
echo '</script>';
include("content/setup.php");
}
if ($section == "about") {
include("content/about.php");
}
?>