Browse Source

added deleteEvent

master
n0m1s 10 years ago
parent
commit
33cf7ff7b3
1 changed files with 12 additions and 0 deletions
  1. +12
    -0
      deleteEvent.php

+ 12
- 0
deleteEvent.php View File

@ -0,0 +1,12 @@
<?php
include_once('./databaseOperations.php');
//TODO: check if user has the right to delete the event
if(isset($_GET['id']) && is_numeric($_GET['id']))
{
$db = connect();
deleteEvent($db, $_GET['id']);
header('Location:./');
}
?>

Loading…
Cancel
Save