First Commit
This commit is contained in:
1 parent
5eb9dd037d
commit
2e62c0e60b
11877 files changed
+2035312
No files matched your search
@@ -0,0 +1,39 @@
|
||||
<?php
|
||||
require_once("include/globals.php");
|
||||
|
||||
if (SessionActive() != 1 || ! UserLoggedIn()) {
|
||||
header("Location: /");
|
||||
exit();
|
||||
}
|
||||
|
||||
|
||||
if (array_key_exists('naction',$_POST)) {
|
||||
extract($_POST);
|
||||
|
||||
if (strlen($title) > 0 && isset($dow)) {
|
||||
$event_calendar = new Table("event_calendar");
|
||||
|
||||
$dow = implode(',',$dow);
|
||||
|
||||
// Insert a new event
|
||||
if (array_key_exists('naction',$_POST) && $_POST['naction'] == 'insert') {
|
||||
$query = $event_calendar->BuildInsert();
|
||||
db_query($query);
|
||||
}
|
||||
|
||||
// Update an event
|
||||
if (array_key_exists('naction',$_POST) && $_POST['naction'] == 'update') {
|
||||
$query = $event_calendar->BuildUpdate();
|
||||
db_query($query);
|
||||
}
|
||||
|
||||
header("Location: /?action=events-calendar");
|
||||
}
|
||||
else {
|
||||
$error_message = getLanguageText('TEXT-TITLE-IS-REQUIRED');
|
||||
}
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
?>
|
||||
Reference in new issue
Block a user