2009-06-30 09:22:30 +00:00
|
|
|
<?php
|
2009-06-30 10:46:00 +00:00
|
|
|
// $Header: /cvsroot/phpldapadmin/phpldapadmin/htdocs/refresh.php,v 1.18 2007/12/15 07:50:30 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 10:46:00 +00:00
|
|
|
if (! $_SESSION['plaConfig']->isCommandAvailable('server_refresh'))
|
|
|
|
pla_error(sprintf('%s%s %s',_('This operation is not permitted by the configuration'),_(':'),_('refresh server')));
|
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
|
|
|
?>
|