zoneminder/web/skins/classic/views/logout.php

52 lines
1.8 KiB
PHP
Raw Normal View History

<?php
//
// ZoneMinder web logout view file, $Date$, $Revision$
// Copyright (C) 2001-2008 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
//
$focusWindow = true;
2015-05-10 21:10:30 +08:00
xhtmlHeaders(__FILE__, translate('Logout') );
?>
<body>
<div id="page">
<div id="header">
2015-05-10 21:10:30 +08:00
<h1>ZoneMinder <?php echo translate('Logout') ?></h1>
</div>
<div id="content">
<form name="contentForm" id="contentForm" method="post" action="<?php echo $_SERVER['PHP_SELF'] ?>">
<input type="hidden" name="action" value="logout"/>
<input type="hidden" name="view" value="login"/>
<p><?php echo sprintf( $CLANG['CurrentLogin'], $user['Username'] ) ?></p>
<p>
2015-05-10 21:10:30 +08:00
<input type="submit" value="<?php echo translate('Logout') ?>"/>
<?php
if ( ZM_USER_SELF_EDIT )
{
?>
2015-05-10 21:10:30 +08:00
<input type="button" value="<?php echo translate('Config') ?>" onclick="createPopup( '?view=user&amp;uid=<?php echo $user['Id'] ?>', 'zmUser', 'user' );"/>
<?php
}
?>
2015-05-10 21:10:30 +08:00
<input type="button" value="<?php echo translate('Cancel') ?>" onclick="closeWindow();"/>
</p>
</form>
</div>
</div>
</body>
</html>