"; //var_dump( $contents ); //exit; usort( $contents, 'pla_compare_dns' ); $tree[$server_id][$dn] = $contents; foreach( $contents as $dn ) $tree_icons[$server_id][$dn] = get_icon( $server_id, $dn ); $_SESSION['tree'] = $tree; $_SESSION['tree_icons'] = $tree_icons; // This is for Opera. By putting "random junk" in the query string, it thinks // that it does not have a cached version of the page, and will thus // fetch the page rather than display the cached version $time = gettimeofday(); $random_junk = md5( strtotime( 'now' ) . $time['usec'] ); // If cookies were disabled, build the url parameter for the session id. // It will be append to the url to be redirect $id_session_param=""; if(SID != ""){ $id_session_param = "&".session_name()."=".session_id(); } session_write_close(); header( "Location:tree.php?foo=$random_junk#{$server_id}_{$encoded_dn}$id_session_param" ); ?>