Author: arekm                        Date: Sun Sep  4 12:34:34 2005 GMT
Module: PLD-doc                       Tag: HEAD
---- Log message:
Quote some things in html code. Split long log lines into 800 byte chunks.

---- Files affected:
PLD-doc/PLD_www_res/buildlogs:
   index.php (1.80 -> 1.81) 

---- Diffs:

================================================================
Index: PLD-doc/PLD_www_res/buildlogs/index.php
diff -u PLD-doc/PLD_www_res/buildlogs/index.php:1.80 
PLD-doc/PLD_www_res/buildlogs/index.php:1.81
--- PLD-doc/PLD_www_res/buildlogs/index.php:1.80        Sat May 14 03:06:25 2005
+++ PLD-doc/PLD_www_res/buildlogs/index.php     Sun Sep  4 14:34:28 2005
@@ -468,8 +468,8 @@
        }
 
        one_item(_("Status"), ($ok == 1 ?  
-                               "<font color=green><b>"._("OK")."</b></font>" : 
-                               "<font color=red><b>"._("Failed")."</b></a>"));
+                               "<font 
color=\"green\"><b>"._("OK")."</b></font>" : 
+                               "<font 
color=\"red\"><b>"._("Failed")."</b></a>"));
        one_item(_("Source URL"), 
                 href("ftp://$buildlogs_server$f";, 
                      "ftp://$buildlogs_server$f";));
@@ -530,7 +530,8 @@
                $cmd = "$cmd | tail -n 100";
        $fd = popen($cmd, "r");
        start_pre();
-       while (($s = fgets($fd, 1000)) != false) {
+       while (($s = fgets($fd, 102400)) != false) {
+               $s = chunk_split($s, 800, "\n    ");
                $s = htmlspecialchars($s);
                echo $s;
        }
@@ -659,10 +660,10 @@
 
        if (isset($qa_addr[$idx]) && $qa_addr[$idx] != "") {
        echo "<form action=\"index.php\" method=\"post\">";
-       echo "<input type=hidden name=idx value=$idx />";
-       echo "<input type=hidden name=action value=sqa />";
-       echo "<input type=text size=14 name=str /><br />";
-       echo "<input type=submit name=submit value=\""._("Search rpmqa!")."\" 
/>";
+       echo "<input type=\"hidden\" name=\"idx\" value=\"$idx\" />";
+       echo "<input type=\"hidden\" name=\"action\" value=\"sqa\" />";
+       echo "<input type=\"text\" size=\"14\" name=\"str\" /><br />";
+       echo "<input type=\"submit\" name=\"submit\" value=\""._("Search 
rpmqa!")."\" />";
        echo "</form>";
        }
 }
@@ -774,15 +775,15 @@
     echo "<tr>\n";
     $name="as0_".$i;
     $check=" checked=\"on\"";
-    echo "<td><input name=$name 
type=\"checkbox\"$check>".$addr[$i]."</input></td>\n";
+    echo "<td><input name=\"$name\" 
type=\"checkbox\"$check>".$addr[$i]."</input></td>\n";
     $name="as1_".$i;
     $check=" checked=\"on\"";
-    echo "<td><input name=$name 
type=\"checkbox\"$check>".$addr[$i]."</input></td>\n";
+    echo "<td><input name=\"$name\" 
type=\"checkbox\"$check>".$addr[$i]."</input></td>\n";
     echo "</tr>\n";
   }
        
   echo "<tr>\n";
-  echo "<td><input type=submit name=submit value=\""._("Search!")."\" /></td>";
+  echo "<td><input type=\"submit\" name=\"submit\" value=\""._("Search!")."\" 
/></td>";
   echo "</tr>\n";
 
   echo "</table>\n";
@@ -909,12 +910,12 @@
 
                $builder=$addr[$i]."/".(($j=="1")?"OK":"FAIL");
                echo "<tr>";
-               echo "<td bgcolor=#CCCCCC><a href=\"$u\">$builder</a></td>";
-               echo "<td bgcolor=#CCCCCC><a href=\"$u\">$f</a> ".
+               echo "<td bgcolor=\"#CCCCCC\"><a href=\"$u\">$builder</a></td>";
+               echo "<td bgcolor=\"#CCCCCC\"><a href=\"$u\">$f</a> ".
                     "[<a href=\"$u&amp;action=text\">"._("text")."</a> | ".
                      "<a href=\"$u&amp;action=tail\">"._("tail")."</a>]".
-                    "</td><td bgcolor=#CCCCCC align=right>".
-                    "$s</td><td bgcolor=#CCCCCC>$t</td></tr>\n";
+                    "</td><td bgcolor=\"#CCCCCC\" align=\"right\">".
+                    "$s</td><td bgcolor=\"#CCCCCC\">$t</td></tr>\n";
        }
        echo "</table></div>\n";
 
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/PLD-doc/PLD_www_res/buildlogs/index.php?r1=1.80&r2=1.81&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to