*/ /** * Renders the topbar * * @author Michael Klier */ function tpl_topbar() { global $ID; $found = false; $tbar = ''; $path = explode(':', $ID); while(!$found && count($path) >= 0) { $tbar = implode(':', $path) . ':' . 'topbar'; $found = @file_exists(wikiFN($tbar)); array_pop($path); // check if nothing was found if(!$found && $tbar == ':topbar') return; } if($found && auth_quickaclcheck($tbar) >= AUTH_READ) { print p_wiki_xhtml($tbar,'',false); } }