phpldapadmin/htdocs/refresh.php
2009-06-30 20:46:00 +10:00

24 lines
708 B
PHP

<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/htdocs/refresh.php,v 1.18 2007/12/15 07:50:30 wurley Exp $
/**
* This script alters the session variable 'tree', by re-querying
* the LDAP server to grab the contents of every expanded container.
*
* @package phpLDAPadmin
*/
/**
* @todo: Change this to just refresh all the open entries.
*/
require './common.php';
if (! $_SESSION['plaConfig']->isCommandAvailable('server_refresh'))
pla_error(sprintf('%s%s %s',_('This operation is not permitted by the configuration'),_(':'),_('refresh server')));
unset($_SESSION['cache'][$ldapserver->server_id]['tree']);
header(sprintf('Location: cmd.php?server_id=%s',$ldapserver->server_id));
die();
?>