phpldapadmin/htdocs/collapse.php

28 lines
672 B
PHP
Raw Permalink Normal View History

2009-06-30 09:22:30 +00:00
<?php
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
?>