awdeawe
This commit is contained in:
@@ -2,6 +2,7 @@
|
||||
$assetVersion = defined('ASSET_VERSION') ? ASSET_VERSION : time();
|
||||
$appBaseUrl = rtrim($GLOBALS['app_base_url'] ?? '', '/');
|
||||
$assetBase = $appBaseUrl !== '' ? $appBaseUrl : '';
|
||||
$appApiBase = rtrim($GLOBALS['app_api_base'] ?? '', '/');
|
||||
$debugRedirect = isset($_GET['debug_redirect']);
|
||||
?>
|
||||
<!doctype html>
|
||||
@@ -12,6 +13,10 @@ $debugRedirect = isset($_GET['debug_redirect']);
|
||||
<title>Email Template System – Dashboard</title>
|
||||
<script>document.documentElement.classList.add('auth-pending');</script>
|
||||
<style>html.auth-pending body{visibility:hidden;}</style>
|
||||
<script>
|
||||
window.APP_BASE_URL = <?= json_encode($appBaseUrl, JSON_UNESCAPED_SLASHES) ?>;
|
||||
window.APP_API_BASE = <?= json_encode($appApiBase, JSON_UNESCAPED_SLASHES) ?>;
|
||||
</script>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<?php if ($debugRedirect): ?>
|
||||
<script src="<?= $assetBase ?>/assets/js/debug-location.js?v=<?= htmlspecialchars($assetVersion, ENT_QUOTES) ?>"></script>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
$assetVersion = defined('ASSET_VERSION') ? ASSET_VERSION : time();
|
||||
$appBaseUrl = rtrim($GLOBALS['app_base_url'] ?? '', '/');
|
||||
$assetBase = $appBaseUrl !== '' ? $appBaseUrl : '';
|
||||
$appApiBase = rtrim($GLOBALS['app_api_base'] ?? '', '/');
|
||||
$debugRedirect = isset($_GET['debug_redirect']);
|
||||
?>
|
||||
<!doctype html>
|
||||
@@ -12,6 +13,10 @@ $debugRedirect = isset($_GET['debug_redirect']);
|
||||
<title>Email Template System – Konto</title>
|
||||
<script>document.documentElement.classList.add('auth-pending');</script>
|
||||
<style>html.auth-pending body{visibility:hidden;}</style>
|
||||
<script>
|
||||
window.APP_BASE_URL = <?= json_encode($appBaseUrl, JSON_UNESCAPED_SLASHES) ?>;
|
||||
window.APP_API_BASE = <?= json_encode($appApiBase, JSON_UNESCAPED_SLASHES) ?>;
|
||||
</script>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<?php if ($debugRedirect): ?>
|
||||
<script src="<?= $assetBase ?>/assets/js/debug-location.js?v=<?= htmlspecialchars($assetVersion, ENT_QUOTES) ?>"></script>
|
||||
|
||||
@@ -2,6 +2,7 @@
|
||||
$assetVersion = defined('ASSET_VERSION') ? ASSET_VERSION : time();
|
||||
$appBaseUrl = rtrim($GLOBALS['app_base_url'] ?? '', '/');
|
||||
$assetBase = $appBaseUrl !== '' ? $appBaseUrl : '';
|
||||
$appApiBase = rtrim($GLOBALS['app_api_base'] ?? '', '/');
|
||||
$debugRedirect = isset($_GET['debug_redirect']);
|
||||
?>
|
||||
<!doctype html>
|
||||
@@ -12,6 +13,10 @@ $debugRedirect = isset($_GET['debug_redirect']);
|
||||
<title>Email Template System – Administration</title>
|
||||
<script>document.documentElement.classList.add('auth-pending');</script>
|
||||
<style>html.auth-pending body{visibility:hidden;}</style>
|
||||
<script>
|
||||
window.APP_BASE_URL = <?= json_encode($appBaseUrl, JSON_UNESCAPED_SLASHES) ?>;
|
||||
window.APP_API_BASE = <?= json_encode($appApiBase, JSON_UNESCAPED_SLASHES) ?>;
|
||||
</script>
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
<?php if ($debugRedirect): ?>
|
||||
<script src="<?= $assetBase ?>/assets/js/debug-location.js?v=<?= htmlspecialchars($assetVersion, ENT_QUOTES) ?>"></script>
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
// assets/js/api.js
|
||||
const API = "api.php";
|
||||
const BASE = (window.APP_BASE_URL || '').replace(/\/$/, '');
|
||||
const API =
|
||||
(window.APP_API_BASE && window.APP_API_BASE.replace(/\/$/, '')) ||
|
||||
(BASE ? `${BASE}/api.php` : 'api.php');
|
||||
|
||||
/** ---- intern: Hilfen ---- */
|
||||
function withTs(url) {
|
||||
@@ -106,4 +109,3 @@ export function toast(msg, ok = true, opts = {}) {
|
||||
(ok ? console.log : console.error)(msg);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -1,6 +1,8 @@
|
||||
<?php
|
||||
$base = rtrim(dirname($_SERVER['SCRIPT_NAME']), '/') ?: '';
|
||||
$assetVersion = defined('ASSET_VERSION') ? ASSET_VERSION : time();
|
||||
$appBaseUrl = rtrim($GLOBALS['app_base_url'] ?? '', '/');
|
||||
$appApiBase = rtrim($GLOBALS['app_api_base'] ?? '', '/');
|
||||
?>
|
||||
<!doctype html>
|
||||
<html lang="de">
|
||||
@@ -15,6 +17,10 @@ $assetVersion = defined('ASSET_VERSION') ? ASSET_VERSION : time();
|
||||
html.auth-pending body { visibility: hidden; }
|
||||
</style>
|
||||
|
||||
<script>
|
||||
window.APP_BASE_URL = <?= json_encode($appBaseUrl, JSON_UNESCAPED_SLASHES) ?>;
|
||||
window.APP_API_BASE = <?= json_encode($appApiBase, JSON_UNESCAPED_SLASHES) ?>;
|
||||
</script>
|
||||
<!-- Tailwind zuerst -->
|
||||
<script src="https://cdn.tailwindcss.com"></script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user