-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathcontroller.php
More file actions
32 lines (25 loc) · 1.17 KB
/
controller.php
File metadata and controls
32 lines (25 loc) · 1.17 KB
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
<?php
//////////////////////////////////////////////////////////////////////////////80
// Template Controller
//////////////////////////////////////////////////////////////////////////////80
// Copyright (c) 2020 Liam Siira (liam@siira.io), distributed as-is and without
// warranty under the MIT License. See [root]/license.md for more.
// This information must remain intact.
//////////////////////////////////////////////////////////////////////////////80
// Authors: Atheos Team, @hlsiira
//////////////////////////////////////////////////////////////////////////////80
require_once "class.template.php";
$activeUser = SESSION("user");
$Collab = new Template($activeUser);
Common::send("notice", "Template controller is an example only");
//////////////////////////////////////////////////////////////////////////////80
// Get Action
//////////////////////////////////////////////////////////////////////////////80
switch ($action) {
//////////////////////////////////////////////////////////////////////////80
// Default: Invalid Action
//////////////////////////////////////////////////////////////////////////80
default:
Common::send("error", "Invalid action.");
break;
}