hholzgra                Fri Sep 20 07:40:53 2002 EDT

  Modified files:              
    /functable  table.php 
  Log:
  more whitespace stuff
  
  
Index: functable/table.php
diff -u functable/table.php:1.12 functable/table.php:1.13
--- functable/table.php:1.12    Fri Sep 20 07:38:32 2002
+++ functable/table.php Fri Sep 20 07:40:53 2002
@@ -193,20 +193,20 @@
 
                $alt = (($language=="yes")||empty($language))?"en":$language;
                
-               switch($language)
-                       {
-                       case false: $docstr="documented"; break;
-                       case "yes": case "en": $docstr="<img 
src=\"$imgdir/flag_us_UK.gif\" alt=\"$alt\" border=0>"; break;
-                       default: $docstr="<img src=\"$imgdir/flag_$language.gif\" 
alt=\"$alt\" border=0>"; break;
-                       }
+               switch($language) {
+               case false: $docstr="documented"; break;
+               case "yes": case "en": $docstr="<img src=\"$imgdir/flag_us_UK.gif\" 
+alt=\"$alt\" border=0>"; break;
+               default: $docstr="<img src=\"$imgdir/flag_$language.gif\" alt=\"$alt\" 
+border=0>"; break;
+               }
 
-               if(urlok($url))
+               if(urlok($url)) {
                        return "  <a href=\"$url\" "
                                ." >$docstr</a>\n";     
-               else if($ext!="html")
+               } else if($ext!="html") {
                        return "  <a 
href=\"nodoc-online.$ext?function=$function&url=".urlencode($url)."\">$docstr</a>\n";
-               else
+               }       else {
                        return "  $docstr\n";
+               }
        }
 
        function author_ref($author) {
@@ -217,24 +217,23 @@
 
 # {{{ functions for page setup
 
-       function head($version=false,$letter=' ',$tpath="",$ttitle="",$versionid=false)
-{
-       global $extensions,$color1,$color2,$imgdir,$ext,$translation,$bgcolor,$ol;
-
-       if(isset($ttitle))
-               echo strip_tags($ttitle)."\n";
-       else
-               echo "$letter\n";
-
-       ob_start();
-
-       $versionid=(empty($versionid)?"":".$versionid");
+       function head($version=false,$letter=' 
+',$tpath="",$ttitle="",$versionid=false) {
+               global 
+$extensions,$color1,$color2,$imgdir,$ext,$translation,$bgcolor,$ol;
                
-       $bgcolor=$color1;
-
-       if(function_exists("custom_head")) {
-               custom_head($ttitle,$tpath); 
-       } else {
+               if(isset($ttitle))
+                       echo strip_tags($ttitle)."\n";
+               else
+                       echo "$letter\n";
+               
+               ob_start();
+               
+               $versionid=(empty($versionid)?"":".$versionid");
+               
+               $bgcolor=$color1;
+               
+               if(function_exists("custom_head")) {
+                       custom_head($ttitle,$tpath); 
+               } else {
        ?>
  <html>
                <head>
@@ -401,21 +400,19 @@
        mysql_free_result($result);
 
        $result = mysql_query("select function,file,lineno from funcimp where 
versionid=499");
-       while($row=mysql_fetch_array($result))
-{
-  
$imp4[strtolower(trim($row["function"]))]=str_replace("php_4_cvs","php4","$row[file]#$row[lineno]");
 
-}  
+       while($row=mysql_fetch_array($result)) {
+               
+$imp4[strtolower(trim($row["function"]))]=str_replace("php_4_cvs","php4","$row[file]#$row[lineno]");
+ 
+       }  
        mysql_free_result($result);
 
        echo "getting function docfiles\n";
        $result = mysql_query("select function,docfile,lineno from docfile where 
docfile is not null");
        if(!$result) { echo mysql_error(); exit; }
-       while($row=mysql_fetch_array($result))
-{
-  if(""!=trim($row["docfile"])) {
-    $docfile[strtolower(trim($row["function"]))]="$row[docfile]#$row[lineno]"; 
-  }
-}  
+       while($row=mysql_fetch_array($result)) {
+               if(""!=trim($row["docfile"])) {
+                       
+$docfile[strtolower(trim($row["function"]))]="$row[docfile]#$row[lineno]"; 
+               }
+       }  
        mysql_free_result($result);
 
        $result = mysql_query("select distinct function,proto,proto_desc from proto3");
@@ -437,19 +434,17 @@
        echo "getting function quickrefs\n";
        $result = mysql_query("select function,language,descr from quickref");
        if(!$result) { echo mysql_error(); exit; }
-       while($row=mysql_fetch_array($result))
-{
-  $quickref[$row["language"]][strtolower(trim($row["function"]))]=$row["descr"]; 
-}  
+       while($row=mysql_fetch_array($result)) {
+               
+$quickref[$row["language"]][strtolower(trim($row["function"]))]=$row["descr"]; 
+       }  
        mysql_free_result($result);
 
        echo "getting function authors\n";
        $result = mysql_query("select function,author from author");
        if(!$result) { echo mysql_error(); exit; }
-       while($row=mysql_fetch_array($result))
-{
-  $author[$row['function']] = $row['author'];
-}  
+       while($row=mysql_fetch_array($result)) {
+               $author[$row['function']] = $row['author'];
+       }  
        mysql_free_result($result);
 
        echo "checking for translations\n";



-- 
PHP CVS Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to