Gazelle/sections/sitehistory/take_edit.php

13 lines
386 B
PHP
Raw Normal View History

2013-07-28 08:00:53 +00:00
<?
authorize();
if (!check_perms('users_mod') ) {
error(403);
}
if ($_POST['submit']) {
SiteHistory::update_event($_POST['id'], $_POST['date'], $_POST['title'], $_POST['url'], $_POST['category'], $_POST['sub_category'], $_POST['tags'], $_POST['body'], $LoggedUser['ID']);
2013-08-28 23:08:41 +00:00
} elseif ($_POST['delete']) {
2013-07-28 08:00:53 +00:00
SiteHistory::delete_event($_POST['id']);
}
2013-08-28 23:08:41 +00:00
header("Location: sitehistory.php");