-
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy pathsetup.php
72 lines (63 loc) · 2.12 KB
/
setup.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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
<?php include_once 'setup/bootstrap.php';
?><!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title><?= sprintf(lang('text_title'), lang('text_installation')); ?></title>
<link type="image/png" rel="shortcut icon" href="https://d980sf4vy2c60.cloudfront.net/web/icons/favicon.png">
<link type="text/css" rel="stylesheet" href="setup/assets/css/app.css">
</head>
<body class="">
<main id="page" class="setup-page">
<?php include_once PARTIALPATH.'_floating_logo.php'; ?>
<form id="setup-form" accept-charset="utf-8" method="POST" role="form">
<div data-html="content"></div>
<input type="hidden" id="current-step" value="<?= $page->currentStep ?>">
<div
id="page-modal"
class="modal"
tabindex="-1"
role="dialog"
data-html="modal">
</div>
<div id="progress-box" class="card-footer d-none" style="display: none;">
<h4 class="message"></h4>
</div>
<div id="flash-message"></div>
</form>
</main>
<?php
$partialList = [
'_alert_check_failed',
'_alert_check_complete',
'_alert_install_progress',
'_alert_install_failed',
'_popup_upgrade',
'start',
'license',
'requirements',
'database',
'settings',
'install',
'theme',
'proceed',
];
?>
<?php foreach ($partialList as $partial) { ?>
<script type="text/template" data-partial="<?= $partial ?>">
<?php include PARTIALPATH.$partial.'.php'; ?>
</script>
<?php } ?>
<script src="setup/assets/js/app.js"></script>
<script type="text/javascript">
Installer.Steps.start.view = "[data-partial=\"start\"]"
Installer.Steps.license.view = "[data-partial=\"license\"]"
Installer.Steps.requirements.view = "[data-partial=\"requirements\"]"
Installer.Steps.database.view = "[data-partial=\"database\"]"
Installer.Steps.settings.view = "[data-partial=\"settings\"]"
Installer.Steps.install.view = "[data-partial=\"install\"]"
Installer.Steps.proceed.view = "[data-partial=\"proceed\"]"
Installer.init()
</script>
</body>
</html>