-
Notifications
You must be signed in to change notification settings - Fork 0
/
install_success.php
executable file
·53 lines (50 loc) · 1.95 KB
/
install_success.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
<?php
// Define secure access constant
define('SECURE_ACCESS', true);
session_start();
require_once 'lang.php';
$current_uri = $_SERVER['REQUEST_URI'];
$base_uri = preg_replace('/([?&])lang=[^&]*(&|$)/', '$1', $current_uri);
$separator = (strpos($base_uri, '?') !== false) ? '&' : '?';
if (substr($base_uri, -1) === '&') {
$base_uri = rtrim($base_uri, '&');
$separator = '&';
}
?>
<!DOCTYPE html>
<html lang="<?= $_SESSION['lang']; ?>">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title><?= __('installation'); ?></title>
<link rel="stylesheet" href="chota.min.css">
<style>
body { padding: 2rem; background: var(--bg-secondary); }
.container { margin: 0 auto; }
.card { background: white; padding: 2rem; border-radius: 4px; }
.success { color: var(--color-success); }
.text-right { text-align: right; }
</style>
</head>
<body>
<div class="container">
<div class="card">
<div class="text-right">
<a href="<?= $base_uri . $separator ?>lang=fr" class="<?= $_SESSION['lang'] === 'fr' ? 'active' : ''; ?>">Français</a> |
<a href="<?= $base_uri . $separator ?>lang=en" class="<?= $_SESSION['lang'] === 'en' ? 'active' : ''; ?>">English</a>
</div>
<h1 class="text-center"><?= __('installation'); ?></h1>
<div class="row">
<div class="col">
<h3><?= __('progress'); ?></h3>
<?php foreach ($_SESSION['install_messages'] as $message): ?>
<p class="message success"><?= htmlspecialchars($message); ?></p>
<?php endforeach; ?>
<p class="success">✓ <?= __('success'); ?></p>
<a href="index.php" class="button primary"><?= __('go_to_app'); ?></a>
</div>
</div>
</div>
</div>
</body>
</html>