phpldapadmin/htdocs/collapse.php

30 lines
685 B
PHP
Raw Normal View History

2009-06-30 09:22:30 +00:00
<?php
// $Header$
2009-06-30 08:05:37 +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', collapsing it
2009-06-30 09:29:51 +00:00
* at the dn specified in the query string.
2009-06-30 08:05:37 +00:00
*
* Note: this script is equal and opposite to expand.php
*
2009-06-30 09:29:51 +00:00
* @package phpLDAPadmin
* @subpackage Tree
2009-06-30 10:46:00 +00:00
* @see expand.php
2009-06-30 09:29:51 +00:00
*/
2009-06-30 09:29:51 +00:00
/**
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
$dn = get_request('dn','GET',true);
$tree = get_cached_item($app['server']->getIndex(),'tree');
2009-06-30 10:46:00 +00:00
$entry = $tree->getEntry($dn);
$entry->close();
set_cached_item($app['server']->getIndex(),'tree','null',$tree);
2009-06-30 08:05:37 +00:00
2009-06-30 10:46:00 +00:00
header(sprintf('Location:index.php?server_id=%s&junk=%s#%s%s',
$app['server']->getIndex(),random_junk(),htmlid($app['server']->getIndex(),$dn),app_session_param()));
2009-06-30 10:46:00 +00:00
die();
2009-06-30 08:07:14 +00:00
?>