Exemplo n.º 1
0
                $exportVideo = $_SESSION['export']['video'] = $_REQUEST['exportVideo'];
            } else {
                $exportVideo = false;
            }
            if (!empty($_REQUEST['exportMisc'])) {
                $exportMisc = $_SESSION['export']['misc'] = $_REQUEST['exportMisc'];
            } else {
                $exportMisc = false;
            }
            if (!empty($_REQUEST['exportFormat'])) {
                $exportFormat = $_SESSION['export']['format'] = $_REQUEST['exportFormat'];
            } else {
                $exportFormat = '';
            }
            $exportIds = !empty($_REQUEST['eids']) ? $_REQUEST['eids'] : $_REQUEST['id'];
            if ($exportFile = exportEvents($exportIds, $exportDetail, $exportFrames, $exportImages, $exportVideo, $exportMisc, $exportFormat)) {
                ajaxResponse(array('exportFile' => $exportFile));
            } else {
                ajaxError("Export Failed");
            }
            break;
    }
}
if (canEdit('Events')) {
    switch ($_REQUEST['action']) {
        case "rename":
            if (!empty($_REQUEST['eventName'])) {
                dbQuery('UPDATE Events SET Name = ? WHERE Id = ?', array($_REQUEST['eventName'], $_REQUEST['id']));
            } else {
                ajaxError("No new event name supplied");
            }
Exemplo n.º 2
0
<?php

//require("../../../includes/config.php");
//require("../../../includes/functions.php");
require "config.php";
$exportIds = !empty($_REQUEST['eids']) ? $_REQUEST['eids'] : $_REQUEST['eid'];
$thepath = dirname(dirname(dirname(dirname(__FILE__))));
$exportFile = exportEvents($exportIds, 1, 1, 1, 1, 1, 'tar');
die('http://' . $_SERVER['HTTP_HOST'] . '/temp/' . basename($exportFile));
//function exportEvents( $eids, $exportDetail, $exportFrames, $exportImages, $exportVideo, $exportMisc, $exportFormat )
function exportHeader($title)
{
    ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
  <title><?php 
    echo $title;
    ?>
</title>
  <style type="text/css">
  <!--
<?php 
    //include( ZM_SKIN_PATH.'/css/export.css' );
    include '../css/export.css';
    ?>
	

ul.tabs {
	margin: 0;
        margin-bottom: -1px;