2 $buildlogs_server = "buildlogs.pld.org.pl";
23 $qa_base = "http://ftp.pld.org.pl/.stat/builder";
26 "/kenny/rpmqa-nest-i386.txt",
27 "/kenny/rpmqa-nest-i586.txt",
28 "/kenny/rpmqa-nest-i686.txt",
30 "/ep/rpmqa-ra-i386.txt",
31 "/ep/rpmqa-ra-i586.txt",
32 "/ep/rpmqa-ra-i686.txt",
33 "/mifgate/rpmqa-ra-alpha.txt",
34 "/team/rpmqa-ra-sparc.txt",
36 "/ep/rpmqa-ac-i386.txt",
37 "/ep/rpmqa-ac-i386.txt",
38 "/ep/rpmqa-ac-i386.txt",
39 "/alpha/rpmqa-ac-alpha.txt",
40 "/newboss/rpmqa-ac-sparc.txt",
43 $local = 1; /* $local=0 for FTP */
44 $root_directory = "/home/services/ftp/pub/logs";
46 /* It should be set */
48 $langs["en_US"]["charset"]="ISO-8859-1";
49 $langs["pl_PL"]["charset"]="ISO-8859-2";
52 if (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]))
54 $rows=explode(";",$_SERVER["HTTP_ACCEPT_LANGUAGE"]);
55 $rows=explode(",",$rows[0]);
56 $lang_detected=rtrim($rows[0]);
57 } else if (preg_match("/opera/i",$_SERVER["HTTP_USER_AGENT"]))
59 $lang_detected=preg_replace("/.*\[(.*)\].*/i","\\1",$_SERVER["HTTP_USER_AGENT"]);
63 $lang_detected=preg_replace("/^pl$/i","pl_PL",$lang_detected);
65 if (isset($lang_detected) && isset($langs[$lang_detected]))
70 if (isset($_GET["lang"]))$_SESSION["lang"]=$_GET["lang"];
71 if (isset($_SESSION["lang"]))$lang=$_SESSION["lang"];
74 setlocale(LC_ALL,$lang);
75 bindtextdomain("messages","locale");
76 textdomain("messages");
78 if (isset($_GET["idx"]))$idx=$_GET["idx"];
79 if (isset($_GET["ok"]))$ok=$_GET["ok"];
80 if (isset($_GET["ns"]))$ns=$_GET["ns"];
81 if (isset($_GET["cnt"]))$cnt=$_GET["cnt"];
82 if (isset($_GET["action"]))$action=$_GET["action"];
83 if (isset($_GET["off"]))$off=$_GET["off"];
84 if (isset($_GET["id"]))$id=$_GET["id"];
86 if (isset($_POST["str"]))$str=$_POST["str"];
87 if (isset($_POST["idx"]))$idx=$_POST["idx"];
88 if (isset($_POST["action"]))$action=$_POST["action"];
92 echo '<' . '?xml version="1.0" encoding="' . _("ISO-8859-1") .'"?' . ">\n";
93 echo '<' . '?xml-stylesheet href="#internalStyle" type="text/css"?' . ">\n";
95 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
96 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
97 <html xmlns="http://www.w3.org/1999/xhtml">
99 <title>PLD Build Logs</title>
100 <?php echo '<meta http-equiv="Content-type" content="text/html; charset=' . _("ISO-8859-1") .'"/>' ."\n";?>
101 <style type="text/css"><!--
102 A { text-decoration: none; }
103 A:hover { text-decoration: underline; }
104 H1 { font-family: arial,helvetica,sans-serif;
107 H2 { font-family: arial,helvetica,sans-serif;
110 BODY,TD { font-family: arial,helvetica,sans-serif;
112 TH { font-family: arial,helvetica,sans-serif;
118 <!-- Diffrent color for visited link doesn't make much sense here...
119 this page is autogenerated and it might be misleading after some
120 build log changes. -->
121 <body bgcolor="#ffffff" text="#000000" link="#5f26cd" vlink="#5f26cd">
127 echo "<table cellpadding=\"10\"><tr><td bgcolor=\"#000000\">".
128 "<font color=\"#cccccc\"><pre>";
133 echo "</pre></font></td></tr></table>\n";
138 echo "</body></html>";
144 echo "Fatal error: $msg";
147 function open_ftp($pidx="", $pok="")
149 global $idx, $addr, $buildlogs_server, $ok;
150 global $ftp_conn, $big_url, $url, $ns;
153 if ($pidx==="")$pidx=$idx;
154 if ($pok==="")$pok=$ok;
156 if (!isset($pidx) || !isset($addr[$pidx]))
165 $a = "$addr[$pidx]/OK";
167 $a = "$addr[$pidx]/FAIL";
175 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
177 $ftp = ftp_connect($buildlogs_server);
180 mydie(_("cannot connect to")." $buildlogs_server");
184 if (ftp_login($ftp, "anonymous",
185 "buildlogs-iface@pld.org.pl") == false) {
187 mydie(_("cannot ftp login to")." $buildlogs_server");
191 $list = ftp_nlist($ftp, $a);
192 if ($list == false) {
194 mydie(_("cannot list")." $a");
203 function directory_list($pidx="",$pok="")
205 global $idx, $addr, $buildlogs_server, $ok;
206 global $root_directory, $big_url, $url, $ns;
209 if ($pidx==="")$pidx=$idx;
210 if ($pok==="")$pok=$ok;
211 if (!isset($pidx) || !isset($addr[$pidx]))
220 $a = "$addr[$pidx]/OK";
222 $a = "$addr[$pidx]/FAIL";
230 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
232 $dir = opendir("$root_directory$a");
234 while ($file = readdir($dir)) {
235 if (($file != ".") && ($file != "..")) {
236 $list[$i] = "$a/$file";
246 global $idx, $addr, $ok;
247 global $ftp_conn, $big_url, $ns, $qa_addr;
248 global $off, $cnt, $local, $root_directory;
251 $list = directory_list();
259 echo "<h1>"._("Listing of")." $addr[$idx]/OK "
260 ."(<a href=\"$big_url&ok=0\">"._("fail")."</a>)</h1>\n";
262 echo "<h1>"._("Listing of")." $addr[$idx]/FAIL "
263 ."(<a href=\"$big_url&ok=1\">"._("ok")."</a>)</h1>\n";
266 echo "<div align=\"center\"><table cols=\"4\" border=\"0\" cellspacing=\"1\" ".
267 "cellpadding=\"3\" bgcolor=\"#000000\" width=\"90%\">\n";
268 echo "<tr><th bgcolor=\"#CCCCFF\" align=\"right\" width=\"1%\">"._("No.")."</th>".
269 "<th bgcolor=\"#CCCCFF\" align=\"left\" width=\"80%\">"._("Log File").
270 "[<a href=\"$big_url&ns=1\">"._("sort")."</a>]</th>".
271 "<th bgcolor=\"#CCCCFF\" align=\"right\" width=\"15%\">"._("Size")."</th> ".
272 "<th bgcolor=\"#CCCCFF\" align=\"left\">"._("Age").
273 "[<a href=\"$big_url&ns=0\">"._("sort")."</a>]</th>".
276 function cmp($f1, $f2) {
277 global $ftp_conn, $root_directory, $local;
279 return filemtime("$root_directory$f2") - filemtime("$root_directory$f1");
280 return ftp_mdtm($ftp_conn, $f2) - ftp_mdtm($ftp_conn, $f1);
291 for ($i = $off; $i < $cnt + $off; $i++) {
292 if (!isset($list[$i]))
294 $h = bin2hex(mhash(MHASH_MD5, $list[$i]));
295 $f = preg_replace("/.*\/([^\/]*)$/", "\\1", $list[$i]);
296 $f = preg_replace("/\.(bz2|gz)$/", "", $f);
298 $s = filesize("$root_directory$list[$i]");
299 $t = $now - filemtime("$root_directory$list[$i]");
301 $s = ftp_size($ftp_conn, $list[$i]);
302 $t = $now - ftp_mdtm($ftp_conn, $list[$i]);
310 $t = $t . " " . ngettext("day","days",$t);
313 $t = $t . " " . ngettext("hour","hours",$t);
317 $t = $t . " " . ngettext("minute","minutes",$t);
319 $u = "$big_url&off=$off&id=$h";
320 echo "<tr><td bgcolor=\"#CCCCCC\" align=\"right\">".($i+1).".</td>".
321 "<td bgcolor=\"#CCCCCC\"><a href=\"$u\">$f</a> ".
322 "[<a href=\"$u&action=text\">"._("text")."</a> | ".
323 "<a href=\"$u&action=tail\">"._("tail")."</a>]".
324 "</td><td bgcolor=\"#CCCCCC\" align=\"right\">".
325 "$s</td><td bgcolor=\"#CCCCCC\">$t</td></tr>\n";
327 echo "</table></div>\n";
329 $backarr = "<<< ";
330 $back = _("Page back");
331 $forward = _("Page forward");
332 $forwardarr = " >>>";
334 echo "<p><table width=\"90%\" align=\"center\"><tr><td align=\"left\" width=\"1%\">";
340 $hrefurl = "<a href=\"$big_url&off=$noff\">";
341 echo "$hrefurl$backarr</a></td><td align=\"left\">$hrefurl$back</a>";
343 echo "$backarr</td><td align=\"left\">$back";
346 echo "</td>\n<td align=\"center\">";
348 if ($qa_addr[$idx] != "") {
349 echo "[<a href=\"$big_url&action=qa\">"._("View <quot>rpm -qa</quot> of builder")."</a>]";
354 echo "</td>\n<td align=right>";
355 if ($off + $cnt < count($list)) {
359 $hrefurl = "<a href=\"$big_url&off=$noff\">";
360 echo "$hrefurl$forward</a></td><td align=right width=1%>$hrefurl$forwardarr</a>";
362 echo "$forward</td><td align=right width=1%>$forwardarr";
364 echo "</td>\n</tr></table></p>";
373 global $idx, $addr, $ok;
374 global $ftp_conn, $root_directory, $big_url, $ns, $id;
375 global $buildlogs_server, $local;
380 $list = directory_list();
388 for ($i = 0; $i < count($list); $i++) {
389 $h = bin2hex(mhash(MHASH_MD5, $list[$i]));
396 mydie(_("cannot find specified file:")." $id");
405 function dump_log($tail)
407 global $idx, $addr, $ok, $url;
408 global $ftp_conn, $root_directory, $big_url, $ns, $id, $cnt, $off;
409 global $buildlogs_server, $local, $qa_addr;
416 $df = preg_replace("/.*\/([^\/]*)$/", "\\1", $f);
417 $df = preg_replace("/\.(bz2|gz)$/", "", $df);
421 echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" bgcolor=\"#000000\">";
423 function one_item($h, $t) {
424 echo "<tr><td bgcolor=\"#ccccff\">$h:</td>".
425 "<td bgcolor=\"#cccccc\">$t</td></tr>";
428 function href($h, $c) {
429 return "<a href=\"$h\">$c</a>";
432 one_item(_("Status"), ($ok == 1 ?
433 "<font color=green><b>"._("OK")."</b></font>" :
434 "<font color=red><b>"._("Failed")."</b></a>"));
435 one_item(_("Source URL"),
436 href("ftp://$buildlogs_server$f",
437 "ftp://$buildlogs_server$f"));
439 $bu = "$big_url&off=$off";
441 one_item(_("text/plain URL"),
442 href("$bu&id=$id&action=text",
445 one_item(_("full text"),
446 href("$bu&id=$id",
450 if ($qa_addr[$idx] != "") {
451 one_item(_("rpm -qa of builder"), href("$bu&action=qa", _("View!")));
453 one_item(_("rpm -qa of builder"), _("Not available"));
456 one_item("Data", date("Y/m/d H:i:s", filemtime("$root_directory$f")));
458 one_item("Data", date("Y/m/d H:i:s", ftp_mdtm($ftp_conn, $f)));
461 echo "<tr><td>Here:</td><td>" .
462 "<a href=\"$url?idx=$idx&ok=$ok&id=$id\">".
463 "http://" . getenv("SERVER_NAME") .
464 getenv("SCRIPT_NAME") . "?idx=$idx&ok=$ok&id=$id</a>" .
467 echo "</table><h2>"._("Content:")."</h2>";
475 # what can I say beside PHP suxx? how the fuck should I create
476 # bidirectional pipe? gotta use wget
478 if (preg_match("/\.bz2$/", $f)) {
480 } elseif (preg_match("/\.gz$/", $f)) {
487 $cmd = "$filter $root_directory$f";
489 $cmd = "wget -q -O - ftp://$buildlogs_server$f 2>&1 | $filter 2>&1";
492 $cmd = "$cmd | tail -n 100";
493 $fd = popen($cmd, "r");
495 while (($s = fgets($fd, 1000)) != false) {
496 $s = htmlspecialchars($s);
506 [<a href="<?php echo $bu; ?>"><?=_("Back to list of logs")?></a>]
509 [<a href="<?php echo "$bu&action=qa"
510 ?>"><?=_("View rpm -qa of builder")?></a>]
520 global $ftp_conn, $root_directory;
521 global $buildlogs_server, $local;
523 header("Content-type: text/plain");
530 echo "# src : ftp://$buildlogs_server$f\n";
533 date("Y/m/d H:i:s", filemtime("$root_directory$f")) . "\n";
536 date("Y/m/d H:i:s", ftp_mdtm($ftp_conn, $f)) . "\n";
541 if (preg_match("/\.bz2$/", $f)) {
543 } elseif (preg_match("/\.gz$/", $f)) {
550 $cmd = "$filter $root_directory$f";
552 $cmd = "wget -q -O - ftp://$buildlogs_server$f 2>&1 | $filter 2>&1";
554 $fd = popen($cmd, "r");
555 while (($s = fgets($fd, 1000)) != false) {
561 function list_archs()
563 global $addr, $url, $idx, $cnt;
568 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
570 echo "<table width=\"100%\" border=\"0\">\n";
571 echo "<tr><td bgcolor=\"#cccccc\" nowrap=\"nowrap\">"._("Failed")."</td><td bgcolor=\"#cccccc\">"._("Ok")."</td></tr>\n";
572 for ($i = 0; $i < count($addr); $i++)
573 echo "<tr><td nowrap=\"nowrap\">".
574 "<a href=\"$url?idx=$i&ok=0&cnt=$cnt\">$addr[$i]</a></td><td nowrap=\"nowrap\">".
575 "[<a href=\"$url?idx=$i&ok=1&cnt=$cnt\">OK</a>]</td>".
576 #"<td>[<a href=\"$url?idx=$i&action=qa\">qa</a>]</td>".
578 echo "</table><hr />\n";
580 echo "<div align=\"center\">";
581 echo "<a href=\"$big_url&action=adv_search\">"._("Advanced Search")."</a><br />\n";
583 echo "<a href=\"$url\">main()</a><hr />\n";
584 echo "<a href=\"http://www.pld.org.pl/\"><img src=\"powpld.png\" ".
585 "alt=\""._("Powered by PLD Linux")."\" border=\"0\" /></a><br />\n" .
587 "<a href=\"mailto:feedback@pld.org.pl\">PLD Team</a>\n".
591 echo "<div align=\"center\"><small>";
592 $pow = array("vim", "php", "brain", "power", "electricity",
593 "coffee", "ufo", "penguin", "GNOME", "ELF", "DWARF",
594 "voodoo magic", "Linux", "x-files", "X", "foobar",
595 "/dev/null", "/dev/zero", "/dev/drzewo",
596 "Leppe'", "matrix", "Neo", "PDP-11",
597 "Ken", "GNU antilope", "PDP-7", "ITS", "Multics",
598 "foobarbaz", "ed", "Joe", "Unix conspiracy",
599 "overclock", "The Right Thing",
600 "The Bad Thing", "Star Treck", "NSA", "NASA",
601 "achelon", "VAX", "Real Programmer",
602 "Real Operating System", "Real Computer",
603 "computron", "bogon", "quantum bogodynamics",
604 "BOFH", "/dev/ill", "nasi tu byli",
605 "Paranoid Android", "Lunatic Corp", "Parallel thinking"
606 # feel free to add sth if you change this file ;)
608 echo _("Powered by")." ";
610 for ($i = 0; $i < $max; $i++) {
611 $x = rand(0, count($pow) - 1);
612 if ($pow[$x] == "") $i--;
613 else echo $pow[$x] . ($i == $max - 1 ? "." : ", ");
616 echo "</small></div>";
620 if ($qa_addr[$idx] != "") {
621 echo "<form action=\"index.php\" method=\"post\">";
622 echo "<input type=hidden name=idx value=$idx />";
623 echo "<input type=hidden name=action value=sqa />";
624 echo "<input type=text size=14 name=str /><br />";
625 echo "<input type=submit name=submit value=\""._("Search rpmqa!")."\" />";
632 global $idx, $qa_addr, $qa_base;
634 if (!isset($idx) || !isset($qa_addr[$idx]))
639 if ($qa_addr[$idx] == "")
642 return fopen("$qa_base$qa_addr[$idx]", "r");
647 global $url, $idx, $qa_addr, $str;
650 echo "<h1>"._("Search results for")." '$str' "._("in")." $qa_addr[$idx]</h1>";
655 echo _("Sorry, cannot open.");
657 while (($s = fgets($f, 1000)) != false) {
658 if (stristr($s, $str))
666 function dump_qa($plain)
668 global $url, $idx, $qa_addr;
675 header("Content-type: text/plain");
676 echo _("# rpm -qa of")." $a\n";
678 echo "<h1>"._("rpm -qa of")." $a</h1>";
679 echo "<a href=\"$url?idx=$idx&action=qatxt\">"._("text/plain version")."</a>";
684 echo _("Sorry, cannot open.");
686 while (($s = fgets($f, 1000)) != false) {
696 function adv_search()
698 global $addr, $url, $local, $_POST, $off, $cnt, $root_directory;
700 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
702 echo "<form action=\"index.php?action=adv_search\" method=\"post\">";
704 echo "<div align=\"center\">";
705 echo "<table border=\"0\">\n";
707 echo "<td>"._("Package name")."</td>\n";
708 echo "<td><input type=\"text\" size=\"20\" name=\"name\" value=\"".$_POST[name]."\"/></td>\n";
712 echo "<td>"._("Days")."</td>\n";
713 echo "<td>"._("From").": <input type=\"text\" size=\"20\" name=\"age1\" value=\"".$_POST["age1"]."\" /></td>\n";
714 echo "<td>"._("To").": <input type=\"text\" size=\"20\" name=\"age2\" value=\"".$_POST["age2"]."\" /></td>\n";
718 echo "<td>"._("Size")."</td>\n";
719 echo "<td>"._("From").": <input type=\"text\" size=\"20\" name=\"size1\" value=\"".$_POST["size1"]."\" /></td>\n";
720 echo "<td>"._("To").": <input type=\"text\" size=\"20\" name=\"size2\" value=\"".$_POST["size2"]."\" /></td>\n";
724 echo "<td>"._("Search logs:")."</td>\n";
728 echo "<td>"._("Failed")."</td>\n";
729 echo "<td>"._("OK")."</td>\n";
732 for ($i = 0; $i < count($addr); $i++)
736 $check=" checked=\"on\"";
737 echo "<td><input name=$name type=\"checkbox\"$check>".$addr[$i]."</input></td>\n";
739 $check=" checked=\"on\"";
740 echo "<td><input name=$name type=\"checkbox\"$check>".$addr[$i]."</input></td>\n";
745 echo "<td><input type=submit name=submit value=\""._("Search!")."\" /></td>";
750 // if (isset($_POST["name"]) || isset($_POST["age1"]) || isset($_POST["age2"]) ||
751 // isset($_POST["size1"]) || isset($_POST["size2"]))
752 if (($_POST["name"]!="") || ($_POST["age1"]!="") || ($_POST["age2"]!="") ||
753 ($_POST["size1"]!="") || ($_POST["size2"]!=""))
757 for ($i = 0; $i < count($addr); $i++)
762 if (isset($_POST["as".$j."_".$i]))
765 $tmp_list = directory_list($i,$j);
767 $tmp_list = open_ftp($i,$j);
769 if (is_array($tmp_list))
771 while (list($k,$name)=each($tmp_list))
773 $s = filesize("$root_directory$name");
774 $t = $now - filemtime("$root_directory$name");
776 if (($_POST["name"]!="") && (!preg_match("/".$_POST["name"]."/i",$name)))continue;
777 if (($_POST["age1"]) && ($_POST["age1"]>$t))continue;
778 if (($_POST["age2"]) && ($_POST["age2"]<$t))continue;
780 if (($_POST["size1"]) && ($_POST["size1"]>$s))continue;
781 if (($_POST["size2"]) && ($_POST["size2"]<$s))continue;
783 $list[$i."_".$j."_".$k]=$name;
789 if (sizeof($list)==0)
791 echo _("Nothing found");
795 echo "<table border=\"0\" cellspacing=\"1\" ".
796 "cellpadding=3 bgcolor=\"#000000\" width=\"90%\">\n";
797 echo "<tr><th bgcolor=\"#CCCCFF\" align=\"left\" width=\"10%\">"._("Builder").
798 "[<a href=\"$big_url&ns=2\">"._("sort")."</a>]</th>";
799 echo "<th bgcolor=\"#CCCCFF\" align=\"left\" width=\"60%\">"._("Log File").
800 "[<a href=\"$big_url&ns=1\">"._("sort")."</a>]</th>".
801 "<th bgcolor=\"#CCCCFF\" align=\"right\" width=\"15%\">"._("Size")."</th> ".
802 "<th bgcolor=\"#CCCCFF\" align=\"left\">"._("Age").
803 "[<a href=\"$big_url&ns=0\">"._("sort")."</a>]</th>".
806 function cmp1($f1, $f2) {
807 global $ftp_conn, $root_directory, $local;
809 return filemtime("$root_directory$f2") - filemtime("$root_directory$f1");
810 return ftp_mdtm($ftp_conn, $f2) - ftp_mdtm($ftp_conn, $f1);
813 function cmp2($f1, $f2) {
814 list($p11,$p12,$p13)=explode("_",$f1);
815 list($p21,$p22,$p23)=explode("_",$f2);
816 return strcmp($f2,$f1);
821 usort($list, "cmp1");
822 // } else if ($ns == 2)
824 // uksort($list, "cmp2");
831 while (list($k,$name)=each($list))
833 if (($counter<$off) || ($counter>$off+$cnt-1))
840 list($i,$j,$k)=explode("_",$k);
842 $h = bin2hex(mhash(MHASH_MD5, $name));
843 $f = preg_replace("/.*\/([^\/]*)$/", "\\1", $name);
844 $f = preg_replace("/\.(bz2|gz)$/", "", $f);
846 $s = filesize("$root_directory$name");
847 $t = $now - filemtime("$root_directory$name");
849 $s = ftp_size($ftp_conn, $list[$i]);
850 $t = $now - ftp_mdtm($ftp_conn, $list[$i]);
858 $t = $t . " " . ngettext("day","days",$t);
861 $t = $t . " " . ngettext("hour","hours",$t);
865 $t = $t . " " . ngettext("minute","minutes",$t);
867 $big_url = "$url?idx=$i&ok=$j&ns=$ns&cnt=$cnt";
868 $u = "$big_url&off=$off&id=$h";
870 $builder=$addr[$i]."/".(($j=="1")?"OK":"FAIL");
872 echo "<td bgcolor=#CCCCCC><a href=\"$u\">$builder</a></td>";
873 echo "<td bgcolor=#CCCCCC><a href=\"$u\">$f</a> ".
874 "[<a href=\"$u&action=text\">"._("text")."</a> | ".
875 "<a href=\"$u&action=tail\">"._("tail")."</a>]".
876 "</td><td bgcolor=#CCCCCC align=right>".
877 "$s</td><td bgcolor=#CCCCCC>$t</td></tr>\n";
879 echo "</table></div>\n";
881 $backarr = "<<< ";
882 $back = _("Page back");
883 $forward = _("Page forward");
884 $forwardarr = " >>>";
888 echo "<p><table width=\"90%\" align=\"center\"><tr><td align=left width=1%>";
894 $hrefurl = "<a href=\"$big_url&off=$noff\">";
895 echo "$hrefurl$backarr</a></td><td align=left>$hrefurl$back</a>";
897 echo "$backarr</td><td align=left>$back";
900 echo "</td>\n<td align=\"center\">";
901 echo "</td>\n<td align=\"right\">";
903 if ($off + $cnt < count($list))
908 $hrefurl = "<a href=\"$big_url&off=$noff\">";
909 echo "$hrefurl$forward</a></td><td align=\"right\" width=\"1%\">$hrefurl$forwardarr</a>";
913 echo "$forward</td><td align=\"right\" width=\"1%\">$forwardarr";
916 echo "</td>\n</tr></table></p>";
926 echo _("Enter something!");
934 <table border="0" width="100%"><tr><td width="20%"> </td><td>
935 <h1><?=_("Welcome!")?></h1>
936 <p><?=_("Welcome to PLD Build Logs WWW interface.")?></p><p>
937 <?=_("Feel free to email bug reports, complaints and feature requests ")?>
938 <!-- ech... niech strace... -->
939 <a href="mailto:feedback@pld.org.pl"><?=_("to us")?></a>. <?=_("Positive opinions are also")?>
940 <a href="mailto:feedback@pld.org.pl"><?=_("welcome")?></a> ;)</p>
941 <p>Version: $Id: index.php,v 1.53 2002/10/23 13:54:29 ankry Exp $</p>
942 </td><td width="20%"> </td></tr>
947 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
948 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
949 header("Cache-Control: no-cache, must-revalidate");
950 header("Pragma: no-cache");
954 if ($action == "text") {
956 } else if ($action == "adv_search") {
960 } else if ($action == "qatxt") {
964 echo "<table cellpadding=\"10\" width=\"100%\"><tr><td valign=\"top\" width=\"10%\">";
966 echo "</td><td valign=\"top\">";
970 else if ($action == "sqa")
973 dump_log($action == "tail");
974 else if (isset($idx))
978 echo "</td></tr></table>";
984 if ($action == "text") {
986 } else if ($action == "qatxt") {
990 echo "<table cellpadding=\"10\" width=\"100%\"><tr><td valign=top width=\"10%\">";
992 echo "</td><td valign=\"top\">";
997 dump_log($action == "tail");
998 else if (isset($idx))
1002 echo "</td></tr></table>";