phpldapadmin/htdocs/expand.php

28 lines
674 B
PHP
Raw Normal View History

2009-06-30 08:09:20 +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', expanding 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 collapse.php
*
2009-06-30 09:29:51 +00:00
* @package phpLDAPadmin
* @subpackage Tree
2009-06-30 09:29:51 +00:00
* @see collapse.php
*/
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 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->open();
set_cached_item($app['server']->getIndex(),$tree,'tree','null');
2009-06-30 08:07:14 +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:05:37 +00:00
?>