2 $buildlogs_server = "buildlogs.pld-linux.org";
25 $qa_base = "http://ftp.pld-linux.org/.stat/builder";
27 "/ep/rpmqa-ac-i386.txt",
28 "/ep/rpmqa-ac-i386.txt",
29 "/ep/rpmqa-ac-i386.txt",
31 "/alpha/rpmqa-ac-alpha.txt",
32 "/newboss/rpmqa-ac-sparc.txt",
34 "/ep/rpmqa-ra-i386.txt",
35 "/ep/rpmqa-ra-i586.txt",
36 "/ep/rpmqa-ra-i686.txt",
37 "/mifgate/rpmqa-ra-alpha.txt",
38 "/team/rpmqa-ra-sparc.txt",
40 "/kenny/rpmqa-nest-i386.txt",
41 "/kenny/rpmqa-nest-i586.txt",
42 "/kenny/rpmqa-nest-i686.txt",
47 $local = 1; /* $local=0 for FTP */
48 $root_directory = "/home/services/ftp/pub/pld-buildlogs";
50 /* It should be set */
52 $langs["en_US"]["charset"]="ISO-8859-1";
53 $langs["pl_PL"]["charset"]="ISO-8859-2";
56 if (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]))
58 $rows=explode(";",$_SERVER["HTTP_ACCEPT_LANGUAGE"]);
59 $rows=explode(",",$rows[0]);
60 $lang_detected=rtrim($rows[0]);
61 } else if (preg_match("/opera/i",$_SERVER["HTTP_USER_AGENT"]))
63 $lang_detected=preg_replace("/.*\[(.*)\].*/i","\\1",$_SERVER["HTTP_USER_AGENT"]);
67 $lang_detected=preg_replace("/^pl$/i","pl_PL",$lang_detected);
69 if (isset($lang_detected) && isset($langs[$lang_detected]))
74 if (isset($_GET["lang"]))$_SESSION["lang"]=$_GET["lang"];
75 if (isset($_SESSION["lang"]))$lang=$_SESSION["lang"];
78 setlocale(LC_ALL,$lang);
79 bindtextdomain("messages","locale");
80 textdomain("messages");
82 if (isset($_GET["idx"]))$idx=$_GET["idx"];
83 if (isset($_GET["ok"]))$ok=$_GET["ok"];
85 if (isset($_GET["ns"]))$ns=$_GET["ns"];
87 if (isset($_GET["cnt"]))$cnt=$_GET["cnt"];
88 if (isset($_GET["action"]))$action=$_GET["action"];
90 if (isset($_GET["off"]))$off=$_GET["off"];
91 if (isset($_GET["id"]))$id=$_GET["id"];
93 if (isset($_POST["str"]))$str=$_POST["str"];
94 if (isset($_POST["idx"]))$idx=$_POST["idx"];
95 if (isset($_POST["action"]))$action=$_POST["action"];
99 echo '<' . '?xml version="1.0" encoding="' . _("ISO-8859-1") .'"?' . ">\n";
100 echo '<' . '?xml-stylesheet href="#internalStyle" type="text/css"?' . ">\n";
102 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
103 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
104 <html xmlns="http://www.w3.org/1999/xhtml">
106 <title>PLD Build Logs</title>
107 <?php echo '<meta http-equiv="Content-type" content="text/html; charset=' . _("ISO-8859-1") .'"/>' ."\n";?>
108 <style type="text/css"><!--
109 A { text-decoration: none; }
110 A:hover { text-decoration: underline; }
111 H1 { font-family: arial,helvetica,sans-serif;
114 H2 { font-family: arial,helvetica,sans-serif;
117 BODY,TD { font-family: arial,helvetica,sans-serif;
119 TH { font-family: arial,helvetica,sans-serif;
125 <!-- Diffrent color for visited link doesn't make much sense here...
126 this page is autogenerated and it might be misleading after some
127 build log changes. -->
128 <body bgcolor="#ffffff" text="#000000" link="#5f26cd" vlink="#5f26cd">
134 echo "<table cellpadding=\"10\"><tr><td bgcolor=\"#000000\">".
135 "<font color=\"#cccccc\"><pre>";
140 echo "</pre></font></td></tr></table>\n";
145 echo "</body></html>";
151 echo "Fatal error: $msg";
154 function open_ftp($pidx="", $pok="")
156 global $idx, $addr, $buildlogs_server, $ok;
157 global $ftp_conn, $big_url, $url, $ns;
160 if ($pidx==="")$pidx=$idx;
161 if ($pok==="")$pok=$ok;
163 if (!isset($pidx) || !isset($addr[$pidx]))
172 $a = "$addr[$pidx]/OK";
174 $a = "$addr[$pidx]/FAIL";
182 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
184 $ftp = ftp_connect($buildlogs_server);
187 mydie(_("cannot connect to")." $buildlogs_server");
191 if (ftp_login($ftp, "anonymous",
192 "buildlogs-iface@pld-linux.org") == false) {
194 mydie(_("cannot ftp login to")." $buildlogs_server");
198 $list = ftp_nlist($ftp, $a);
199 if ($list == false) {
201 mydie(_("cannot list")." $a");
210 function directory_list($pidx="",$pok="")
212 global $idx, $addr, $buildlogs_server, $ok;
213 global $root_directory, $big_url, $url, $ns;
216 if ($pidx==="")$pidx=$idx;
217 if ($pok==="")$pok=$ok;
218 if (!isset($pidx) || !isset($addr[$pidx]))
227 $a = "$addr[$pidx]/OK";
229 $a = "$addr[$pidx]/FAIL";
237 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
239 $dir = opendir("$root_directory$a");
242 while ($file = readdir($dir)) {
243 if (($file != ".") && ($file != "..")) {
244 $list[$i] = "$a/$file";
254 global $idx, $addr, $ok;
255 global $ftp_conn, $big_url, $ns, $qa_addr;
256 global $off, $cnt, $local, $root_directory;
259 $list = directory_list();
267 echo "<h1>"._("Listing of")." $addr[$idx]/OK "
268 ."(<a href=\"$big_url&ok=0\">"._("fail")."</a>)</h1>\n";
270 echo "<h1>"._("Listing of")." $addr[$idx]/FAIL "
271 ."(<a href=\"$big_url&ok=1\">"._("ok")."</a>)</h1>\n";
274 echo "<div align=\"center\"><table cols=\"4\" border=\"0\" cellspacing=\"1\" ".
275 "cellpadding=\"3\" bgcolor=\"#000000\" width=\"90%\">\n";
276 echo "<tr><th bgcolor=\"#CCCCFF\" align=\"right\" width=\"1%\">"._("No.")."</th>".
277 "<th bgcolor=\"#CCCCFF\" align=\"left\" width=\"80%\">"._("Log File").
278 "[<a href=\"$big_url&ns=1\">"._("sort")."</a>]</th>".
279 "<th bgcolor=\"#CCCCFF\" align=\"right\" width=\"15%\">"._("Size")."</th> ".
280 "<th bgcolor=\"#CCCCFF\" align=\"left\">"._("Age").
281 "[<a href=\"$big_url&ns=0\">"._("sort")."</a>]</th>".
284 function cmp($f1, $f2) {
285 global $ftp_conn, $root_directory, $local;
287 return filemtime("$root_directory$f2") - filemtime("$root_directory$f1");
288 return ftp_mdtm($ftp_conn, $f2) - ftp_mdtm($ftp_conn, $f1);
299 for ($i = $off; $i < $cnt + $off; $i++) {
300 if (!isset($list[$i]))
302 $h = bin2hex(mhash(MHASH_MD5, $list[$i]));
303 $f = preg_replace("/.*\/([^\/]*)$/", "\\1", $list[$i]);
304 $f = preg_replace("/\.(bz2|gz)$/", "", $f);
306 $s = filesize("$root_directory$list[$i]");
307 $t = $now - filemtime("$root_directory$list[$i]");
309 $s = ftp_size($ftp_conn, $list[$i]);
310 $t = $now - ftp_mdtm($ftp_conn, $list[$i]);
318 $t = $t . " " . ngettext("day","days",$t);
321 $t = $t . " " . ngettext("hour","hours",$t);
325 $t = $t . " " . ngettext("minute","minutes",$t);
327 $u = "$big_url&off=$off&id=$h";
328 echo "<tr><td bgcolor=\"#CCCCCC\" align=\"right\">".($i+1).".</td>".
329 "<td bgcolor=\"#CCCCCC\"><a href=\"$u\">$f</a> ".
330 "[<a href=\"$u&action=text\">"._("text")."</a> | ".
331 "<a href=\"$u&action=tail\">"._("tail")."</a>]".
332 "</td><td bgcolor=\"#CCCCCC\" align=\"right\">".
333 "$s</td><td bgcolor=\"#CCCCCC\">$t</td></tr>\n";
335 echo "</table></div>\n";
337 $backarr = "<<< ";
338 $back = _("Page back");
339 $forward = _("Page forward");
340 $forwardarr = " >>>";
342 echo "<p><table width=\"90%\" align=\"center\"><tr><td align=\"left\" width=\"1%\">";
348 $hrefurl = "<a href=\"$big_url&off=$noff\">";
349 echo "$hrefurl$backarr</a></td><td align=\"left\">$hrefurl$back</a>";
351 echo "$backarr</td><td align=\"left\">$back";
354 echo "</td>\n<td align=\"center\">";
356 if ($qa_addr[$idx] != "") {
357 echo "[<a href=\"$big_url&action=qa\">"._("View <quot>rpm -qa</quot> of builder")."</a>]";
362 echo "</td>\n<td align=right>";
363 if ($off + $cnt < count($list)) {
367 $hrefurl = "<a href=\"$big_url&off=$noff\">";
368 echo "$hrefurl$forward</a></td><td align=right width=1%>$hrefurl$forwardarr</a>";
370 echo "$forward</td><td align=right width=1%>$forwardarr";
372 echo "</td>\n</tr></table></p>";
381 global $idx, $addr, $ok;
382 global $ftp_conn, $root_directory, $big_url, $ns, $id;
383 global $buildlogs_server, $local;
388 $list = directory_list();
396 for ($i = 0; $i < count($list); $i++) {
397 $h = bin2hex(mhash(MHASH_MD5, $list[$i]));
404 mydie(_("cannot find specified file:")." $id");
413 function dump_log($tail)
415 global $idx, $addr, $ok, $url;
416 global $ftp_conn, $root_directory, $big_url, $ns, $id, $cnt, $off;
417 global $buildlogs_server, $local, $qa_addr;
424 $df = preg_replace("/.*\/([^\/]*)$/", "\\1", $f);
425 $df = preg_replace("/\.(bz2|gz)$/", "", $df);
429 echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" bgcolor=\"#000000\">";
431 function one_item($h, $t) {
432 echo "<tr><td bgcolor=\"#ccccff\">$h:</td>".
433 "<td bgcolor=\"#cccccc\">$t</td></tr>";
436 function href($h, $c) {
437 return "<a href=\"$h\">$c</a>";
440 one_item(_("Status"), ($ok == 1 ?
441 "<font color=green><b>"._("OK")."</b></font>" :
442 "<font color=red><b>"._("Failed")."</b></a>"));
443 one_item(_("Source URL"),
444 href("ftp://$buildlogs_server$f",
445 "ftp://$buildlogs_server$f"));
447 $bu = "$big_url&off=$off";
449 one_item(_("text/plain URL"),
450 href("$bu&id=$id&action=text",
453 one_item(_("full text"),
454 href("$bu&id=$id",
458 if ($qa_addr[$idx] != "") {
459 one_item(_("rpm -qa of builder"), href("$bu&action=qa", _("View!")));
461 one_item(_("rpm -qa of builder"), _("Not available"));
464 one_item("Data", date("Y/m/d H:i:s", filemtime("$root_directory$f")));
466 one_item("Data", date("Y/m/d H:i:s", ftp_mdtm($ftp_conn, $f)));
469 echo "<tr><td>Here:</td><td>" .
470 "<a href=\"$url?idx=$idx&ok=$ok&id=$id\">".
471 "http://" . getenv("SERVER_NAME") .
472 getenv("SCRIPT_NAME") . "?idx=$idx&ok=$ok&id=$id</a>" .
475 echo "</table><h2>"._("Content:")."</h2>";
483 # what can I say beside PHP suxx? how the fuck should I create
484 # bidirectional pipe? gotta use wget
486 if (preg_match("/\.bz2$/", $f)) {
488 } elseif (preg_match("/\.gz$/", $f)) {
495 $cmd = "$filter $root_directory$f";
497 $cmd = "wget -q -O - ftp://$buildlogs_server$f 2>&1 | $filter 2>&1";
500 $cmd = "$cmd | tail -n 100";
501 $fd = popen($cmd, "r");
503 while (($s = fgets($fd, 1000)) != false) {
504 $s = htmlspecialchars($s);
514 [<a href="<?php echo $bu; ?>"><?=_("Back to list of logs")?></a>]
517 [<a href="<?php echo "$bu&action=qa"
518 ?>"><?=_("View rpm -qa of builder")?></a>]
528 global $ftp_conn, $root_directory;
529 global $buildlogs_server, $local;
531 header("Content-type: text/plain");
538 echo "# src : ftp://$buildlogs_server$f\n";
541 date("Y/m/d H:i:s", filemtime("$root_directory$f")) . "\n";
544 date("Y/m/d H:i:s", ftp_mdtm($ftp_conn, $f)) . "\n";
549 if (preg_match("/\.bz2$/", $f)) {
551 } elseif (preg_match("/\.gz$/", $f)) {
558 $cmd = "$filter $root_directory$f";
560 $cmd = "wget -q -O - ftp://$buildlogs_server$f 2>&1 | $filter 2>&1";
562 $fd = popen($cmd, "r");
563 while (($s = fgets($fd, 1000)) != false) {
569 function list_archs()
571 global $addr, $url, $idx, $cnt,$ok,$ns;
576 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
578 echo "<table width=\"100%\" border=\"0\">\n";
579 echo "<tr><td bgcolor=\"#cccccc\" nowrap=\"nowrap\">"._("Failed")."</td><td bgcolor=\"#cccccc\">"._("Ok")."</td></tr>\n";
580 for ($i = 0; $i < count($addr); $i++)
581 echo "<tr><td nowrap=\"nowrap\">".
582 "<a href=\"$url?idx=$i&ok=0&cnt=$cnt\">$addr[$i]</a></td><td nowrap=\"nowrap\">".
583 "[<a href=\"$url?idx=$i&ok=1&cnt=$cnt\">OK</a>]</td>".
584 #"<td>[<a href=\"$url?idx=$i&action=qa\">qa</a>]</td>".
586 echo "</table><hr />\n";
588 echo "<div align=\"center\">";
589 echo "<a href=\"$big_url&action=adv_search\">"._("Advanced Search")."</a><br />\n";
591 echo "<a href=\"$url\">main()</a><hr />\n";
592 echo "<a href=\"http://www.pld-linux.org/\"><img src=\"powpld.png\" ".
593 "alt=\""._("Powered by PLD Linux")."\" border=\"0\" /></a><br />\n" .
595 "<a href=\"mailto:feedback@pld-linux.org\">PLD Team</a>\n".
599 echo "<div align=\"center\"><small>";
600 $pow = array("vim", "php", "brain", "power", "electricity",
601 "coffee", "ufo", "penguin", "GNOME", "ELF", "DWARF",
602 "voodoo magic", "Linux", "x-files", "X", "foobar",
603 "/dev/null", "/dev/zero", "/dev/drzewo",
604 "Leppe'", "matrix", "Neo", "PDP-11",
605 "Ken", "GNU antilope", "PDP-7", "ITS", "Multics",
606 "foobarbaz", "ed", "Joe", "Unix conspiracy",
607 "overclock", "The Right Thing",
608 "The Bad Thing", "Star Treck", "NSA", "NASA",
609 "achelon", "VAX", "Real Programmer",
610 "Real Operating System", "Real Computer",
611 "computron", "bogon", "quantum bogodynamics",
612 "BOFH", "/dev/ill", "nasi tu byli",
613 "Paranoid Android", "Lunatic Corp", "Parallel thinking",
614 "sfistak", "Linus", "The Golden Path", "Dark Side of the Force",
615 "Przewodniczacego Lepper-a", "KDE", "Microsoft Windows 2003"
616 # feel free to add sth if you change this file ;)
618 echo _("Powered by")." ";
620 for ($i = 0; $i < $max; $i++) {
621 $x = rand(0, count($pow) - 1);
622 if ($pow[$x] == "") $i--;
623 else echo $pow[$x] . ($i == $max - 1 ? "." : ", ");
626 echo "</small></div>";
630 if (isset($qa_addr[$idx]) && $qa_addr[$idx] != "") {
631 echo "<form action=\"index.php\" method=\"post\">";
632 echo "<input type=hidden name=idx value=$idx />";
633 echo "<input type=hidden name=action value=sqa />";
634 echo "<input type=text size=14 name=str /><br />";
635 echo "<input type=submit name=submit value=\""._("Search rpmqa!")."\" />";
642 global $idx, $qa_addr, $qa_base;
644 if (!isset($idx) || !isset($qa_addr[$idx]))
649 if ($qa_addr[$idx] == "")
652 return fopen("$qa_base$qa_addr[$idx]", "r");
657 global $url, $idx, $qa_addr, $str;
660 echo "<h1>"._("Search results for")." '$str' "._("in")." $qa_addr[$idx]</h1>";
665 echo _("Sorry, cannot open.");
667 while (($s = fgets($f, 1000)) != false) {
668 if (stristr($s, $str))
676 function dump_qa($plain)
678 global $url, $idx, $qa_addr;
685 header("Content-type: text/plain");
686 echo _("# rpm -qa of")." $a\n";
688 echo "<h1>"._("rpm -qa of")." $a</h1>";
689 echo "<a href=\"$url?idx=$idx&action=qatxt\">"._("text/plain version")."</a>";
694 echo _("Sorry, cannot open.");
696 while (($s = fgets($f, 1000)) != false) {
706 function adv_search()
708 global $addr, $url, $local, $_POST, $off, $cnt, $root_directory;
710 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
712 echo "<form action=\"index.php?action=adv_search\" method=\"post\">";
714 echo "<div align=\"center\">";
715 echo "<table border=\"0\">\n";
717 echo "<td>"._("Package name")."</td>\n";
718 echo "<td><input type=\"text\" size=\"20\" name=\"name\" value=\"".$_POST[name]."\"/></td>\n";
722 echo "<td>"._("Days")."</td>\n";
723 echo "<td>"._("From").": <input type=\"text\" size=\"20\" name=\"age1\" value=\"".$_POST["age1"]."\" /></td>\n";
724 echo "<td>"._("To").": <input type=\"text\" size=\"20\" name=\"age2\" value=\"".$_POST["age2"]."\" /></td>\n";
728 echo "<td>"._("Size")."</td>\n";
729 echo "<td>"._("From").": <input type=\"text\" size=\"20\" name=\"size1\" value=\"".$_POST["size1"]."\" /></td>\n";
730 echo "<td>"._("To").": <input type=\"text\" size=\"20\" name=\"size2\" value=\"".$_POST["size2"]."\" /></td>\n";
734 echo "<td>"._("Search logs:")."</td>\n";
738 echo "<td>"._("Failed")."</td>\n";
739 echo "<td>"._("OK")."</td>\n";
742 for ($i = 0; $i < count($addr); $i++)
746 $check=" checked=\"on\"";
747 echo "<td><input name=$name type=\"checkbox\"$check>".$addr[$i]."</input></td>\n";
749 $check=" checked=\"on\"";
750 echo "<td><input name=$name type=\"checkbox\"$check>".$addr[$i]."</input></td>\n";
755 echo "<td><input type=submit name=submit value=\""._("Search!")."\" /></td>";
760 // if (isset($_POST["name"]) || isset($_POST["age1"]) || isset($_POST["age2"]) ||
761 // isset($_POST["size1"]) || isset($_POST["size2"]))
762 if (($_POST["name"]!="") || ($_POST["age1"]!="") || ($_POST["age2"]!="") ||
763 ($_POST["size1"]!="") || ($_POST["size2"]!=""))
767 for ($i = 0; $i < count($addr); $i++)
772 if (isset($_POST["as".$j."_".$i]))
775 $tmp_list = directory_list($i,$j);
777 $tmp_list = open_ftp($i,$j);
779 if (is_array($tmp_list))
781 while (list($k,$name)=each($tmp_list))
783 $s = filesize("$root_directory$name");
784 $t = $now - filemtime("$root_directory$name");
786 if (($_POST["name"]!="") && (!preg_match("/".$_POST["name"]."/i",$name)))continue;
787 if (($_POST["age1"]) && ($_POST["age1"]>$t))continue;
788 if (($_POST["age2"]) && ($_POST["age2"]<$t))continue;
790 if (($_POST["size1"]) && ($_POST["size1"]>$s))continue;
791 if (($_POST["size2"]) && ($_POST["size2"]<$s))continue;
793 $list[$i."_".$j."_".$k]=$name;
799 if (sizeof($list)==0)
801 echo _("Nothing found");
805 echo "<table border=\"0\" cellspacing=\"1\" ".
806 "cellpadding=3 bgcolor=\"#000000\" width=\"90%\">\n";
807 echo "<tr><th bgcolor=\"#CCCCFF\" align=\"left\" width=\"10%\">"._("Builder").
808 "[<a href=\"$big_url&ns=2\">"._("sort")."</a>]</th>";
809 echo "<th bgcolor=\"#CCCCFF\" align=\"left\" width=\"60%\">"._("Log File").
810 "[<a href=\"$big_url&ns=1\">"._("sort")."</a>]</th>".
811 "<th bgcolor=\"#CCCCFF\" align=\"right\" width=\"15%\">"._("Size")."</th> ".
812 "<th bgcolor=\"#CCCCFF\" align=\"left\">"._("Age").
813 "[<a href=\"$big_url&ns=0\">"._("sort")."</a>]</th>".
816 function cmp1($f1, $f2) {
817 global $ftp_conn, $root_directory, $local;
819 return filemtime("$root_directory$f2") - filemtime("$root_directory$f1");
820 return ftp_mdtm($ftp_conn, $f2) - ftp_mdtm($ftp_conn, $f1);
823 function cmp2($f1, $f2) {
824 list($p11,$p12,$p13)=explode("_",$f1);
825 list($p21,$p22,$p23)=explode("_",$f2);
826 return strcmp($f2,$f1);
831 usort($list, "cmp1");
832 // } else if ($ns == 2)
834 // uksort($list, "cmp2");
841 while (list($k,$name)=each($list))
843 if (($counter<$off) || ($counter>$off+$cnt-1))
850 list($i,$j,$k)=explode("_",$k);
852 $h = bin2hex(mhash(MHASH_MD5, $name));
853 $f = preg_replace("/.*\/([^\/]*)$/", "\\1", $name);
854 $f = preg_replace("/\.(bz2|gz)$/", "", $f);
856 $s = filesize("$root_directory$name");
857 $t = $now - filemtime("$root_directory$name");
859 $s = ftp_size($ftp_conn, $list[$i]);
860 $t = $now - ftp_mdtm($ftp_conn, $list[$i]);
868 $t = $t . " " . ngettext("day","days",$t);
871 $t = $t . " " . ngettext("hour","hours",$t);
875 $t = $t . " " . ngettext("minute","minutes",$t);
877 $big_url = "$url?idx=$i&ok=$j&ns=$ns&cnt=$cnt";
878 $u = "$big_url&off=$off&id=$h";
880 $builder=$addr[$i]."/".(($j=="1")?"OK":"FAIL");
882 echo "<td bgcolor=#CCCCCC><a href=\"$u\">$builder</a></td>";
883 echo "<td bgcolor=#CCCCCC><a href=\"$u\">$f</a> ".
884 "[<a href=\"$u&action=text\">"._("text")."</a> | ".
885 "<a href=\"$u&action=tail\">"._("tail")."</a>]".
886 "</td><td bgcolor=#CCCCCC align=right>".
887 "$s</td><td bgcolor=#CCCCCC>$t</td></tr>\n";
889 echo "</table></div>\n";
891 $backarr = "<<< ";
892 $back = _("Page back");
893 $forward = _("Page forward");
894 $forwardarr = " >>>";
898 echo "<p><table width=\"90%\" align=\"center\"><tr><td align=left width=1%>";
904 $hrefurl = "<a href=\"$big_url&off=$noff\">";
905 echo "$hrefurl$backarr</a></td><td align=left>$hrefurl$back</a>";
907 echo "$backarr</td><td align=left>$back";
910 echo "</td>\n<td align=\"center\">";
911 echo "</td>\n<td align=\"right\">";
913 if ($off + $cnt < count($list))
918 $hrefurl = "<a href=\"$big_url&off=$noff\">";
919 echo "$hrefurl$forward</a></td><td align=\"right\" width=\"1%\">$hrefurl$forwardarr</a>";
923 echo "$forward</td><td align=\"right\" width=\"1%\">$forwardarr";
926 echo "</td>\n</tr></table></p>";
936 echo _("Enter something!");
944 <table border="0" width="100%"><tr><td width="20%"> </td><td>
945 <h1><?=_("Welcome!")?></h1>
946 <p><?=_("Welcome to PLD Build Logs WWW interface.")?></p><p>
947 <?=_("Feel free to email bug reports, complaints and feature requests ")?>
948 <!-- ech... niech strace... -->
949 <a href="mailto:feedback@pld-linux.org"><?=_("to us")?></a>. <?=_("Positive opinions are also")?>
950 <a href="mailto:feedback@pld-linux.org"><?=_("welcome")?></a> ;)</p>
951 <p>Version: $Id: index.php,v 1.63 2003/06/14 16:07:03 malekith Exp $</p>
952 </td><td width="20%"> </td></tr>
957 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
958 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
959 header("Cache-Control: no-cache, must-revalidate");
960 header("Pragma: no-cache");
964 if ($action == "text") {
966 } else if ($action == "adv_search") {
970 } else if ($action == "qatxt") {
974 echo "<table cellpadding=\"10\" width=\"100%\"><tr><td valign=\"top\" width=\"10%\">";
976 echo "</td><td valign=\"top\">";
980 else if ($action == "sqa")
983 dump_log($action == "tail");
984 else if (isset($idx))
988 echo "</td></tr></table>";
994 if ($action == "text") {
996 } else if ($action == "qatxt") {
1000 echo "<table cellpadding=\"10\" width=\"100%\"><tr><td valign=top width=\"10%\">";
1002 echo "</td><td valign=\"top\">";
1004 if ($action == "qa")
1006 else if (isset($id))
1007 dump_log($action == "tail");
1008 else if (isset($idx))
1012 echo "</td></tr></table>";