mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-13 02:46:30 +00:00
34 lines
714 B
PHP
34 lines
714 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');
|
|
}
|