-
Notifications
You must be signed in to change notification settings - Fork 0
/
Signup.php
45 lines (41 loc) · 977 Bytes
/
Signup.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
<?php
/**
* Created by PhpStorm.
* User: Gwydion
* Date: 10/1/2018
* Time: 11:55 AM
*/
?>
<?php
require_once 'global/ConnectionSingleton.php';
require_once 'config/config.php';
include_once 'View/Includes/Header.php';
?>
<script src="../View/JSHandlers/SignupJS.js"></script>
<div id="signupFormsContainer" class="container">
<?php
if (!isset($_SESSION['userId'])){
include_once "View/Includes/Login.php";
}else{
$alreadyLoggedIn = <<<REGEXP
<div id="registerForm" class="container border-danger ">
<div class="col-md-4 mx-auto my-4">
<div class="alert alert-success" align="center">
<p>Logged In</a>
</div>
</div>
</div>
REGEXP;
echo $alreadyLoggedIn;
}
?>
</div>
<br>
<br>
<br>
<div class="fixed-bottom">
<?php
$pathToPage = URLROOT.'Evaluation.php?week=4';
include_once 'View/Includes/Footer.php';
?>
</div>