-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDownloads.php
43 lines (42 loc) · 1.33 KB
/
Downloads.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
<?php
require 'header.php';
require 'navbar.php';
session_start();
if(empty($_SESSION['moduleFileCreated'])) {
$_SESSION['moduleFileCreated'] = false;
}
if(empty($_SESSION['inputFileCreated'])) {
$_SESSION['inputFileCreated'] = false;
}
?>
<br>
<div class="container">
<div class="card">
<div class="card-body">
<div>
<h5>Default Build</h5>
<form method="get" action="scripts/defaultBuild.php">
<button class="btn btn-secondary" type="submit">Download</button>
</form>
</div>
<?php if ($_SESSION['inputFileCreated']): ?>
<hr>
<div>
<h5>Input File</h5>
<form method="get" action="scripts/userInputFile.php">
<button class="btn btn-secondary" type="submit">Download</button>
</form>
</div>
<?php endif; ?>
<?php if ($_SESSION['moduleFileCreated']): ?>
<hr>
<div>
<h5>Module File With User-Added Modules</h5>
<form method="get" action="scripts/userModuleFile.php">
<button class="btn btn-secondary" type="submit">Download</button>
</form>
</div>
<?php endif; ?>
</div>
</div>
</div>