41 lines
1.3 KiB
PHP
41 lines
1.3 KiB
PHP
<?php
|
|
|
|
declare(strict_types=1);
|
|
|
|
require_once dirname(__DIR__, 3) . '/src/App/bootstrap.php';
|
|
|
|
session_start();
|
|
|
|
$assetVersion = static function (string $assetPath): string {
|
|
$filesystemPath = __DIR__ . '/' . ltrim($assetPath, '/');
|
|
$publicPath = '/system-app-assets/index.php?app=user-self-management&path=' . rawurlencode(ltrim($assetPath, '/'));
|
|
|
|
if (!is_file($filesystemPath)) {
|
|
return $publicPath;
|
|
}
|
|
|
|
$mtime = filemtime($filesystemPath);
|
|
|
|
return $mtime === false ? $publicPath : $publicPath . '?v=' . $mtime;
|
|
};
|
|
?><!DOCTYPE html>
|
|
<html lang="de">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
<title>User Self Management</title>
|
|
<link rel="stylesheet" href="<?= htmlspecialchars($assetVersion('assets/app.css'), ENT_QUOTES) ?>">
|
|
</head>
|
|
<body style="margin:0;background:#e5e7eb;">
|
|
<div id="user-self-management-app" style="min-height:100vh;"></div>
|
|
<script src="<?= htmlspecialchars($assetVersion('assets/app.js'), ENT_QUOTES) ?>"></script>
|
|
<script>
|
|
if (typeof window.initUserSelfManagementApp === 'function') {
|
|
window.initUserSelfManagementApp(document.getElementById('user-self-management-app'), {
|
|
apiBase: '/api/user-self-management/index.php',
|
|
});
|
|
}
|
|
</script>
|
|
</body>
|
|
</html>
|