phpldapadmin/htdocs/refresh.php

24 lines
726 B
PHP
Raw Normal View History

2009-06-30 09:22:30 +00:00
<?php
2009-06-30 11:52:55 +00:00
// $Header: /cvsroot/phpldapadmin/phpldapadmin/htdocs/refresh.php,v 1.18.2.2 2008/12/12 12:20:22 wurley Exp $
2009-06-30 10:26:08 +00:00
2009-06-30 09:29:51 +00:00
/**
2009-06-30 08:05:37 +00:00
* This script alters the session variable 'tree', by re-querying
* the LDAP server to grab the contents of every expanded container.
*
2009-06-30 09:29:51 +00:00
* @package phpLDAPadmin
*/
/**
2009-06-30 10:26:08 +00:00
* @todo: Change this to just refresh all the open entries.
2009-06-30 08:05:37 +00:00
*/
2009-06-30 09:22:30 +00:00
require './common.php';
2009-06-30 08:05:37 +00:00
2009-06-30 11:46:44 +00:00
if (! $_SESSION[APPCONFIG]->isCommandAvailable('server_refresh'))
2009-06-30 11:52:55 +00:00
error(sprintf('%s%s %s',_('This operation is not permitted by the configuration'),_(':'),_('refresh server')),'error','index.php');
2009-06-30 08:05:37 +00:00
2009-06-30 10:26:08 +00:00
unset($_SESSION['cache'][$ldapserver->server_id]['tree']);
2009-06-30 08:05:37 +00:00
2009-06-30 10:46:00 +00:00
header(sprintf('Location: cmd.php?server_id=%s',$ldapserver->server_id));
die();
2009-06-30 08:05:37 +00:00
?>