mirror of
https://github.com/WhatCD/Gazelle.git
synced 2024-12-14 11:26:26 +00:00
12 lines
384 B
PHP
12 lines
384 B
PHP
|
<?
|
||
|
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']);
|
||
|
} elseif($_POST['delete']) {
|
||
|
SiteHistory::delete_event($_POST['id']);
|
||
|
}
|
||
|
header("Location: sitehistory.php");
|