* Plugin Name: GLM Members Database Events
* Plugin URI: http://www.gaslightmedia.com/
* Description: Gaslight Media Members Database.
- * Version: 1.6.12
+ * Version: 1.6.13
* Author: Chuck Scott
* Author URI: http://www.gaslightmedia.com/
* License: GPL2
* @package glmMembersDatabaseEventsAddOn
* @author Chuck Scott <cscott@gaslightmedia.com>
* @license http://www.gaslightmedia.com Gaslightmedia
- * @version 1.6.12
+ * @version 1.6.13
*/
/*
* so that we're sure the other add-ons see an up to date
* version from this plugin.
*/
-define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.12');
+define('GLM_MEMBERS_EVENTS_PLUGIN_VERSION', '1.6.13');
define('GLM_MEMBERS_EVENTS_PLUGIN_DB_VERSION', '0.1.1');
// This is the minimum version of the GLM Members DB plugin require for this plugin.
$action = 'event-list-ical';
}
+ $icalHeader = <<<EOD
+\r\nBEGIN:VCALENDAR
+PRODID:-//Gaslight Media Inc//Gaslight Events Calendar v2.0//EN
+VERSION:2.0
+CALSCALE:GREGORIAN
+METHOD:PUBLISH
+EOD;
+ $icalFooter = <<<EOD
+\nEND:VCALENDAR
+EOD;
+
$output = '';
switch ($action) {
$output = $this->getEventOutput( $eventId );
header('Content-type: text/calendar; charset=utf-8');
header('Content-Disposition: inline; filename=event-' . $eventId . '.ics');
+ echo $icalHeader;
echo $output;
+ echo $icalFooter;
exit;
break;
case 'event-list-ical':
- $icalHeader = <<<EOD
-\r\nBEGIN:VCALENDAR
-PRODID:-//Gaslight Media Inc//Gaslight Events Calendar v2.0//EN
-VERSION:2.0
-CALSCALE:GREGORIAN
-METHOD:PUBLISH
-EOD;
-
- $icalFooter = <<<EOD
-\nEND:VCALENDAR
-EOD;
$eventSql = "
SELECT id