FILES: appCacheViewAjax.php appCacheViewConf.php appearance.php calendarDelete.php calendarEdit.php calendarList.php calendarSave.php calendarValidate.php calendar_Ajax.php clearCompiled.php clearCompiledAjax.php connectionDB.php connectionWS.php cron.php cronAjax.php customFunctions.php debug.php deleteSessions.php emailSystemCron.php emailSystemSpool.php emailSystemTest.php emails.php emails_Ajax.php emails_Save.php environmentSettings.php environmentSettingsAjax.php
19 lines
445 B
PHP
Executable File
19 lines
445 B
PHP
Executable File
<?php
|
|
try {
|
|
|
|
$CalendarUid = $_GET['id'];
|
|
|
|
G::LoadClass( 'calendar' );
|
|
$calendarObj = new calendar();
|
|
$calendarObj->deleteCalendar( $CalendarUid );
|
|
|
|
G::Header( 'location: calendarList' );
|
|
|
|
} catch (Exception $e) {
|
|
$G_PUBLISH = new Publisher();
|
|
$aMessage['MESSAGE'] = $e->getMessage();
|
|
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', 'login/showMessage', '', $aMessage );
|
|
G::RenderPage( 'publish', 'blank' );
|
|
}
|
|
|