-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathedit_event.php
More file actions
39 lines (26 loc) · 744 Bytes
/
Copy pathedit_event.php
File metadata and controls
39 lines (26 loc) · 744 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
<?php
include 'epic.php';
if(!function_exists("signed_in")) {
die("Unavailable Site");
}
$name = $_POST['name'];
$description = $_POST['description'];
$location = $_POST['location'];
$start = $_POST['start'];
if ($location == "") {
$location = "undef";
}
if ($name == "") {
$name = "noname";
}
if ($description == "") {
$description = "no description";
}
if ($start == "") {
$start = date('Y-m-d H:i:s');
}
global $db, $user;
$db->prepare("UPDATE _event SET startDate = ?,location = ?,description = ?,name = ? WHERE event_id = ?;");
$db->exe_prepare('sssss',$start, $location, $description, $name, $_POST['id']);
header("Location: index.php?events");
?>