Gazelle/sections/sitehistory/index.php
2013-07-28 08:00:53 +00:00

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");
}