-
Notifications
You must be signed in to change notification settings - Fork 1
/
profile.php
86 lines (64 loc) · 2.51 KB
/
profile.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
73
74
75
76
77
78
79
80
81
82
83
84
85
86
<?php
require_once "./app/core/Handle.php";
require_once "./app/models/Parties.php";
require_once "./app/models/Organizer.php";
require_once "./app/models/Ratings.php";
require_once "./app/models/Accounts.php";
require_once "./app/models/Followers.php";
session_start();
Handle::requiredParameters([$_GET['account'], $_GET['type']], Popups::wrongParameters(), "login.php");
$accountID = $_GET['account'];
$type = $_GET['type'];
$type = $type == 'o' ? 'o' : 'u';
$account = null;
if($type == 'o')
$account = Organizer::getOrganizer($accountID);
else
$account = Accounts::getAccountViaID($accountID);
if(empty($account))
Handle::requiredParameters([$account], Popups::noUserFound(), "login.php");
?>
<html class="uk-background-muted">
<head>
<!-- UIkit CSS -->
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.3/css/uikit.min.css" />
<link rel="stylesheet" href="./public/css/uikit_customized.css">
<!-- UIkit JS -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.3/js/uikit.min.js"></script>
<script src="https://cdnjs.cloudflare.com/ajax/libs/uikit/3.0.3/js/uikit-icons.min.js"></script>
<script src="https://ajax.googleapis.com/ajax/libs/jquery/3.3.1/jquery.min.js"></script>
<script type="text/javascript" src="./public/js/UIKit.js"></script>
</head>
<body>
<?php
require_once "./app/views/profile/followers.php";
/** Head navbar **/
require_once "./app/views/global/head-navbar.php";
/** Popup navbar when screen too small **/
require_once "./app/views/global/head-navbar-popup.php";
Handle::displayPopups();
?>
<div class="uk-margin-xlarge-left uk-margin-xlarge-right uk-margin-medium-top uk-margin-medium-bottom">
<div class="uk-container-large" uk-grid>
<div class="uk-width-1-1">
<div class="uk-text-left">
<a class="uk-link-reset" href="javascript:history.go(-1)">
<span class="uk-margin-small-right" uk-icon="arrow-left"></span>
Terug naar vorige pagina
</a>
</div>
</div>
<div class="uk-width-1-1">
<div class="uk-card uk-card-default uk-card-hover">
<div class="uk-card-header">
<h3 class="customized-dashboard-card-title">Profiel Pagina</h3>
</div>
<div class="uk-card-body">
<?php require_once "./app/views/profile/profile-page.php" ?>
</div>
</div>
</div>
</div>
</div>
</body>
</html>