From 98c868589ee0757f176239cf289cbd007bb74852 Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 17 Feb 2006 23:20:40 +0100 Subject: file cleanups This patch cleans up the source code to satisfy the coding guidelines (see http://wiki.splitbrain.org/wiki:development#coding_style) It converts files to UNIX lineendings and removes tabs and trailing whitespace. Not all files were cleaned yet. darcs-hash:20060217222040-7ad00-bba3d2bee3b5aa7cbb5184258abd50805cd071bf.gz --- inc/html.php | 68 ++++++++++++++++++++++++++++++------------------------------ 1 file changed, 34 insertions(+), 34 deletions(-) (limited to 'inc/html.php') diff --git a/inc/html.php b/inc/html.php index 0e5454d4e..f9acd7325 100644 --- a/inc/html.php +++ b/inc/html.php @@ -19,7 +19,7 @@ function html_wikilink($id,$name=NULL,$search=''){ static $xhtml_renderer = NULL; if(is_null($xhtml_renderer)){ require_once(DOKU_INC.'inc/parser/xhtml.php'); - $xhtml_renderer = new Doku_Renderer_xhtml(); + $xhtml_renderer = new Doku_Renderer_xhtml(); } return $xhtml_renderer->internallink($id,$name,$search,true); @@ -47,7 +47,7 @@ function html_login(){ global $lang; global $conf; global $ID; - global $auth; + global $auth; print p_locale_xhtml('login'); ?> @@ -186,15 +186,15 @@ function html_topbtn(){ function html_backtomedia_button($params,$akey=''){ global $conf; global $lang; - + $ret = '
'; - + reset($params); while (list($key, $val) = each($params)) { $ret .= ''; } - + $ret .= '
'; - + reset($params); while (list($key, $val) = each($params)) { $ret .= ''; } - + $ret .= ''; @@ -300,11 +300,11 @@ function html_hilight($html,$query){ return $html; } -/** +/** * Callback used by html_hilight() * * @author Harry Fuecks - */ + */ function html_hilight_callback($m) { $hlight = unslash($m[0]); if ( !isset($m[2])) { @@ -391,7 +391,7 @@ function html_locked(){ global $conf; global $lang; global $INFO; - + $locktime = filemtime(wikiFN($ID).'.lock'); $expire = @date($conf['dformat'], $locktime + $conf['locktime'] ); $min = round(($conf['locktime'] - (time() - $locktime) )/60); @@ -413,9 +413,9 @@ function html_revisions(){ global $INFO; global $conf; global $lang; - $revisions = getRevisions($ID); + $revisions = getRevisions($ID); $date = @date($conf['dformat'],$INFO['lastmod']); - + print p_locale_xhtml('revisions'); print '
    '; if($INFO['exists']){ @@ -494,11 +494,11 @@ function html_recent($first=0){ $first=0; $recents = getRecents(0,$conf['recent'] + 1,getNS($ID)); } - $cnt = count($recents) <= $conf['recent'] ? count($recents) : $conf['recent']; + $cnt = count($recents) <= $conf['recent'] ? count($recents) : $conf['recent']; print p_locale_xhtml('recent'); print '
      '; - + foreach($recents as $recent){ $date = date($conf['dformat'],$recent['date']); print ($recent['minor']) ? '
    • ' : '
    • '; @@ -549,7 +549,7 @@ function html_recent($first=0){ print '
    • \n"; } - //remember current level + //remember current level $level = $item['level']; //print item @@ -832,7 +832,7 @@ function html_register(){
      - + @@ -877,7 +877,7 @@ function html_updateprofile(){ global $auth; print p_locale_xhtml('updateprofile'); - + if (empty($_POST['fullname'])) $_POST['fullname'] = $INFO['userinfo']['name']; if (empty($_POST['email'])) $_POST['email'] = $INFO['userinfo']['mail']; ?> @@ -891,7 +891,7 @@ function html_updateprofile(){
      +

      - +

      - + @@ -982,7 +982,7 @@ function html_edit($text=null,$include='edit'){ //FIXME: include needed? } if(!$DATE) $DATE = $INFO['lastmod']; - + ?>
      @@ -1038,7 +1038,7 @@ function html_minoredit(){ // minor edits are for logged in users only if(!$conf['useacl'] || !$_SERVER['REMOTE_USER']){ return; - } + } $p = array(); $p['name'] = 'minor'; @@ -1087,11 +1087,11 @@ function html_debug(){ print 'DOKU_BASE:
      ';
         print DOKU_BASE;
         print '
      '; - + print 'abs DOKU_BASE:
      ';
         print DOKU_URL;
         print '
      '; - + print 'rel DOKU_BASE:
      ';
         print dirname($_SERVER['PHP_SELF']).'/';
         print '
      '; @@ -1142,7 +1142,7 @@ function html_admin(){ $menu = array(); foreach ($pluginlist as $p) { if($obj =& plugin_load('admin',$p) === NULL) continue; - $menu[] = array('plugin' => $p, + $menu[] = array('plugin' => $p, 'prompt' => $obj->getMenuText($conf['lang']), 'sort' => $obj->getMenuSort() ); @@ -1162,7 +1162,7 @@ function html_admin(){ if (!$conf['openregister']){ ptln('
    • '); } - + ptln('
    '); } @@ -1175,7 +1175,7 @@ function html_resendpwd() { global $lang; global $conf; global $ID; - + print p_locale_xhtml('resendpwd'); ?>
    -- cgit v1.2.3