phpldapadmin/htdocs/refresh.php

27 lines
649 B
PHP
Raw Normal View History

2009-06-30 09:22:30 +00:00
<?php
2009-06-30 10:26:08 +00:00
// $Header: /cvsroot/phpldapadmin/phpldapadmin/htdocs/refresh.php,v 1.15.4.2 2005/12/16 11:29:35 wurley Exp $
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
* Variables that come in via common.php
2009-06-30 08:05:37 +00:00
* - server_id
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 10:26:08 +00:00
if (! isset($ldapserver))
header('Location: tree.php');
2009-06-30 08:05:37 +00:00
2009-06-30 10:26:08 +00:00
unset($_SESSION['cache'][$ldapserver->server_id]['tree']);
pla_session_close();
2009-06-30 08:05:37 +00:00
2009-06-30 09:29:51 +00:00
header(sprintf('Location: tree.php#%s',$ldapserver->server_id));
2009-06-30 08:05:37 +00:00
?>