mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-14 03:16:25 +00:00
34 lines
713 B
PHP
34 lines
713 B
PHP
<?
|
|
enforce_login();
|
|
|
|
if (!check_perms('users_mod')) {
|
|
error(403);
|
|
}
|
|
if (!empty($_POST['action'])) {
|
|
switch ($_POST['action']) {
|
|
case 'take_create':
|
|
include(SERVER_ROOT . "/sections/sitehistory/take_create.php");
|
|
break;
|
|
case 'take_edit':
|
|
include(SERVER_ROOT . "/sections/sitehistory/take_edit.php");
|
|
break;
|
|
default:
|
|
error(404);
|
|
break;
|
|
}
|
|
} elseif(!empty($_GET['action'])) {
|
|
switch ($_GET['action']) {
|
|
case 'search':
|
|
include(SERVER_ROOT . "/sections/sitehistory/history.php");
|
|
break;
|
|
case 'edit':
|
|
include(SERVER_ROOT . "/sections/sitehistory/edit.php");
|
|
break;
|
|
default:
|
|
error(404);
|
|
break;
|
|
}
|
|
} else {
|
|
include(SERVER_ROOT . "/sections/sitehistory/history.php");
|
|
}
|