_, 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 phpLDAPadmin * @author The phpLDAPadmin development team */ /** */ require './common.php'; no_expire_header(); # This allows us to display large sub-trees without running out of time. @set_time_limit( 0 ); $recently_timed_out_servers = array(); if (isset($_SESSION['activity']['rightframe_server_id'])) $rightframe_server_id = $_SESSION['activity']['rightframe_server_id']; $rightframerefresh = false; foreach ($ldapservers->GetServerList() as $server_id) { $ldapserver = $ldapservers->Instance($server_id); # Test to see if we should log out the user due to the timeout. if ($ldapserver->haveAuthInfo() && $ldapserver->auth_type != 'config') { /* If time out value has been reached: - log out user - put $server_id in array of recently timed out servers */ if (session_timed_out($ldapserver)) { array_push($recently_timed_out_servers, $server_id); # If $ldapserver->server_id equal $rightframe_server_id load timeout page on right frame if ($ldapserver->server_id == $rightframe_server_id) $rightframerefresh = true; /* Otherwise calculate a new refresh value. If the timeout value is less than the previous $meta_refresh_variable value set $meta_refresh_variable to $ldapserver->session_timeout */ } else $meta_refresh_variable = $ldapserver->session_timeout*60; } } include './header.php'; echo ''; if ($rightframerefresh) { ?> phpLDAPadmin - %s',pla_version()); echo "\n\n"; echo ''; echo ''; printf('',_('Home')); printf('',_('Home')); printf('',_('Purge caches')); printf('',_('Purge all cached data in phpLDAPadmin, including server schemas.'),_('Purge caches')); echo ''; if (! $config->GetValue('appearance','hide_configuration_management')) { printf('',_('light')); printf('',get_href('add_rfe'),_('Request feature')); printf('',_('bug')); printf('',get_href('add_bug'),_('Report a bug')); echo ''; printf('',_('Donate')); printf('',get_href('donate'),_('Donate')); } printf('',_('Help')); printf('',_('Help')); echo '
%s%s%s%s
%s%s%s%s
%s%s%s%s
'; echo "\n\n"; # We want the std tree function as a fallback require LIBDIR.'tree_functions.php'; # Are we going to use the PLM tree? if ($config->GetValue('appearance','tree_plm')) { require JSDIR.'phplayersmenu/lib/PHPLIB.php'; require JSDIR.'phplayersmenu/lib/layersmenu-common.inc.php'; require JSDIR.'phplayersmenu/lib/treemenu.inc.php'; } # For each of the configured servers foreach( $ldapservers->GetServerList() as $server_id ) { $ldapserver = $ldapservers->Instance($server_id); if ($ldapserver->isVisible()) { $filename = get_custom_file($server_id,'tree_functions.php',LIBDIR); require_once($filename); call_custom_function($server_id,'draw_server_tree'); } } echo ''; ?>