%PDF- %PDF-
Direktori : /data/www_bck/varak.net_bck/suiteshooters.varak.net/app/ |
Current File : //data/www_bck/varak.net_bck/suiteshooters.varak.net/app/ical.php |
<?php /** * Created by IntelliJ IDEA. * User: mvarak * Date: 4/19/2017 * Time: 11:10 AM */ header("Content-Type: text/calendar"); header("Cache-Control: private, max-age=7200"); header("Content-Disposition: inline; filename=\"suiteshooters-event-$id.ics\""); $eventData = dibi::query("SELECT [id], [startDate], [endDate], [name] FROM [events] WHERE [id]=%i", $id); $smarty->assign('eventData', $eventData); $smarty->assign('tz', new DateTimeZone("UTC"));