Gazelle/sections/sitehistory/index.php

34 lines
714 B
PHP
Raw Normal View History

2013-07-28 08:00:53 +00:00
<?
enforce_login();
if (!check_perms('users_mod')) {
error(403);
}
if (!empty($_POST['action'])) {
switch ($_POST['action']) {
case 'take_create':
2013-08-28 23:08:41 +00:00
include(SERVER_ROOT . '/sections/sitehistory/take_create.php');
2013-07-28 08:00:53 +00:00
break;
case 'take_edit':
2013-08-28 23:08:41 +00:00
include(SERVER_ROOT . '/sections/sitehistory/take_edit.php');
2013-07-28 08:00:53 +00:00
break;
default:
error(404);
break;
}
2013-08-28 23:08:41 +00:00
} elseif (!empty($_GET['action'])) {
2013-07-28 08:00:53 +00:00
switch ($_GET['action']) {
case 'search':
2013-08-28 23:08:41 +00:00
include(SERVER_ROOT . '/sections/sitehistory/history.php');
2013-07-28 08:00:53 +00:00
break;
case 'edit':
2013-08-28 23:08:41 +00:00
include(SERVER_ROOT . '/sections/sitehistory/edit.php');
2013-07-28 08:00:53 +00:00
break;
default:
error(404);
break;
}
} else {
2013-08-28 23:08:41 +00:00
include(SERVER_ROOT . '/sections/sitehistory/history.php');
2013-07-28 08:00:53 +00:00
}