2004-01-27 18:17:23 +08:00
|
|
|
<?php
|
|
|
|
//
|
|
|
|
// ZoneMinder web version view file, $Date$, $Revision$
|
|
|
|
// Copyright (C) 2003 Philip Coombes
|
|
|
|
//
|
|
|
|
// 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.
|
|
|
|
//
|
|
|
|
|
|
|
|
if ( !canEdit( 'System' ) )
|
|
|
|
{
|
|
|
|
$view = "error";
|
|
|
|
return;
|
|
|
|
}
|
|
|
|
$options = array(
|
|
|
|
"go" => $zmSlangGoToZoneMinder
|
|
|
|
);
|
|
|
|
|
|
|
|
if ( ZM_DYN_CURR_VERSION != ZM_DYN_LAST_VERSION )
|
|
|
|
{
|
|
|
|
$options = array_merge( $options, array(
|
|
|
|
"ignore" => $zmSlangVersionIgnore,
|
|
|
|
"hour" => $zmSlangVersionRemindHour,
|
|
|
|
"day" => $zmSlangVersionRemindDay,
|
|
|
|
"week" => $zmSlangVersionRemindWeek,
|
|
|
|
"never" => $zmSlangVersionRemindNever
|
|
|
|
) );
|
|
|
|
}
|
|
|
|
?>
|
2004-12-29 03:22:23 +08:00
|
|
|
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
|
2004-01-27 18:17:23 +08:00
|
|
|
<html>
|
|
|
|
<head>
|
|
|
|
<title>ZM - <?= $zmSlangVersion ?></title>
|
2004-12-29 02:20:11 +08:00
|
|
|
<link rel="stylesheet" href="zm_html_styles.css" type="text/css">
|
2004-12-29 03:29:43 +08:00
|
|
|
<script type="text/javascript">
|
2004-01-27 18:17:23 +08:00
|
|
|
window.focus();
|
|
|
|
function zmWindow()
|
|
|
|
{
|
|
|
|
var winName = window.open( 'http://www.zoneminder.com', 'ZoneMinder' );
|
|
|
|
winName.focus();
|
|
|
|
}
|
|
|
|
function closeWindow()
|
|
|
|
{
|
|
|
|
window.close();
|
|
|
|
}
|
|
|
|
function submitForm()
|
|
|
|
{
|
|
|
|
with( document.version_form )
|
|
|
|
{
|
|
|
|
if ( option.selectedIndex == 0 )
|
|
|
|
{
|
|
|
|
view.value = '<?= $view ?>';
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
view.value = 'none';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
<?php
|
|
|
|
if ( $action == "version" && $option == "go" )
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
zmWindow();
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</script>
|
|
|
|
</head>
|
|
|
|
<body>
|
2004-02-01 21:05:26 +08:00
|
|
|
<table border="0" cellspacing="0" cellpadding="2" width="100%">
|
2004-01-27 18:17:23 +08:00
|
|
|
<tr>
|
|
|
|
<td align="center" class="head">ZoneMinder - <?= $zmSlangVersion ?></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<?php
|
|
|
|
if ( ZM_DYN_LAST_VERSION == ZM_VERSION )
|
|
|
|
{
|
|
|
|
?>
|
2004-02-01 21:05:26 +08:00
|
|
|
<table border="0" cellspacing="0" cellpadding="6" width="100%">
|
|
|
|
<tr>
|
|
|
|
<td align="center" class="text"><?= sprintf( $zmClangRunningRecentVer, ZM_VERSION ) ?></td>
|
|
|
|
</tr>
|
2004-01-27 18:17:23 +08:00
|
|
|
<tr>
|
2004-02-01 21:05:26 +08:00
|
|
|
<td align="center" class="text"><?= $zmSlangUpdateNotNecessary ?></td>
|
2004-01-27 18:17:23 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
|
|
|
<td align="center" class="text"> </td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
2004-02-01 21:05:26 +08:00
|
|
|
<table border="0" cellspacing="0" cellpadding="4" width="100%">
|
2004-01-27 18:17:23 +08:00
|
|
|
<tr>
|
|
|
|
<td width="75%" align="center"><input type="button" value="<?= $zmSlangGoToZoneMinder ?>" class="form" onClick="zmWindow()"></td>
|
|
|
|
<td width="25%" align="center"><input type="button" value="<?= $zmSlangClose ?>" class="form" onClick="closeWindow()"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
else
|
|
|
|
{
|
|
|
|
?>
|
|
|
|
<table border="0" cellspacing="0" cellpadding="2" width="100%">
|
|
|
|
<form name="version_form" method="post" action="<?= $PHP_SELF ?>">
|
|
|
|
<input type="hidden" name="view" value="none">
|
|
|
|
<input type="hidden" name="action" value="version">
|
2004-02-01 21:05:26 +08:00
|
|
|
<table border="0" cellspacing="0" cellpadding="6" width="100%">
|
|
|
|
<tr>
|
|
|
|
<td align="center" class="text"><?= $zmSlangUpdateAvailable ?></td>
|
|
|
|
</tr>
|
2004-01-27 18:17:23 +08:00
|
|
|
<tr>
|
2004-02-01 21:05:26 +08:00
|
|
|
<td align="center" class="text"><?= sprintf( $zmClangLatestRelease, ZM_DYN_LAST_VERSION, ZM_VERSION ) ?></td>
|
2004-01-27 18:17:23 +08:00
|
|
|
</tr>
|
|
|
|
<tr>
|
2004-02-01 21:05:26 +08:00
|
|
|
<td align="center" class="text"><?= buildSelect( "option", $options ); ?></td>
|
2004-01-27 18:17:23 +08:00
|
|
|
</tr>
|
|
|
|
</table>
|
2004-02-01 21:05:26 +08:00
|
|
|
<table border="0" cellspacing="0" cellpadding="4" width="100%">
|
2004-01-27 18:17:23 +08:00
|
|
|
<tr>
|
|
|
|
<td width="50%" align="center"> </td>
|
|
|
|
<td width="25%" align="center"><input type="submit" value="<?= $zmSlangApply ?>" class="form" onClick="submitForm()"></td>
|
|
|
|
<td width="25%" align="center"><input type="button" value="<?= $zmSlangClose ?>" class="form" onClick="closeWindow()"></td>
|
|
|
|
</tr>
|
|
|
|
</table>
|
|
|
|
</form>
|
|
|
|
<?php
|
|
|
|
}
|
|
|
|
?>
|
|
|
|
</body>
|
|
|
|
</html>
|