PHP Classes

File: htdocs/expand.php

Recommend this page to a friend!
  Classes of ask sa sa   PHP LDAP admin   htdocs/expand.php   Download  
File: htdocs/expand.php
Role: Example script
Content type: text/plain
Description: Example script
Class: PHP LDAP admin
Perform operations to administer a LDAP server
Author: By
Last change:
Date: 1 year ago
Size: 674 bytes
 

Contents

Class file image Download
<?php
/**
 * This script alters the session variable 'tree', expanding it
 * at the dn specified in the query string.
 *
 * Note: this script is equal and opposite to collapse.php
 *
 * @package phpLDAPadmin
 * @subpackage Tree
 * @see collapse.php
 */

/**
 */

require './common.php';

$dn = get_request('dn','GET',true);
$tree = get_cached_item($app['server']->getIndex(),'tree');
$entry = $tree->getEntry($dn);
$entry->open();
set_cached_item($app['server']->getIndex(),'tree','null',$tree);

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()));
die();
?>