• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    迪恩网络公众号

PHP xhtmlHeaders函数代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了PHP中xhtmlHeaders函数的典型用法代码示例。如果您正苦于以下问题:PHP xhtmlHeaders函数的具体用法?PHP xhtmlHeaders怎么用?PHP xhtmlHeaders使用的例子?那么恭喜您, 这里精选的函数代码示例或许可以为您提供帮助。



在下文中一共展示了xhtmlHeaders函数的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的PHP代码示例。

示例1: foreach

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">
开发者ID:bill-mcgonigle,项目名称:ZoneMinder,代码行数:31,代码来源:montage.php


示例2: ucfirst

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"/>
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:filtersave.php


示例3: getPagination

    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;
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:events.php


示例4: htmlspecialchars

        $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"/>
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:monitorprobe.php


示例5: validInt

$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'];
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:frame.php


示例6: daemonCheck

// 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 
开发者ID:moeiscool,项目名称:ZoneMinder-video,代码行数:31,代码来源:state.php


示例7: xhtmlHeaders

<?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>
	
开发者ID:mondychan,项目名称:modern,代码行数:30,代码来源:events.php


示例8: closedir

                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 
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:video.php


示例9: array

$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>
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:filter.php


示例10: dbFetchAll

// 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>
开发者ID:mondychan,项目名称:modern,代码行数:31,代码来源:controlcaps.php


示例11: ucfirst

$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);
开发者ID:kunkku,项目名称:ZoneMinder,代码行数:31,代码来源:console.php


示例12: ob_get_clean

          </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'];
开发者ID:moeiscool,项目名称:ZoneMinder-video,代码行数:31,代码来源:timeline.php


示例13: xhtmlHeaders

// 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" />
开发者ID:mondychan,项目名称:modern,代码行数:31,代码来源:logout.php


示例14: array

// 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);
开发者ID:moeiscool,项目名称:ZoneMinder-video,代码行数:31,代码来源:version.php


示例15: dbEscape

// 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>
开发者ID:ardiqghenatya,项目名称:koptel2,代码行数:31,代码来源:frames.php


示例16: generateConnKey

    }
    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 
}
?>
开发者ID:moeiscool,项目名称:ZoneMinder-video,代码行数:31,代码来源:montage.php


示例17: dbFetchOne

// 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>
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:eventdetails.php


示例18: dbFetchGroup

// 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'];
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:group.php


示例19: xhtmlHeaders

//
// 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 
开发者ID:rodoviario,项目名称:ZoneMinder,代码行数:31,代码来源:error.php


示例20: getStreamSrc

$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 
开发者ID:moeiscool,项目名称:ZoneMinder-video,代码行数:31,代码来源:cycle.php



注:本文中的xhtmlHeaders函数示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
PHP xhtml_foot函数代码示例发布时间:2022-05-23
下一篇:
PHP xhprof_parse_parent_child函数代码示例发布时间:2022-05-23
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap