include_once("inc/format.php"); /** * Convenience function to quickly build a wikilink */ function html_wikilink($url,$name='',$search=''){ global $conf; $link = array(); $link['url'] = $url; $link['name'] = $name; $link = format_link_wiki($link); if($search){ ($conf['userewrite']) ? $link['url'].='?s=' : $link['url'].='&s='; $link['url'] .= urlencode($search); } return format_link_build($link); } /** * shows the edit/source/show button dependent on current mode */ function html_editbutton(){ global $ID; global $REV; global $ACT; global $INFO; if($ACT == 'show' || $ACT == 'search'){ if($INFO['writable']){ if($INFO['exists']){ $r = html_btn('edit',$ID,'e',array('do' => 'edit','rev' => $REV),'post'); }else{ $r = html_btn('create',$ID,'e',array('do' => 'edit','rev' => $REV),'post'); } }else{ $r = html_btn('source',$ID,'v',array('do' => 'edit','rev' => $REV),'post'); } }else{ $r = html_btn('show',$ID,'v',array('do' => 'show')); } return $r; } function html_secedit_button($section,$p){ global $ID; global $lang; $secedit = ''; if($p) $secedit .= "
\n"; $secedit .= '"; return $secedit; } function html_secedit($text,$show=true){ global $INFO; if($INFO['writable'] && $show){ $text = preg_replace('##e', "html_secedit_button('\\1',true)", $text); $text = preg_replace('##e', "html_secedit_button('\\1',false)", $text); }else{ $text = preg_replace('##e','',$text); } return $text; } /** * displays the breadcrumbs trace */ function html_breadcrumbs(){ global $lang; $crumbs = breadcrumbs(); //setup crumb trace print '
'; } /** * display the HTML head and metadata */ function html_head(){ global $ID; global $ACT; global $INFO; global $conf; global $lang; print ''; print "\n"; ?>}?> | ||
}?> | =$lang['summary']?>: |
When reporting bugs please send all the following '; print 'output as a mail to andi@splitbrain.org '; print 'The best way to do this is to save this page in your browser
'; print '$_SERVER:'; print_r($_SERVER); print ''; print '$conf:
'; print_r($conf); print ''; print 'abs baseURL:
'; print getBaseURL(true); print ''; print 'rel baseURL:
'; print dirname($_SERVER['PHP_SELF']).'/'; print ''; print 'PHP Version:
'; print phpversion(); print ''; print 'locale:
'; print setlocale(LC_ALL,0); print ''; print 'Environment:
'; print_r($_ENV); print ''; print 'PHP settings:
'; $inis = ini_get_all(); print_r($inis); print ''; print ''; } ?>