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

27 lines
645 B
PHP

<?php
// $Header: /cvsroot/phpldapadmin/phpldapadmin/htdocs/refresh.php,v 1.17 2005/12/17 00:00:11 wurley Exp $
/**
* This script alters the session variable 'tree', by re-querying
* the LDAP server to grab the contents of every expanded container.
*
* Variables that come in via common.php
* - server_id
*
* @package phpLDAPadmin
*/
/**
* @todo: Change this to just refresh all the open entries.
*/
require './common.php';
if (! isset($ldapserver))
header('Location: tree.php');
unset($_SESSION['cache'][$ldapserver->server_id]['tree']);
pla_session_close();
header(sprintf('Location: tree.php#%s',$ldapserver->server_id));
?>