コード例 #1
0
ファイル: montage.php プロジェクト: bill-mcgonigle/ZoneMinder
foreach (dbFetchAll($sql) as $row) {
    if (!visibleMonitor($row['Id'])) {
        continue;
    }
    if ($group && $group['MonitorIds'] && !in_array($row['Id'], explode(',', $group['MonitorIds']))) {
        continue;
    }
    if ($maxWidth < $row['Width']) {
        $maxWidth = $row['Width'];
    }
    if ($maxHeight < $row['Height']) {
        $maxHeight = $row['Height'];
    }
    $monitors[] = $row;
}
xhtmlHeaders(__FILE__, translate('Montage'));
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
        <a href="?view=<?php 
echo $_REQUEST['view'];
?>
"><?php 
echo translate('Refresh');
?>
</a>
      </div>
    </div>
    <div id="content">
コード例 #2
0
ファイル: filtersave.php プロジェクト: rodoviario/ZoneMinder
if (!canEdit('Events')) {
    $view = "error";
    return;
}
$selectName = "filterName";
$newSelectName = "new" . ucfirst($selectName);
foreach (dbFetchAll("select * from Filters order by Name") as $row) {
    $filterNames[$row['Name']] = $row['Name'];
    if ($_REQUEST['filterName'] == $row['Name']) {
        $filterData = $row;
    }
}
$focusWindow = true;
$filter = $_REQUEST['filter'];
parseFilter($filter);
xhtmlHeaders(__FILE__, translate('SaveFilter'));
?>
<body>
  <div id="page">
    <div id="header">
      <h2><?php 
echo translate('SaveFilter');
?>
</h2>
    </div>
    <div id="content">
      <form name="contentForm" id="contentForm" method="post" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
        <input type="hidden" name="view" value="none"/>
コード例 #3
0
ファイル: events.php プロジェクト: rodoviario/ZoneMinder
    if ($maxWidth < $eventWidth) {
        $maxWidth = $eventWidth;
    }
    if ($maxHeight < $eventHeight) {
        $maxHeight = $eventHeight;
    }
    if ($event['Archived']) {
        $archived = true;
    } else {
        $unarchived = true;
    }
}
$maxShortcuts = 5;
$pagination = getPagination($pages, $page, $maxShortcuts, $filterQuery . $sortQuery . '&amp;limit=' . $limit);
$focusWindow = true;
xhtmlHeaders(__FILE__, translate('Events'));
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
<?php 
if ($pages > 1) {
    if (!empty($page)) {
        ?>
        <a href="?view=<?php 
        echo $view;
        ?>
&amp;page=0<?php 
        echo $filterQuery;
        echo $sortQuery;
コード例 #4
0
        $sourceDesc = htmlspecialchars(serialize($camera['monitor']));
        $sourceString = $camera['model'] . ' @ ' . $host;
        if (isset($monitors[$ip])) {
            $monitor = $monitors[$ip];
            $sourceString .= " (" . $monitor['Name'] . ")";
        } else {
            $sourceString .= " - " . translate('Available');
        }
        $cameras[$sourceDesc] = $sourceString;
    }
}
if (count($cameras) <= 0) {
    $cameras[0] = translate('NoDetectedCameras');
}
$focusWindow = true;
xhtmlHeaders(__FILE__, translate('MonitorProbe'));
?>
<body>
  <div id="page">
    <div id="header">
      <h2><?php 
echo translate('MonitorProbe');
?>
</h2>
    </div>
    <div id="content">
      <form name="contentForm" id="contentForm" method="post" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
        <input type="hidden" name="view" value="none"/>
コード例 #5
0
ファイル: frame.php プロジェクト: rodoviario/ZoneMinder
$prevFid = $frame['FrameId'] - 1;
$nextFid = $frame['FrameId'] + 1;
$lastFid = $maxFid;
$alarmFrame = $frame['Type'] == 'Alarm';
if (isset($_REQUEST['scale'])) {
    $scale = validInt($_REQUEST['scale']);
} else {
    $scale = max(reScale(SCALE_BASE, $event['DefaultScale'], ZM_WEB_DEFAULT_SCALE), SCALE_BASE);
}
$imageData = getImageSrc($event, $frame, $scale, isset($_REQUEST['show']) && $_REQUEST['show'] == "capt");
$imagePath = $imageData['thumbPath'];
$eventPath = $imageData['eventPath'];
$dImagePath = sprintf("%s/%0" . ZM_EVENT_IMAGE_DIGITS . "d-diag-d.jpg", $eventPath, $frame['FrameId']);
$rImagePath = sprintf("%s/%0" . ZM_EVENT_IMAGE_DIGITS . "d-diag-r.jpg", $eventPath, $frame['FrameId']);
$focusWindow = true;
xhtmlHeaders(__FILE__, translate('Frame') . " - " . $event['Id'] . " - " . $frame['FrameId']);
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
        <?php 
if (ZM_RECORD_EVENT_STATS && $alarmFrame) {
    echo makePopupLink('?view=stats&amp;eid=' . $event['Id'] . '&amp;fid=' . $frame['FrameId'], 'zmStats', 'stats', translate('Stats'));
}
?>
        <?php 
if (canEdit('Events')) {
    ?>
<a href="?view=none&amp;action=delete&amp;markEid=<?php 
    echo $event['Id'];
コード例 #6
0
ファイル: state.php プロジェクト: moeiscool/ZoneMinder-video
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
if (!canEdit('System')) {
    $view = "error";
    return;
}
$running = daemonCheck();
$states = dbFetchAll("select * from States");
$focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['RunState']);
?>
<body>
  <div id="page">
    <div id="header">
      <h2><?php 
echo $SLANG['RunState'];
?>
</h2>
    </div>
    <div id="content">
      <form name="contentForm" id="contentForm" method="get" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
<?php 
コード例 #7
0
ファイル: events.php プロジェクト: mondychan/modern
<?php

xhtmlHeaders(__FILE__, $SLANG['Events']);
?>
<body>
<!--<div id="widget_actions" style="position:absolute;top:61px;right:14px;z-index:100">
	<ul>
		<li><button id="btn_graphs" style="height:25px;">Graphs</button></li>
		<li><button id="btn_advanced" style="height:25px;">Advanced</button></li>
	</ul>
</div>-->

<input type="hidden" value="<?php 
echo $tab;
?>
" id="inptTab"/>
   <?php 
require "header.php";
?>
<div id="content">
	<div id="yui-b">
		<div id="tabs_events">
			<ul>
				<!-- tabs go here -->
				<li style="float:right;"><button id="btn_advanced" style="height:22px;">Advanced</button></li>
				<li style="float:right;"><button id="btn_graphs" style="height:22px;">Graphs</button></li>
			</ul>
			<div ></div>
		</div> <!-- tabs ends -->
	</div>
	
コード例 #8
0
ファイル: video.php プロジェクト: rodoviario/ZoneMinder
                if ($matches[1] == $videoSize) {
                    $videoFiles[] = $file;
                }
            }
        }
    }
    closedir($dir);
}
if (isset($_REQUEST['download'])) {
    header("Content-type: " . getMimeType($videoFiles[$_REQUEST['download']]));
    header("Content-length: " . filesize($videoFiles[$_REQUEST['download']]));
    header("Content-disposition: attachment; filename=" . preg_replace("/^.*\\//", "", $videoFiles[$_REQUEST['download']]) . "; size=" . filesize($videoFiles[$_REQUEST['download']]));
    readfile($videoFiles[$_REQUEST['download']]);
    exit;
}
xhtmlHeaders(__FILE__, translate('Video') . ' - ' . $event['Name']);
?>
<body>
  <div id="page">
    <div id="content">
      <form method="post" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
        <div class="hidden">
          <fieldset>
            <input type="hidden" name="view" value="<?php 
echo $_REQUEST['view'];
?>
"/>
            <input type="hidden" name="eid" value="<?php 
コード例 #9
0
ファイル: filter.php プロジェクト: rodoviario/ZoneMinder
$attrTypes = array('MonitorId' => translate('AttrMonitorId'), 'MonitorName' => translate('AttrMonitorName'), 'Id' => translate('AttrId'), 'Name' => translate('AttrName'), 'Cause' => translate('AttrCause'), 'Notes' => translate('AttrNotes'), 'DateTime' => translate('AttrDateTime'), 'Date' => translate('AttrDate'), 'Time' => translate('AttrTime'), 'Weekday' => translate('AttrWeekday'), 'Length' => translate('AttrDuration'), 'Frames' => translate('AttrFrames'), 'AlarmFrames' => translate('AttrAlarmFrames'), 'TotScore' => translate('AttrTotalScore'), 'AvgScore' => translate('AttrAvgScore'), 'MaxScore' => translate('AttrMaxScore'), 'Archived' => translate('AttrArchiveStatus'), 'DiskPercent' => translate('AttrDiskPercent'), 'DiskBlocks' => translate('AttrDiskBlocks'), 'SystemLoad' => translate('AttrSystemLoad'));
$opTypes = array('=' => translate('OpEq'), '!=' => translate('OpNe'), '>=' => translate('OpGtEq'), '>' => translate('OpGt'), '<' => translate('OpLt'), '<=' => translate('OpLtEq'), '=~' => translate('OpMatches'), '!~' => translate('OpNotMatches'), '=[]' => translate('OpIn'), '![]' => translate('OpNotIn'));
$archiveTypes = array('0' => translate('ArchUnarchived'), '1' => translate('ArchArchived'));
$weekdays = array();
for ($i = 0; $i < 7; $i++) {
    $weekdays[$i] = strftime("%A", mktime(12, 0, 0, 1, $i + 1, 2001));
}
$sort_fields = array('Id' => translate('AttrId'), 'Name' => translate('AttrName'), 'Cause' => translate('AttrCause'), 'Notes' => translate('AttrNotes'), 'MonitorName' => translate('AttrMonitorName'), 'DateTime' => translate('AttrDateTime'), 'Length' => translate('AttrDuration'), 'Frames' => translate('AttrFrames'), 'AlarmFrames' => translate('AttrAlarmFrames'), 'TotScore' => translate('AttrTotalScore'), 'AvgScore' => translate('AttrAvgScore'), 'MaxScore' => translate('AttrMaxScore'));
$sort_dirns = array('1' => translate('SortAsc'), '0' => translate('SortDesc'));
if (empty($_REQUEST['sort_field'])) {
    $_REQUEST['sort_field'] = ZM_WEB_EVENT_SORT_FIELD;
    $_REQUEST['sort_asc'] = ZM_WEB_EVENT_SORT_ORDER == "asc";
}
$hasCal = file_exists('tools/jscalendar/calendar.js');
$focusWindow = true;
xhtmlHeaders(__FILE__, translate('EventFilter'));
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
        <a href="#" onclick="closeWindow();"><?php 
echo translate('Close');
?>
</a>
      </div>
      <h2><?php 
echo translate('EventFilter');
?>
</h2>
    </div>
コード例 #10
0
ファイル: controlcaps.php プロジェクト: mondychan/modern
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
if (!canView('Control')) {
    $view = "error";
    return;
}
$sql = "select * from Controls order by Id";
$controls = dbFetchAll($sql);
$focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['ControlCaps']);
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
        <a href="#" onclick="closeWindow();"><?php 
echo $SLANG['Close'];
?>
</a>
      </div>
      <h2><?php 
echo $SLANG['ControlCaps'];
?>
</h2>
    </div>
コード例 #11
0
ファイル: console.php プロジェクト: kunkku/ZoneMinder
$eventsWindow = 'zm' . ucfirst(ZM_WEB_EVENTS_VIEW);
$eventCount = 0;
for ($i = 0; $i < count($eventCounts); $i++) {
    $eventCounts[$i]['total'] = 0;
}
$zoneCount = 0;
foreach ($displayMonitors as $monitor) {
    for ($i = 0; $i < count($eventCounts); $i++) {
        $eventCounts[$i]['total'] += $monitor['EventCount' . $i];
    }
    $zoneCount += $monitor['ZoneCount'];
}
$seqUpFile = getSkinFile('graphics/seq-u.gif');
$seqDownFile = getSkinFile('graphics/seq-d.gif');
$versionClass = ZM_DYN_DB_VERSION && ZM_DYN_DB_VERSION != ZM_VERSION ? 'errorText' : '';
xhtmlHeaders(__FILE__, translate('Console'));
?>
<body>
  <div id="page">
    <form name="monitorForm" method="get" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
    <input type="hidden" name="view" value="<?php 
echo $view;
?>
"/>
    <input type="hidden" name="action" value=""/>
    <div id="header">
      <h3 id="systemTime"><?php 
echo preg_match('/%/', DATE_FMT_CONSOLE_LONG) ? strftime(DATE_FMT_CONSOLE_LONG) : date(DATE_FMT_CONSOLE_LONG);
コード例 #12
0
          </div>
<?php 
    return ob_get_clean();
}
function getSlotPreviewEventBehaviour($slot)
{
    return "previewEvent( '" . $slot['event']['Id'] . "', '" . getSlotFrame($slot) . "' )";
}
function getSlotShowEventBehaviour($slot)
{
    global $monitors;
    $monitor =& $monitors[$slot['event']['MonitorId']];
    return "showEvent( '" . $slot['event']['Id'] . "', '" . getSlotFrame($slot) . "', '" . reScale($monitor['Width'], $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE) . "', '" . reScale($monitor['Height'], $monitor['DefaultScale'], ZM_WEB_DEFAULT_SCALE) . "' )";
}
$focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['Timeline']);
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
        <?php 
echo makePopupLink('?view=events&amp;page=1' . htmlspecialchars($filterQuery), 'zmEvents', 'events', $SLANG['List'], canView('Events'));
?>
        <a href="#" onclick="closeWindow();"><?php 
echo $SLANG['Close'];
?>
</a>
      </div>
      <h2><?php 
echo $SLANG['Timeline'];
コード例 #13
0
ファイル: logout.php プロジェクト: mondychan/modern
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
$focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['Logout']);
?>
<body>
  <div id="page">
    <div id="header">
      <h1>ZoneMinder <?php 
echo $SLANG['Logout'];
?>
</h1>
    </div>
    <div id="content">
      <form name="contentForm" id="contentForm" method="post" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
	<input type="hidden" name="request" value="refresh" />
コード例 #14
0
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
if (!canEdit('System')) {
    $view = "error";
    return;
}
$options = array("go" => $SLANG['GoToZoneMinder']);
if (verNum(ZM_DYN_CURR_VERSION) != verNum(ZM_DYN_LAST_VERSION)) {
    $options = array_merge($options, array("ignore" => $SLANG['VersionIgnore'], "hour" => $SLANG['VersionRemindHour'], "day" => $SLANG['VersionRemindDay'], "week" => $SLANG['VersionRemindWeek'], "never" => $SLANG['VersionRemindNever']));
}
$focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['Version']);
?>
<body>
  <div id="page">
    <div id="header">
      <h2><?php 
echo $SLANG['Version'];
?>
</h2>
    </div>
    <div id="content">
<?php 
if (ZM_DYN_DB_VERSION && ZM_DYN_DB_VERSION != ZM_VERSION) {
    ?>
      <p class="errorText"><?php 
    echo sprintf($CLANG['VersionMismatch'], ZM_VERSION, ZM_DYN_DB_VERSION);
コード例 #15
0
ファイル: frames.php プロジェクト: ardiqghenatya/koptel2
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
if (!canView('Events')) {
    $view = "error";
    return;
}
$sql = "select E.*,M.Name as MonitorName,M.Width,M.Height from Events as E inner join Monitors as M on E.MonitorId = M.Id where E.Id = '" . dbEscape($_REQUEST['eid']) . "'";
$event = dbFetchOne($sql);
$sql = "select *, unix_timestamp( TimeStamp ) as UnixTimeStamp from Frames where EventID = '" . dbEscape($_REQUEST['eid']) . "' order by FrameId";
$frames = dbFetchAll($sql);
$focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['Frames'] . " - " . $event['Id']);
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons"><a href="#" onclick="closeWindow();"><?php 
echo $SLANG['Close'];
?>
</a></div>
      <h2><?php 
echo $SLANG['Frames'];
?>
 - <?php 
echo $event['Id'];
?>
</h2>
コード例 #16
0
    }
    if (ZM_OPT_CONTROL && $row['ControlId']) {
        $showControl = true;
    }
    $row['index'] = $index++;
    $row['scaleWidth'] = $scaleWidth;
    $row['scaleHeight'] = $scaleHeight;
    $row['connKey'] = generateConnKey();
    $monitors[] = $row;
}
$focusWindow = true;
$layouts = array('montage_freeform.css' => $SLANG['MtgDefault'], 'montage_2wide.css' => $SLANG['Mtg2widgrd'], 'montage_3wide.css' => $SLANG['Mtg3widgrd'], 'montage_4wide.css' => $SLANG['Mtg4widgrd'], 'montage_3wide50enlarge.css' => $SLANG['Mtg3widgrx']);
if (isset($_COOKIE['zmMontageLayout'])) {
    $layout = $_COOKIE['zmMontageLayout'];
}
xhtmlHeaders(__FILE__, $SLANG['Montage']);
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
<?php 
if ($showControl) {
    ?>
        <a href="#" onclick="createPopup( '?view=control', 'zmControl', 'control' )"><?php 
    echo $SLANG['Control'];
    ?>
</a>
<?php 
}
?>
コード例 #17
0
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
if (!canView('Events')) {
    $_REQUEST['view'] = "error";
    return;
}
$event = dbFetchOne('select E.*,M.Name as MonitorName from Events as E, Monitors as M where E.Id = ? and E.MonitorId = M.Id', NULL, array($_REQUEST['eid']));
$frame = dbFetchOne('select * from Frames where EventID = ? and Score = ?', NULL, array($_REQUEST['eid'], $event['MaxScore']));
$scale = getDeviceScale($event['Width'], $event['Height'], 2.2);
$image1 = getImageSrc($event, 1, $scale);
if ($frame['Type'] == 'Alarm') {
    $image2 = getImageSrc($event, $frame['FrameId'], $scale);
} else {
    $image2 = getImageSrc($event, intval($event['Frames'] / 2), $scale);
}
xhtmlHeaders(__FILE__, translate('Event') . ' - ' . $_REQUEST['eid']);
?>
<body>
  <div id="page">
    <div id="content">
      <table id="contentTable" class="major">
        <tr>
          <th scope="row"><?php 
echo translate('Name');
?>
</th>
          <td><?php 
echo htmlentities($event['Name']);
echo $event['Archived'] ? "(" . translate('Archived') . ")" : "";
?>
</td>
コード例 #18
0
ファイル: group.php プロジェクト: rodoviario/ZoneMinder
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
if (!canEdit('Groups')) {
    $view = "error";
    return;
}
if (!empty($_REQUEST['gid'])) {
    $newGroup = dbFetchGroup($_REQUEST['gid']);
} else {
    $newGroup = array("Id" => "", "Name" => "New Group", "MonitorIds" => "");
}
xhtmlHeaders(__FILE__, translate('Group') . " - " . $newGroup['Name']);
?>
<body>
  <div id="page">
    <div id="header">
      <h2><?php 
echo translate('Group');
?>
 - <?php 
echo $newGroup['Name'];
?>
</h2>
    </div>
    <div id="content">
      <form name="groupForm" method="post" action="<?php 
echo $_SERVER['PHP_SELF'];
コード例 #19
0
ファイル: error.php プロジェクト: rodoviario/ZoneMinder
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
xhtmlHeaders(__FILE__, translate('Error'));
?>
<body>
  <div id="page">
    <div id="header">
      <h1>ZoneMinder <?php 
echo translate('Error');
?>
</h1>
    </div>
    <div id="content">
      <p><strong><?php 
echo translate('YouNoPerms');
?>
</p>
      <p><?php 
コード例 #20
0
ファイル: cycle.php プロジェクト: moeiscool/ZoneMinder-video
$widthScale = $montageWidth * SCALE_BASE / $monitor['Width'];
$heightScale = $montageHeight * SCALE_BASE / $monitor['Height'];
$scale = (int) ($widthScale < $heightScale ? $widthScale : $heightScale);
if (false && (ZM_WEB_STREAM_METHOD == 'mpeg' && ZM_MPEG_LIVE_FORMAT)) {
    $streamMode = "mpeg";
    $streamSrc = getStreamSrc(array("mode=" . $streamMode, "monitor=" . $monitor['Id'], "scale=" . $scale, "bitrate=" . ZM_WEB_VIDEO_BITRATE, "maxfps=" . ZM_WEB_VIDEO_MAXFPS, "format=" . ZM_MPEG_LIVE_FORMAT));
} elseif ($mode == 'stream' && canStream()) {
    $streamMode = "jpeg";
    $streamSrc = getStreamSrc(array("mode=" . $streamMode, "monitor=" . $monitor['Id'], "scale=" . $scale, "maxfps=" . ZM_WEB_VIDEO_MAXFPS));
} else {
    $streamMode = "single";
    $streamSrc = getStreamSrc(array("mode=" . $streamMode, "monitor=" . $monitor['Id'], "scale=" . $scale));
}
noCacheHeaders();
$focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['CycleWatch']);
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
<?php 
if ($mode == "stream") {
    ?>
        <a href="?view=<?php 
    echo $view;
    ?>
&amp;mode=still&amp;group=<?php 
    echo $group;
    ?>
&amp;mid=<?php 
コード例 #21
0
        $sourceDesc = htmlspecialchars(serialize($camera['monitor']));
        $sourceString = $camera['model'] . ' @ ' . $host;
        if (isset($monitors[$ip])) {
            $monitor = $monitors[$ip];
            $sourceString .= " (" . $monitor['Name'] . ")";
        } else {
            $sourceString .= " - " . $SLANG['Available'];
        }
        $cameras[$sourceDesc] = $sourceString;
    }
}
if (count($cameras) <= 0) {
    $cameras[0] = $SLANG['NoDetectedCameras'];
}
$focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['MonitorProbe']);
?>
<body>
  <div id="page">
    <div id="header">
      <h2><?php 
echo $SLANG['MonitorProbe'];
?>
</h2>
    </div>
    <div id="content">
      <form name="contentForm" id="contentForm" method="post" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
        <input type="hidden" name="view" value="none"/>
コード例 #22
0
ファイル: login.php プロジェクト: moeiscool/ZoneMinder-video
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
xhtmlHeaders(__FILE__, $SLANG['Login']);
?>
<body>
  <div id="page">
    <div id="header">
      <h1>ZoneMinder <?php 
echo $SLANG['Login'];
?>
</h1>
    </div>
    <div id="content">
      <form method="post" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
        <div class="hidden">
コード例 #23
0
ファイル: state.php プロジェクト: ralfoide/ZoneMinder
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
if (!canEdit('System')) {
    $view = "error";
    return;
}
$running = daemonCheck();
$states = dbFetchAll("select * from States");
$focusWindow = true;
xhtmlHeaders(__FILE__, translate('RunState'));
?>
<body>
  <div id="page">
    <div id="header">
      <h2><?php 
echo translate('RunState');
?>
</h2>
    </div>
    <div id="content">
      <form name="contentForm" id="contentForm" method="get" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
<?php 
コード例 #24
0
ファイル: status.php プロジェクト: mondychan/modern
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
if (!canView('System')) {
    $view = "error";
    return;
}
$zmuCommand = getZmuCommand(" --list");
$result = exec(escapeshellcmd($zmuCommand), $output);
$refresh = ZM_WEB_REFRESH_STATUS;
$url = '?view=' . $view;
noCacheHeaders();
xhtmlHeaders(__FILE__, $SLANG['Status']);
?>
<body>
  <div id="page">
    <div id="header">
      <h2><?php 
echo $SLANG['Status'];
?>
</h2>
    </div>
    <div id="content">
      <table id="contentTable" class="major" cellspacing="0">
<?php 
if ($row = array_shift($output)) {
    ?>
        <thead>
コード例 #25
0
ファイル: log.php プロジェクト: rodoviario/ZoneMinder
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
if (!canView('System')) {
    $view = "error";
    return;
}
$focusWindow = true;
xhtmlHeaders(__FILE__, translate('SystemLog'));
?>
<body>
  <div id="page">
    <div id="header">
      <div id="headerButtons">
          <input type="button" value="<?php 
echo translate('More');
?>
" onclick="expandLog()"/>
          <input type="button" value="<?php 
echo translate('Clear');
?>
" onclick="clearLog()"/>
          <input type="button" value="<?php 
echo translate('Refresh');
コード例 #26
0
ファイル: groups.php プロジェクト: ralfoide/ZoneMinder
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
$sql = "select * from Groups order by Name";
$groups = array();
$selected = false;
foreach (dbFetchAll($sql) as $row) {
    if (!empty($_COOKIE['zmGroup']) && $row['Id'] == $_COOKIE['zmGroup']) {
        $row['selected'] = true;
        $selected = true;
    } else {
        $row['selected'] = false;
    }
    $groups[] = $row;
}
xhtmlHeaders(__FILE__, translate('Groups'));
?>
<body>
  <div id="page">
    <div id="header">
      <h2><?php 
echo translate('Groups');
?>
</h2>
    </div>
    <div id="content">
      <form name="groupsForm" method="get" action="<?php 
echo $_SERVER['PHP_SELF'];
?>
">
        <input type="hidden" name="view" value="none"/>
コード例 #27
0
ファイル: donate.php プロジェクト: moeiscool/ZoneMinder-video
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
if (!canEdit('System')) {
    $view = "error";
    return;
}
$options = array("go" => $SLANG['DonateYes'], "hour" => $SLANG['DonateRemindHour'], "day" => $SLANG['DonateRemindDay'], "week" => $SLANG['DonateRemindWeek'], "month" => $SLANG['DonateRemindMonth'], "never" => $SLANG['DonateRemindNever'], "already" => $SLANG['DonateAlready']);
$focusWindow = true;
xhtmlHeaders(__FILE__, $SLANG['Donate']);
?>
<body>
  <div id="page">
    <div id="header">
      <h2><?php 
echo $SLANG['Donate'];
?>
</h2>
      <h1>ZoneMinder - <?php 
echo $SLANG['Donate'];
?>
</h1>
    </div>
    <div id="content">
      <form name="contentForm" id="contentForm" method="post" action="<?php 
コード例 #28
0
ファイル: error.php プロジェクト: ardiqghenatya/koptel2
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
xhtmlHeaders(__FILE__, $SLANG['Error']);
?>
<body>
  <div id="page">
    <div id="header">
      <h1>ZoneMinder <?php 
echo $SLANG['Error'];
?>
</h1>
    </div>
    <div id="content">
      <p><strong><?php 
echo $SLANG['YouNoPerms'];
?>
</p>
      <p><?php 
コード例 #29
0
ファイル: login.php プロジェクト: rodoviario/ZoneMinder
//
// This program is free software; you can redistribute it and/or
// modify it under the terms of the GNU General Public License
// as published by the Free Software Foundation; either version 2
// of the License, or (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111-1307, USA.
//
xhtmlHeaders(__FILE__, translate('Login'));
?>
<!-- PP: Add recaptcha script if enabled -->
<?php 
if (ZM_OPT_USE_GOOG_RECAPTCHA) {
    echo "<head> <script src='https://www.google.com/recaptcha/api.js'></script> </head>";
}
?>
<body>
  <div id="page">
    <div id="header">
      <h1>ZoneMinder <?php 
echo translate('Login');
?>
</h1>
    </div>
コード例 #30
0
ファイル: monitor.php プロジェクト: jbudding/ZoneMinder
if (ZM_HAS_V4L2) {
    $v4l2DeviceFormats = array("PAL" => 0xff, "NTSC" => 0xb000, "PAL B" => 0x1, "PAL B1" => 0x2, "PAL G" => 0x4, "PAL H" => 0x8, "PAL I" => 0x10, "PAL D" => 0x20, "PAL D1" => 0x40, "PAL K" => 0x80, "PAL M" => 0x100, "PAL N" => 0x200, "PAL Nc" => 0x400, "PAL 60" => 0x800, "NTSC M" => 0x1000, "NTSC M JP" => 0x2000, "NTSC 443" => 0x4000, "NTSC M KR" => 0x8000, "SECAM B" => 0x10000, "SECAM D" => 0x20000, "SECAM G" => 0x40000, "SECAM H" => 0x80000, "SECAM K" => 0x100000, "SECAM K1" => 0x200000, "SECAM L" => 0x400000, "SECAM LC" => 0x800000, "ATSC 8 VSB" => 0x1000000, "ATSC 16 VSB" => 0x2000000);
    $v4l2MaxChannels = 31;
    $v4l2DeviceChannels = array();
    for ($i = 0; $i <= $v4l2MaxChannels; $i++) {
        $v4l2DeviceChannels["{$i}"] = $i;
    }
    $v4l2LocalPalettes = array("Auto" => 0, translate('Grey') => fourcc('G', 'R', 'E', 'Y'), "BGR32" => fourcc('B', 'G', 'R', '4'), "RGB32" => fourcc('R', 'G', 'B', '4'), "BGR24" => fourcc('B', 'G', 'R', '3'), "RGB24" => fourcc('R', 'G', 'B', '3'), "*YUYV" => fourcc('Y', 'U', 'Y', 'V'), "*JPEG" => fourcc('J', 'P', 'E', 'G'), "*MJPEG" => fourcc('M', 'J', 'P', 'G'), "*RGB444" => fourcc('R', '4', '4', '4'), "*RGB555" => fourcc('R', 'G', 'B', 'O'), "*RGB565" => fourcc('R', 'G', 'B', 'P'), "*UYVY" => fourcc('U', 'Y', 'V', 'Y'), "*YUV422P" => fourcc('4', '2', '2', 'P'), "*YUV411P" => fourcc('4', '1', '1', 'P'), "*YUV444" => fourcc('Y', '4', '4', '4'), "*YUV410" => fourcc('Y', 'U', 'V', '9'), "*YUV420" => fourcc('Y', 'U', '1', '2'));
}
$Colours = array(translate('8BitGrey') => 1, translate('24BitColour') => 3, translate('32BitColour') => 4);
$orientations = array(translate('Normal') => '0', translate('RotateRight') => '90', translate('Inverted') => '180', translate('RotateLeft') => '270', translate('FlippedHori') => 'hori', translate('FlippedVert') => 'vert');
$deinterlaceopts = array("Disabled" => 0x0, "Four field motion adaptive - Soft" => 0x1e04, "Four field motion adaptive - Medium" => 0x1404, "Four field motion adaptive - Hard" => 0xa04, "Discard" => 0x1, "Linear" => 0x2, "Blend" => 0x3, "Blend (25%)" => 0x205);
$deinterlaceopts_v4l2 = array("Disabled" => 0x0, "Four field motion adaptive - Soft" => 0x1e04, "Four field motion adaptive - Medium" => 0x1404, "Four field motion adaptive - Hard" => 0xa04, "Discard" => 0x1, "Linear" => 0x2, "Blend" => 0x3, "Blend (25%)" => 0x205, "V4L2: Capture top field only" => 0x2000000, "V4L2: Capture bottom field only" => 0x3000000, "V4L2: Alternate fields (Bob)" => 0x7000000, "V4L2: Progressive" => 0x1000000, "V4L2: Interlaced" => 0x4000000);
$fastblendopts = array("No blending" => 0, "1.5625%" => 1, "3.125%" => 3, "6.25% (Indoor)" => 6, "12.5% (Outdoor)" => 12, "25%" => 25, "50%" => 50);
$fastblendopts_alarm = array("No blending (Alarm lasts forever)" => 0, "1.5625%" => 1, "3.125%" => 3, "6.25%" => 6, "12.5%" => 12, "25%" => 25, "50% (Alarm lasts a moment)" => 50);
xhtmlHeaders(__FILE__, translate('Monitor') . " - " . validHtmlStr($monitor['Name']));
?>
<body>
  <div id="page">
    <div id="header">
<?php 
if (canEdit('Monitors')) {
    ?>
      <div id="headerButtons">
        <a href="#" onclick="createPopup( '?view=monitorprobe&amp;mid=<?php 
    echo $monitor['Id'];
    ?>
', 'zmMonitorProbe<?php 
    echo $monitor['Id'];
    ?>
', 'monitorprobe' ); return( false );"><?php