* @homepage: http://www.mierzejewski.net */ require_once('conf.php'); /** * Displays the menu1 * */ function tpl_menu1() { global $conf, $ID, $REV, $INFO; print p_wiki_xhtml("menu1", '', false); if ( $INFO['perm'] > AUTH_READ ) { print '
'; } } /** * Displays the bottombar * */ function tpl_bottombar() { global $INFO,$ID,$lang; $perm = $INFO['perm']; echo ''.$lang['btn_recent'].'' .' · '; if($perm > AUTH_READ) { echo ''.$lang['btn_revs'].'' .' · '; if(file_exists(wikiFN($ID))) { echo ''.$lang['btn_edit'].''; } else { echo ''.$lang['btn_create'].''; } echo ' · '; } else { echo ''.$lang['btn_source'].'' .' · '; } if($perm > AUTH_WRITE) { echo ''.$lang['btn_admin'].'' .' · '; } if(isset($INFO['userinfo']['name'])) { echo ''.$lang['btn_profile'].'' .' · '; echo ''.$lang['btn_logout'].''; } else { echo ''.$lang['btn_login'].''; } } /** * Displays the menu2 * */ function tpl_menu2() { global $conf, $ID, $REV, $INFO, $lang; $currID = false; if ( $conf['tpl_mmClean']['menu2Permanent'] ) { $path = ""; } else { if ( false != strpos($ID, ":") ) { $path = substr($ID, 0, strpos($ID, ":")); } else { $path = $ID; } $path .= ":"; } print "