diff --git a/web/skins/xml/includes/functions.php b/web/skins/xml/includes/functions.php
index 461d0b9c1..2d88555a1 100644
--- a/web/skins/xml/includes/functions.php
+++ b/web/skins/xml/includes/functions.php
@@ -11,16 +11,11 @@
/* There appears to be some discrepancy btw. 1.24.1/2 and .3 for EventPaths, to escape them here */
function getEventPathSafe($event)
{
- if (!strcmp(ZM_VERSION, "1.24.1") || !strcmp(ZM_VERSION, "1.24.2")) {
- $ret = getEventPath($event);
- } else {
- $ret = ZM_DIR_EVENTS."/".getEventPath($event);
- }
- /* Make sure ZM_DIR_EVENTS is defined, otherwise need to fudge the path */
- if (!defined("ZM_DIR_EVENTS")) {
- $ret = "events/".$event['MonitorId']."/".$event['Id'];
- error_log("ZM_DIR_EVENTS not defined, guessing path to be ".$ret);
+ /* We don't support deep storage yet */
+ if (ZM_USE_DEEP_STORAGE) {
+ error_log("XML Plugin does not support Deep storage yet, contact support@eyezm.com for this bug");
}
+ $ret = ZM_DIR_EVENTS."/".$event['MonitorId']."/".$event['Id'];
return $ret;
}
function updateClientVer()
@@ -186,6 +181,11 @@ function stream264fn ($mid, $width, $height, $br) {
/** Generate the web-page presented to the viewer when using H264 */
function h264vidHtml($width, $height, $monitor, $br) {
+ function printTermLink() {
+ $str = "H264 Stream Terminated
Click to Reload";
+ $str2 = "document.getElementById(\"loaddiv\").innerHTML = \"".$str."\";";
+ echo $str2;
+ }
$ajaxUrl = "?view=actions&action=spawn264&&monitor=".$monitor."&br=".$br;
/* Call these two directly to bypass server blocking issues */
$ajax2Url = "./skins/xml/views/actions.php?action=chk264&monitor=".$monitor;
@@ -197,8 +197,7 @@ function h264vidHtml($width, $height, $monitor, $br) {