zoneminder/web/skins/classic/views/js/download.js.php

24 lines
677 B
PHP
Raw Normal View History

<?php
2020-08-17 08:08:42 +08:00
global $connkey;
global $exportFormat;
if ( isset($_REQUEST['eids']) ) {
$eidParms = array();
foreach ( $_REQUEST['eids'] as $eid )
$eidParms[] = 'eids[]='.validInt($eid);
?>
2018-05-18 21:52:12 +08:00
var eidParm = '<?php echo join('&', $eidParms) ?>';
<?php
2020-08-17 08:08:42 +08:00
} else if (isset($_REQUEST['eid'])) {
?>
var eidParm = 'eid=<?php echo validInt($_REQUEST['eid']) ?>';
<?php
2020-08-17 08:08:42 +08:00
}
?>
var exportReady = <?php echo !empty($_REQUEST['generated'])?'true':'false' ?>;
var exportFile = '?view=archive&type=<?php echo $exportFormat; ?>&connkey=<?php echo $connkey; ?>';
var connkey = '<?php echo $connkey ?>';
var exportProgressString = '<?php echo addslashes(translate('Exporting')) ?>';