-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathui.php
35 lines (33 loc) · 1.07 KB
/
ui.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
<?php
require_once('includes.php');
require_once('view.php');
require_once('the_hell_with_ajax/all_players.php');
session_start();
if ( isset($_COOKIE['database_is_populated_flash'])){
echo '
<div class="container" style="text-align: center" >
<div
class="alert alert-success"
style="margin-top:100px"
>
You have successfully populated your database</div>
</div>
';
}
if ( !isset($_COOKIE['database_is_populated']) ){
echo '
<div class="container" style="text-align: center" >
<form action="main.php" method="post">
<input
type="submit"
class="btn btn-primary"
name="someAction"
style="margin-top: 100px"
value="Populate DataBase With Dummy Data" />
</form>
</div>
';
}
else{
//view::create_table_for_players();
}