⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 export.php

📁 groupoffice
💻 PHP
字号:
<?php/*Copyright Intermesh 2003Author: Merijn Schering <mschering@intermesh.nl>Version: 1.0 Release date: 08 July 2003This program is free software; you can redistribute it and/or modify itunder the terms of the GNU General Public License as published by theFree Software Foundation; either version 2 of the License, or (at youroption) any later version.*/require_once("../../Group-Office.php");$GO_SECURITY->authenticate();$GO_MODULES->authenticate('calendar');require_once($GO_MODULES->class_path.'calendar.class.inc');require_once($GO_MODULES->class_path.'go_ical.class.inc');$ical = new go_ical();if (isset($_REQUEST['calendar_id']) && $calendar = $ical->get_calendar($_REQUEST['calendar_id'])){	$event = false;	$filename = $calendar['name'].'.ics';}elseif(isset($_REQUEST['event_id']) && $event = $ical->get_event($_REQUEST['event_id'])){	$calendar = false;	$filename = $event['name'].'.ics';}if (!isset($filename)){	die($strDataError);}else{	$browser = detect_browser();	header('Content-Type: text/calendar');	//header('Content-Length: '.filesize($path));	header('Expires: '.gmdate('D, d M Y H:i:s') . ' GMT');	if ($browser['name'] == 'MSIE')	{		header('Content-Disposition: attachment; filename="'.$filename.'"');		header('Cache-Control: must-revalidate, post-check=0, pre-check=0');		header('Pragma: public');	}else	{		header('Pragma: no-cache');		header('Content-Disposition: attachment; filename="'.$filename.'"');	}	header('Content-Transfer-Encoding: binary');	if ($calendar)	{		echo $ical->export_calendar($_REQUEST['calendar_id']);	}elseif($event)	{		echo $ical->export_event($_REQUEST['event_id']);	}}?>

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -