phpldapadmin/htdocs/timeout.php

42 lines
1.0 KiB
PHP
Raw Normal View History

2009-06-30 09:29:51 +00:00
<?php
2009-06-30 10:46:41 +00:00
// $Header: /cvsroot/phpldapadmin/phpldapadmin/htdocs/timeout.php,v 1.5.2.1 2007/12/21 12:11:55 wurley Exp $
2009-06-30 09:29:51 +00:00
/**
* Time out page to be displayed on the right frame
*
* Variables that come in as GET vars:
* - server_id
*
* @package phpLDAPadmin
*/
/**
*/
require './common.php';
2009-06-30 10:46:00 +00:00
if (! isset($ldapserver)) {
2009-06-30 09:29:51 +00:00
header("Location: index.php");
2009-06-30 10:46:00 +00:00
die();
}
2009-06-30 09:29:51 +00:00
include './header.php';
# If $session_timeout not defined, use ( session_cache_expire() - 1 )
$session_timeout = $ldapserver->session_timeout ? $ldapserver->session_timeout : session_cache_expire()-1;
?>
<h3 class="title"><?php echo $ldapserver->name; ?></h3>
<br />
<br />
<center>
2009-06-30 10:26:08 +00:00
<b><?php printf('%s %s %s',_('Your Session timed out after'),$session_timeout,_('min. of inactivity. You have been automatically logged out.')); ?></b>
2009-06-30 09:29:51 +00:00
<br />
<br />
2009-06-30 10:26:08 +00:00
<?php echo _('To log back in please click on the following link:'); ?><br />
2009-06-30 10:46:00 +00:00
<a href="cmd.php?cmd=login_form&server_id=<?php echo $ldapserver->server_id; ?>"><?php echo _('Login...'); ?></a>
2009-06-30 09:29:51 +00:00
</center>
</body>
</html>