2 $buildlogs_server = "buildlogs.pld.org.pl";
17 $qa_base = "http://ftp.pld.org.pl/.stat/builder";
20 "/kenny/rpmqa-nest-i386.txt",
21 "/kenny/rpmqa-nest-i586.txt",
22 "/kenny/rpmqa-nest-i686.txt",
24 "/ep/rpmqa-ra-i386.txt",
25 "/ep/rpmqa-ra-i586.txt",
26 "/ep/rpmqa-ra-i686.txt",
27 /* "/mifgate/rpmqa-ra-alpha.txt", */
28 "/team/rpmqa-ra-sparc.txt",
31 $local = 1; /* $local=0 for FTP */
32 $root_directory = "/home/services/ftp/pub/logs";
34 /* It should be set */
36 $langs["en_US"]["charset"]="ISO-8859-1";
37 $langs["pl_PL"]["charset"]="ISO-8859-2";
40 if (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]))
42 $rows=explode(";",$_SERVER["HTTP_ACCEPT_LANGUAGE"]);
43 $rows=explode(",",$rows[0]);
44 $lang_detected=rtrim($rows[0]);
45 } else if (preg_match("/opera/i",$_SERVER["HTTP_USER_AGENT"]))
47 $lang_detected=preg_replace("/.*\[(.*)\].*/i","\\1",$_SERVER["HTTP_USER_AGENT"]);
51 $lang_detected=preg_replace("/^pl$/i","pl_PL",$lang_detected);
53 if (isset($lang_detected) && isset($langs[$lang_detected]))
58 if (isset($_GET["lang"]))$_SESSION["lang"]=$_GET["lang"];
59 if (isset($_SESSION["lang"]))$lang=$_SESSION["lang"];
62 setlocale(LC_ALL,$lang);
63 bindtextdomain("messages","locale");
64 textdomain("messages");
66 if (isset($_GET["idx"]))$idx=$_GET["idx"];
67 if (isset($_GET["ok"]))$ok=$_GET["ok"];
68 if (isset($_GET["ns"]))$ns=$_GET["ns"];
69 if (isset($_GET["cnt"]))$cnt=$_GET["cnt"];
70 if (isset($_GET["action"]))$action=$_GET["action"];
71 if (isset($_GET["off"]))$off=$_GET["off"];
72 if (isset($_GET["id"]))$id=$_GET["id"];
74 if (isset($_POST["str"]))$str=$_POST["str"];
75 if (isset($_POST["idx"]))$idx=$_POST["idx"];
76 if (isset($_POST["action"]))$action=$_POST["action"];
80 echo '<' . '?xml version="1.0" encoding="' . _("ISO-8859-1") .'"?' . ">\n";
81 echo '<' . '?xml-stylesheet href="#internalStyle" type="text/css"?' . ">\n";
83 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
84 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
85 <html xmlns="http://www.w3.org/1999/xhtml">
87 <title>PLD Build Logs</title>
88 <?php echo '<meta http-equiv="Content-type" content="text/html; charset=' . _("ISO-8859-1") .'"/>' ."\n";?>
89 <style type="text/css"><!--
90 A { text-decoration: none; }
91 A:hover { text-decoration: underline; }
92 H1 { font-family: arial,helvetica,sans-serif;
95 H2 { font-family: arial,helvetica,sans-serif;
98 BODY,TD { font-family: arial,helvetica,sans-serif;
100 TH { font-family: arial,helvetica,sans-serif;
106 <!-- Diffrent color for visited link doesn't make much sense here...
107 this page is autogenerated and it might be misleading after some
108 build log changes. -->
109 <body bgcolor="#ffffff" text="#000000" link="#5f26cd" vlink="#5f26cd">
115 echo "<table cellpadding=\"10\"><tr><td bgcolor=\"#000000\">".
116 "<font color=\"#cccccc\"><pre>";
121 echo "</pre></font></td></tr></table>\n";
126 echo "</body></html>";
132 echo "Fatal error: $msg";
135 function open_ftp($pidx="", $pok="")
137 global $idx, $addr, $buildlogs_server, $ok;
138 global $ftp_conn, $big_url, $url, $ns;
141 if ($pidx==="")$pidx=$idx;
142 if ($pok==="")$pok=$ok;
144 if (!isset($pidx) || !isset($addr[$pidx]))
153 $a = "$addr[$pidx]/OK";
155 $a = "$addr[$pidx]/FAIL";
163 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
165 $ftp = ftp_connect($buildlogs_server);
168 mydie(_("cannot connect to")." $buildlogs_server");
172 if (ftp_login($ftp, "anonymous",
173 "buildlogs-iface@pld.org.pl") == false) {
175 mydie(_("cannot ftp login to")." $buildlogs_server");
179 $list = ftp_nlist($ftp, $a);
180 if ($list == false) {
182 mydie(_("cannot list")." $a");
191 function directory_list($pidx="",$pok="")
193 global $idx, $addr, $buildlogs_server, $ok;
194 global $root_directory, $big_url, $url, $ns;
197 if ($pidx==="")$pidx=$idx;
198 if ($pok==="")$pok=$ok;
199 if (!isset($pidx) || !isset($addr[$pidx]))
208 $a = "$addr[$pidx]/OK";
210 $a = "$addr[$pidx]/FAIL";
218 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
220 $dir = opendir("$root_directory$a");
222 while ($file = readdir($dir)) {
223 if (($file != ".") && ($file != "..")) {
224 $list[$i] = "$a/$file";
234 global $idx, $addr, $ok;
235 global $ftp_conn, $big_url, $ns, $qa_addr;
236 global $off, $cnt, $local, $root_directory;
239 $list = directory_list();
247 echo "<h1>"._("Listing of")." $addr[$idx]/OK "
248 ."(<a href=\"$big_url&ok=0\">"._("fail")."</a>)</h1>\n";
250 echo "<h1>"._("Listing of")." $addr[$idx]/FAIL "
251 ."(<a href=\"$big_url&ok=1\">"._("ok")."</a>)</h1>\n";
254 echo "<div align=\"center\"><table cols=\"4\" border=\"0\" cellspacing=\"1\" ".
255 "cellpadding=\"3\" bgcolor=\"#000000\" width=\"90%\">\n";
256 echo "<tr><th bgcolor=\"#CCCCFF\" align=\"right\" width=\"1%\">"._("No.")."</th>".
257 "<th bgcolor=\"#CCCCFF\" align=\"left\" width=\"80%\">"._("Log File").
258 "[<a href=\"$big_url&ns=1\">"._("sort")."</a>]</th>".
259 "<th bgcolor=\"#CCCCFF\" align=\"right\" width=\"15%\">"._("Size")."</th> ".
260 "<th bgcolor=\"#CCCCFF\" align=\"left\">"._("Age").
261 "[<a href=\"$big_url&ns=0\">"._("sort")."</a>]</th>".
264 function cmp($f1, $f2) {
265 global $ftp_conn, $root_directory, $local;
267 return filemtime("$root_directory$f2") - filemtime("$root_directory$f1");
268 return ftp_mdtm($ftp_conn, $f2) - ftp_mdtm($ftp_conn, $f1);
279 for ($i = $off; $i < $cnt + $off; $i++) {
280 if (!isset($list[$i]))
282 $h = bin2hex(mhash(MHASH_MD5, $list[$i]));
283 $f = preg_replace("/.*\/([^\/]*)$/", "\\1", $list[$i]);
284 $f = preg_replace("/\.(bz2|gz)$/", "", $f);
286 $s = filesize("$root_directory$list[$i]");
287 $t = $now - filemtime("$root_directory$list[$i]");
289 $s = ftp_size($ftp_conn, $list[$i]);
290 $t = $now - ftp_mdtm($ftp_conn, $list[$i]);
298 $t = $t . ngettext(" day"," days",$t);
301 $t = $t . ngettext(" hour"," hours",$t);
305 $t = $t . ngettext(" minute"," minutes",$t);
307 $u = "$big_url&off=$off&id=$h";
308 echo "<tr><td bgcolor=\"#CCCCCC\" align=\"right\">".($i+1).".</td>".
309 "<td bgcolor=\"#CCCCCC\"><a href=\"$u\">$f</a> ".
310 "[<a href=\"$u&action=text\">"._("text")."</a> | ".
311 "<a href=\"$u&action=tail\">"._("tail")."</a>]".
312 "</td><td bgcolor=\"#CCCCCC\" align=\"right\">".
313 "$s</td><td bgcolor=\"#CCCCCC\">$t</td></tr>\n";
315 echo "</table></div>\n";
317 $backarr = "<<< ";
318 $back = _("Page back");
319 $forward = _("Page forward");
320 $forwardarr = " >>>";
322 echo "<p><table width=\"90%\" align=\"center\"><tr><td align=\"left\" width=\"1%\">";
328 $hrefurl = "<a href=\"$big_url&off=$noff\">";
329 echo "$hrefurl$backarr</a></td><td align=\"left\">$hrefurl$back</a>";
331 echo "$backarr</td><td align=\"left\">$back";
334 echo "</td>\n<td align=\"center\">";
336 if ($qa_addr[$idx] != "") {
337 echo "[<a href=\"$big_url&action=qa\">"._("View <quot>rpm -qa</quot> of builder")."</a>]";
342 echo "</td>\n<td align=right>";
343 if ($off + $cnt < count($list)) {
347 $hrefurl = "<a href=\"$big_url&off=$noff\">";
348 echo "$hrefurl$forward</a></td><td align=right width=1%>$hrefurl$forwardarr</a>";
350 echo "$forward</td><td align=right width=1%>$forwardarr";
352 echo "</td>\n</tr></table></p>";
361 global $idx, $addr, $ok;
362 global $ftp_conn, $root_directory, $big_url, $ns, $id;
363 global $buildlogs_server, $local;
368 $list = directory_list();
376 for ($i = 0; $i < count($list); $i++) {
377 $h = bin2hex(mhash(MHASH_MD5, $list[$i]));
384 mydie(_("cannot find specified file:")." $id");
393 function dump_log($tail)
395 global $idx, $addr, $ok, $url;
396 global $ftp_conn, $root_directory, $big_url, $ns, $id, $cnt, $off;
397 global $buildlogs_server, $local, $qa_addr;
404 $df = preg_replace("/.*\/([^\/]*)$/", "\\1", $f);
405 $df = preg_replace("/\.(bz2|gz)$/", "", $df);
409 echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" bgcolor=\"#000000\">";
411 function one_item($h, $t) {
412 echo "<tr><td bgcolor=\"#ccccff\">$h:</td>".
413 "<td bgcolor=\"#cccccc\">$t</td></tr>";
416 function href($h, $c) {
417 return "<a href=\"$h\">$c</a>";
420 one_item(_("Status"), ($ok == 1 ?
421 "<font color=green><b>"._("OK")."</b></font>" :
422 "<font color=red><b>"._("Failed")."</b></a>"));
423 one_item(_("Source URL"),
424 href("ftp://$buildlogs_server$f",
425 "ftp://$buildlogs_server$f"));
427 $bu = "$big_url&off=$off";
429 one_item(_("text/plain URL"),
430 href("$bu&id=$id&action=text",
433 one_item(_("full text"),
434 href("$bu&id=$id",
438 if ($qa_addr[$idx] != "") {
439 one_item(_("rpm -qa of builder"), href("$bu&action=qa", _("View!")));
441 one_item(_("rpm -qa of builder"), _("Not available"));
444 one_item("Data", date("Y/m/d H:i:s", filemtime("$root_directory$f")));
446 one_item("Data", date("Y/m/d H:i:s", ftp_mdtm($ftp_conn, $f)));
449 echo "<tr><td>Here:</td><td>" .
450 "<a href=\"$url?idx=$idx&ok=$ok&id=$id\">".
451 "http://" . getenv("SERVER_NAME") .
452 getenv("SCRIPT_NAME") . "?idx=$idx&ok=$ok&id=$id</a>" .
455 echo "</table><h2>"._("Content:")."</h2>";
463 # what can I say beside PHP suxx? how the fuck should I create
464 # bidirectional pipe? gotta use wget
466 if (preg_match("/\.bz2$/", $f)) {
468 } elseif (preg_match("/\.gz$/", $f)) {
475 $cmd = "$filter $root_directory$f";
477 $cmd = "wget -q -O - ftp://$buildlogs_server$f 2>&1 | $filter 2>&1";
480 $cmd = "$cmd | tail -n 100";
481 $fd = popen($cmd, "r");
483 while (($s = fgets($fd, 1000)) != false) {
484 $s = htmlspecialchars($s);
494 [<a href="<?php echo $bu; ?>"><?=_("Back to list of logs")?></a>]
497 [<a href="<?php echo "$bu&action=qa"
498 ?>"><?=_("View rpm -qa of builder")?></a>]
508 global $ftp_conn, $root_directory;
509 global $buildlogs_server, $local;
511 header("Content-type: text/plain");
518 echo "# src : ftp://$buildlogs_server$f\n";
521 date("Y/m/d H:i:s", filemtime("$root_directory$f")) . "\n";
524 date("Y/m/d H:i:s", ftp_mdtm($ftp_conn, $f)) . "\n";
529 if (preg_match("/\.bz2$/", $f)) {
531 } elseif (preg_match("/\.gz$/", $f)) {
538 $cmd = "$filter $root_directory$f";
540 $cmd = "wget -q -O - ftp://$buildlogs_server$f 2>&1 | $filter 2>&1";
542 $fd = popen($cmd, "r");
543 while (($s = fgets($fd, 1000)) != false) {
549 function list_archs()
551 global $addr, $url, $idx, $cnt;
556 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
558 echo "<table width=\"100%\" border=\"0\">\n";
559 echo "<tr><td bgcolor=\"#cccccc\" nowrap=\"nowrap\">"._("Failed")."</td><td bgcolor=\"#cccccc\">"._("Ok")."</td></tr>\n";
560 for ($i = 0; $i < count($addr); $i++)
561 echo "<tr><td nowrap=\"nowrap\">".
562 "<a href=\"$url?idx=$i&ok=0&cnt=$cnt\">$addr[$i]</a></td><td nowrap=\"nowrap\">".
563 "[<a href=\"$url?idx=$i&ok=1&cnt=$cnt\">OK</a>]</td>".
564 #"<td>[<a href=\"$url?idx=$i&action=qa\">qa</a>]</td>".
566 echo "</table><hr />\n";
568 echo "<div align=\"center\">";
569 echo "<a href=\"$big_url&action=adv_search\">"._("Advanced Search")."</a><br />\n";
571 echo "<a href=\"$url\">main()</a><hr />\n";
572 echo "<a href=\"http://www.pld.org.pl/\"><img src=\"powpld.png\" ".
573 "alt=\""._("Powered by PLD Linux")."\" border=\"0\" /></a><br />\n" .
575 "<a href=\"mailto:feedback@pld.org.pl\">PLD Team</a>\n".
579 echo "<div align=\"center\"><small>";
580 $pow = array("vim", "php", "brain", "power", "electricity",
581 "coffee", "ufo", "penguin", "GNOME", "ELF", "DWARF",
582 "voodoo magic", "Linux", "x-files", "X", "foobar",
583 "/dev/null", "/dev/zero", "/dev/drzewo",
584 "Leppe'", "matrix", "Neo", "PDP-11",
585 "Ken", "GNU antilope", "PDP-7", "ITS", "Multics",
586 "foobarbaz", "ed", "Joe", "Unix conspiracy",
587 "overclock", "The Right Thing",
588 "The Bad Thing", "Star Treck", "NSA", "NASA",
589 "achelon", "VAX", "Real Programmer",
590 "Real Operating System", "Real Computer",
591 "computron", "bogon", "quantum bogodynamics",
592 "BOFH", "/dev/ill", "nasi tu byli",
593 "Paranoid Android", "Lunatic Corp", "Parallel thinking"
594 # feel free to add sth if you change this file ;)
596 echo _("Powered by")." ";
598 for ($i = 0; $i < $max; $i++) {
599 $x = rand(0, count($pow) - 1);
600 if ($pow[$x] == "") $i--;
601 else echo $pow[$x] . ($i == $max - 1 ? "." : ", ");
604 echo "</small></div>";
608 if ($qa_addr[$idx] != "") {
609 echo "<form action=\"index.php\" method=\"post\">";
610 echo "<input type=hidden name=idx value=$idx />";
611 echo "<input type=hidden name=action value=sqa />";
612 echo "<input type=text size=14 name=str /><br />";
613 echo "<input type=submit name=submit value=\""._("Search rpmqa!")."\" />";
620 global $idx, $qa_addr, $qa_base;
622 if (!isset($idx) || !isset($qa_addr[$idx]))
627 if ($qa_addr[$idx] == "")
630 return fopen("$qa_base$qa_addr[$idx]", "r");
635 global $url, $idx, $qa_addr, $str;
638 echo "<h1>"._("Search results for")." '$str' "._("in")." $qa_addr[$idx]</h1>";
643 echo _("Sorry, cannot open.");
645 while (($s = fgets($f, 1000)) != false) {
646 if (stristr($s, $str))
654 function dump_qa($plain)
656 global $url, $idx, $qa_addr;
663 header("Content-type: text/plain");
664 echo _("# rpm -qa of")." $a\n";
666 echo "<h1>"._("rpm -qa of")." $a</h1>";
667 echo "<a href=\"$url?idx=$idx&action=qatxt\">"._("text/plain version")."</a>";
672 echo _("Sorry, cannot open.");
674 while (($s = fgets($f, 1000)) != false) {
684 function adv_search()
686 global $addr, $url, $local, $_POST, $off, $cnt, $root_directory;
688 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
690 echo "<form action=\"index.php?action=adv_search\" method=\"post\">";
692 echo "<div align=\"center\">";
693 echo "<table border=\"0\">\n";
695 echo "<td>"._("Package name")."</td>\n";
696 echo "<td><input type=\"text\" size=\"20\" name=\"name\" value=\"".$_POST[name]."\"/></td>\n";
700 echo "<td>"._("Days")."</td>\n";
701 echo "<td>"._("From").": <input type=\"text\" size=\"20\" name=\"age1\" value=\"".$_POST["age1"]."\" /></td>\n";
702 echo "<td>"._("To").": <input type=\"text\" size=\"20\" name=\"age2\" value=\"".$_POST["age2"]."\" /></td>\n";
706 echo "<td>"._("Size")."</td>\n";
707 echo "<td>"._("From").": <input type=\"text\" size=\"20\" name=\"size1\" value=\"".$_POST["size1"]."\" /></td>\n";
708 echo "<td>"._("To").": <input type=\"text\" size=\"20\" name=\"size2\" value=\"".$_POST["size2"]."\" /></td>\n";
712 echo "<td>"._("Search logs:")."</td>\n";
716 echo "<td>"._("Failed")."</td>\n";
717 echo "<td>"._("OK")."</td>\n";
720 for ($i = 0; $i < count($addr); $i++)
724 $check=" checked=\"on\"";
725 echo "<td><input name=$name type=\"checkbox\"$check>".$addr[$i]."</input></td>\n";
727 $check=" checked=\"on\"";
728 echo "<td><input name=$name type=\"checkbox\"$check>".$addr[$i]."</input></td>\n";
733 echo "<td><input type=submit name=submit value=\""._("Search!")."\" /></td>";
738 // if (isset($_POST["name"]) || isset($_POST["age1"]) || isset($_POST["age2"]) ||
739 // isset($_POST["size1"]) || isset($_POST["size2"]))
740 if (($_POST["name"]!="") || ($_POST["age1"]!="") || ($_POST["age2"]!="") ||
741 ($_POST["size1"]!="") || ($_POST["size2"]!=""))
745 for ($i = 0; $i < count($addr); $i++)
750 if (isset($_POST["as".$j."_".$i]))
753 $tmp_list = directory_list($i,$j);
755 $tmp_list = open_ftp($i,$j);
757 if (is_array($tmp_list))
759 while (list($k,$name)=each($tmp_list))
761 $s = filesize("$root_directory$name");
762 $t = $now - filemtime("$root_directory$name");
764 if (($_POST["name"]!="") && (!preg_match("/".$_POST["name"]."/i",$name)))continue;
765 if (($_POST["age1"]) && ($_POST["age1"]>$t))continue;
766 if (($_POST["age2"]) && ($_POST["age2"]<$t))continue;
768 if (($_POST["size1"]) && ($_POST["size1"]>$s))continue;
769 if (($_POST["size2"]) && ($_POST["size2"]<$s))continue;
771 $list[$i."_".$j."_".$k]=$name;
777 if (sizeof($list)==0)
779 echo _("Nothing found");
783 echo "<table border=\"0\" cellspacing=\"1\" ".
784 "cellpadding=3 bgcolor=\"#000000\" width=\"90%\">\n";
785 echo "<tr><th bgcolor=\"#CCCCFF\" align=\"left\" width=\"10%\">"._("Builder").
786 "[<a href=\"$big_url&ns=2\">"._("sort")."</a>]</th>";
787 echo "<th bgcolor=\"#CCCCFF\" align=\"left\" width=\"60%\">"._("Log File").
788 "[<a href=\"$big_url&ns=1\">"._("sort")."</a>]</th>".
789 "<th bgcolor=\"#CCCCFF\" align=\"right\" width=\"15%\">"._("Size")."</th> ".
790 "<th bgcolor=\"#CCCCFF\" align=\"left\">"._("Age").
791 "[<a href=\"$big_url&ns=0\">"._("sort")."</a>]</th>".
794 function cmp1($f1, $f2) {
795 global $ftp_conn, $root_directory, $local;
797 return filemtime("$root_directory$f2") - filemtime("$root_directory$f1");
798 return ftp_mdtm($ftp_conn, $f2) - ftp_mdtm($ftp_conn, $f1);
801 function cmp2($f1, $f2) {
802 list($p11,$p12,$p13)=explode("_",$f1);
803 list($p21,$p22,$p23)=explode("_",$f2);
804 return strcmp($f2,$f1);
809 usort($list, "cmp1");
810 // } else if ($ns == 2)
812 // uksort($list, "cmp2");
819 while (list($k,$name)=each($list))
821 if (($counter<$off) || ($counter>$off+$cnt-1))
828 list($i,$j,$k)=explode("_",$k);
830 $h = bin2hex(mhash(MHASH_MD5, $name));
831 $f = preg_replace("/.*\/([^\/]*)$/", "\\1", $name);
832 $f = preg_replace("/\.(bz2|gz)$/", "", $f);
834 $s = filesize("$root_directory$name");
835 $t = $now - filemtime("$root_directory$name");
837 $s = ftp_size($ftp_conn, $list[$i]);
838 $t = $now - ftp_mdtm($ftp_conn, $list[$i]);
846 $t = $t . ngettext(" day"," days",$t);
849 $t = $t . ngettext(" hour"," hours",$t);
853 $t = $t . ngettext(" minute"," minutes",$t);
855 $big_url = "$url?idx=$i&ok=$j&ns=$ns&cnt=$cnt";
856 $u = "$big_url&off=$off&id=$h";
858 $builder=$addr[$i]."/".(($j=="1")?"OK":"FAIL");
860 echo "<td bgcolor=#CCCCCC><a href=\"$u\">$builder</a></td>";
861 echo "<td bgcolor=#CCCCCC><a href=\"$u\">$f</a> ".
862 "[<a href=\"$u&action=text\">"._("text")."</a> | ".
863 "<a href=\"$u&action=tail\">"._("tail")."</a>]".
864 "</td><td bgcolor=#CCCCCC align=right>".
865 "$s</td><td bgcolor=#CCCCCC>$t</td></tr>\n";
867 echo "</table></div>\n";
869 $backarr = "<<< ";
870 $back = _("Page back");
871 $forward = _("Page forward");
872 $forwardarr = " >>>";
876 echo "<p><table width=\"90%\" align=\"center\"><tr><td align=left width=1%>";
882 $hrefurl = "<a href=\"$big_url&off=$noff\">";
883 echo "$hrefurl$backarr</a></td><td align=left>$hrefurl$back</a>";
885 echo "$backarr</td><td align=left>$back";
888 echo "</td>\n<td align=\"center\">";
889 echo "</td>\n<td align=\"right\">";
891 if ($off + $cnt < count($list))
896 $hrefurl = "<a href=\"$big_url&off=$noff\">";
897 echo "$hrefurl$forward</a></td><td align=\"right\" width=\"1%\">$hrefurl$forwardarr</a>";
901 echo "$forward</td><td align=\"right\" width=\"1%\">$forwardarr";
904 echo "</td>\n</tr></table></p>";
914 echo _("Enter something!");
922 <table border="0" width="100%"><tr><td width="20%"> </td><td>
923 <h1><?=_("Welcome!")?></h1>
924 <p><?=_("Welcome to PLD Build Logs WWW interface.")?></p><p>
925 <?=_("Feel free to email bug reports, complaints and feature requests ")?>
926 <!-- ech... niech strace... -->
927 <a href="mailto:feedback@pld.org.pl"><?=_("to us")?></a>. <?=_("Positive opinions are also")?>
928 <a href="mailto:feedback@pld.org.pl"><?=_("welcome")?></a> ;)</p>
929 <p>Version: $Id: index.php,v 1.50 2002/10/13 19:44:15 ankry Exp $</p>
930 </td><td width="20%"> </td></tr>
935 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
936 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
937 header("Cache-Control: no-cache, must-revalidate");
938 header("Pragma: no-cache");
942 if ($action == "text") {
944 } else if ($action == "adv_search") {
948 } else if ($action == "qatxt") {
952 echo "<table cellpadding=\"10\" width=\"100%\"><tr><td valign=\"top\" width=\"10%\">";
954 echo "</td><td valign=\"top\">";
958 else if ($action == "sqa")
961 dump_log($action == "tail");
962 else if (isset($idx))
966 echo "</td></tr></table>";
972 if ($action == "text") {
974 } else if ($action == "qatxt") {
978 echo "<table cellpadding=\"10\" width=\"100%\"><tr><td valign=top width=\"10%\">";
980 echo "</td><td valign=\"top\">";
985 dump_log($action == "tail");
986 else if (isset($idx))
990 echo "</td></tr></table>";