-
Notifications
You must be signed in to change notification settings - Fork 1
/
line-up-edit.php
55 lines (38 loc) · 1.47 KB
/
line-up-edit.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
<?php
session_start();
require_once "./app/core/Handle.php";
require_once "./app/models/Genres.php";
require_once "./app/models/Artists.php";
function hasEditAuthority($id) {
$artist = Artists::getArtist($id, $_SESSION['party-manager']->party_id);
if(empty($artist) || $_SESSION['party-manager']->party_id != $artist->party_id) {
Handle::setPopup(Popups::noEditPermissions());
Handle::redirect("line-up-overview.php");
}
}
Handle::hasManageAuthority();
Handle::handleCommercialAuthentication();
hasEditAuthority($_GET['artistID']);
?>
<html>
<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="./public/js/UIKit.js"></script>
<script src="./public/js/isValidForm.js"></script>
</head>
<body>
<?php
require_once "./app/views/global/head-navbar-organizer.php";
require_once "./app/views/global/head-navbar-organizer-popup.php";
require_once "./app/views/global/sub-navbar-organizer.php";
require_once "./app/views/global/sub-navbar-organizer-popup.php";
Handle::displayPopups();
require_once "./app/views/line-up-dashboard/line-up-edit-form.php";
?>
</body>
</html>