, so if I wanted to scroll to * dc=example,dc=com for server 3, the URL would be: * tree.php#3_dc%3Dexample%2Cdc%3Dcom * * @package lists * @subpackage tree * @author David Smith * @author Roland Gruber */ /** tree functions */ include_once('../../lib/tree.inc'); /** access to configuration */ include_once('../../lib/config.inc'); /** LDAP functions */ include_once('../../lib/ldap.inc'); // start session session_save_path("../../sess"); @session_start(); setlanguage(); // This allows us to display large sub-trees without running out of time. @set_time_limit( 0 ); // do we not have a tree and tree icons yet? Build a new one. initialize_session_tree(); // get the tree and tree icons. $tree = $_SESSION['tree']; $tree_icons = $_SESSION['tree_icons']; echo $_SESSION['header']; echo "LDAP Account Manager\n"; echo "\n"; echo "\n"; ?>
"; print_r( $tree ); ?> '; for( $i=0; $i<=$level; $i++ ) { echo '' . "\n"; } // is this node expanded? (deciding whether to draw "+" or "-") if( isset( $tree[$dn] ) ) { ?> - + $limit ) $child_count = $limit . '+'; } ?> img () 10 ) draw_create_link( $rdn, $level, $encoded_dn ); foreach( $tree[$dn] as $dn ) draw_tree_html( $dn, $level+1 ); // Always draw the "create new" link at the bottom of the listing draw_create_link( $rdn, $level, $encoded_dn ); } } function draw_create_link( $rdn, $level, $encoded_dn ) { // print the "Create New object" link. $create_html = ""; $create_href = "create_form.php?container=$encoded_dn"; $create_html .= ''; for( $i=0; $i<=$level; $i++ ) { $create_html .= ''; } $create_html .= ''; $create_html .= '' . _('Create new entry') . ''; $create_html .= '' . _('Create new entry') . ''; $create_html .= ''; echo $create_html; } ?>