Comment 2 for bug 1176128

Revision history for this message
Alex10336 (ap10336) wrote :

Fix tested on raraing and zoneminder 1.25:
/usr/share/zoneminder/zm/skins/classic/includes/export_functions.php: line ~778

 foreach ($eids as $eid) {
  //get monitor id and event id
  $sql = "select E.MonitorId, E.StartTime, E.Id from Monitors as M inner join Events as E on (M.Id = E.MonitorId) where E.Id = '".dbEscape($eid)."'";
  $event = dbFetchOne( $sql );
  $eventMonitorId[$eid] = $event['MonitorId'];
  $eventPath[$eid] = strftime( "%y/%m/%d/%H/%M/%S", strtotime($event['StartTime']) );

 }

/usr/share/zoneminder/skins/classic/includes/export_functions.php: line ~826 & ~842

  <div><a href="javascript:switchevent('<?php echo $eventMonitorId[$eid].'/' . $eventPath[$eid]; ?>/zmEventImages.html');"><?=$eid?></a></div>