phpldapadmin/htdocs/refresh.php

27 lines
645 B
PHP
Raw Normal View History

2009-06-30 19:22:30 +10:00
<?php
2009-06-30 20:40:03 +10:00
// $Header: /cvsroot/phpldapadmin/phpldapadmin/htdocs/refresh.php,v 1.17 2005/12/17 00:00:11 wurley Exp $
2009-06-30 20:26:08 +10:00
2009-06-30 19:29:51 +10:00
/**
2009-06-30 18:05:37 +10: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 19:29:51 +10:00
* Variables that come in via common.php
2009-06-30 18:05:37 +10:00
* - server_id
2009-06-30 19:29:51 +10:00
*
* @package phpLDAPadmin
*/
/**
2009-06-30 20:26:08 +10:00
* @todo: Change this to just refresh all the open entries.
2009-06-30 18:05:37 +10:00
*/
2009-06-30 19:22:30 +10:00
require './common.php';
2009-06-30 18:05:37 +10:00
2009-06-30 20:26:08 +10:00
if (! isset($ldapserver))
header('Location: tree.php');
2009-06-30 18:05:37 +10:00
2009-06-30 20:26:08 +10:00
unset($_SESSION['cache'][$ldapserver->server_id]['tree']);
pla_session_close();
2009-06-30 18:05:37 +10:00
2009-06-30 19:29:51 +10:00
header(sprintf('Location: tree.php#%s',$ldapserver->server_id));
2009-06-30 18:05:37 +10:00
?>