2 $buildlogs_server = "buildlogs.pld.org.pl";
24 $qa_base = "http://ftp.pld.org.pl/.stat/builder";
27 "/kenny/rpmqa-nest-i386.txt",
28 "/kenny/rpmqa-nest-i586.txt",
29 "/kenny/rpmqa-nest-i686.txt",
31 "/ep/rpmqa-ra-i386.txt",
32 "/ep/rpmqa-ra-i586.txt",
33 "/ep/rpmqa-ra-i686.txt",
34 "/mifgate/rpmqa-ra-alpha.txt",
35 "/team/rpmqa-ra-sparc.txt",
37 "/ep/rpmqa-ac-i386.txt",
38 "/ep/rpmqa-ac-i386.txt",
39 "/ep/rpmqa-ac-i386.txt",
40 "/alpha/rpmqa-ac-alpha.txt",
41 "/newboss/rpmqa-ac-sparc.txt",
44 $local = 1; /* $local=0 for FTP */
45 $root_directory = "/home/services/ftp/pub/logs";
47 /* It should be set */
49 $langs["en_US"]["charset"]="ISO-8859-1";
50 $langs["pl_PL"]["charset"]="ISO-8859-2";
53 if (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]))
55 $rows=explode(";",$_SERVER["HTTP_ACCEPT_LANGUAGE"]);
56 $rows=explode(",",$rows[0]);
57 $lang_detected=rtrim($rows[0]);
58 } else if (preg_match("/opera/i",$_SERVER["HTTP_USER_AGENT"]))
60 $lang_detected=preg_replace("/.*\[(.*)\].*/i","\\1",$_SERVER["HTTP_USER_AGENT"]);
64 $lang_detected=preg_replace("/^pl$/i","pl_PL",$lang_detected);
66 if (isset($lang_detected) && isset($langs[$lang_detected]))
71 if (isset($_GET["lang"]))$_SESSION["lang"]=$_GET["lang"];
72 if (isset($_SESSION["lang"]))$lang=$_SESSION["lang"];
75 setlocale(LC_ALL,$lang);
76 bindtextdomain("messages","locale");
77 textdomain("messages");
79 if (isset($_GET["idx"]))$idx=$_GET["idx"];
80 if (isset($_GET["ok"]))$ok=$_GET["ok"];
81 if (isset($_GET["ns"]))$ns=$_GET["ns"];
82 if (isset($_GET["cnt"]))$cnt=$_GET["cnt"];
83 if (isset($_GET["action"]))$action=$_GET["action"];
84 if (isset($_GET["off"]))$off=$_GET["off"];
85 if (isset($_GET["id"]))$id=$_GET["id"];
87 if (isset($_POST["str"]))$str=$_POST["str"];
88 if (isset($_POST["idx"]))$idx=$_POST["idx"];
89 if (isset($_POST["action"]))$action=$_POST["action"];
93 echo '<' . '?xml version="1.0" encoding="' . _("ISO-8859-1") .'"?' . ">\n";
94 echo '<' . '?xml-stylesheet href="#internalStyle" type="text/css"?' . ">\n";
96 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
97 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
98 <html xmlns="http://www.w3.org/1999/xhtml">
100 <title>PLD Build Logs</title>
101 <?php echo '<meta http-equiv="Content-type" content="text/html; charset=' . _("ISO-8859-1") .'"/>' ."\n";?>
102 <style type="text/css"><!--
103 A { text-decoration: none; }
104 A:hover { text-decoration: underline; }
105 H1 { font-family: arial,helvetica,sans-serif;
108 H2 { font-family: arial,helvetica,sans-serif;
111 BODY,TD { font-family: arial,helvetica,sans-serif;
113 TH { font-family: arial,helvetica,sans-serif;
119 <!-- Diffrent color for visited link doesn't make much sense here...
120 this page is autogenerated and it might be misleading after some
121 build log changes. -->
122 <body bgcolor="#ffffff" text="#000000" link="#5f26cd" vlink="#5f26cd">
128 echo "<table cellpadding=\"10\"><tr><td bgcolor=\"#000000\">".
129 "<font color=\"#cccccc\"><pre>";
134 echo "</pre></font></td></tr></table>\n";
139 echo "</body></html>";
145 echo "Fatal error: $msg";
148 function open_ftp($pidx="", $pok="")
150 global $idx, $addr, $buildlogs_server, $ok;
151 global $ftp_conn, $big_url, $url, $ns;
154 if ($pidx==="")$pidx=$idx;
155 if ($pok==="")$pok=$ok;
157 if (!isset($pidx) || !isset($addr[$pidx]))
166 $a = "$addr[$pidx]/OK";
168 $a = "$addr[$pidx]/FAIL";
176 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
178 $ftp = ftp_connect($buildlogs_server);
181 mydie(_("cannot connect to")." $buildlogs_server");
185 if (ftp_login($ftp, "anonymous",
186 "buildlogs-iface@pld.org.pl") == false) {
188 mydie(_("cannot ftp login to")." $buildlogs_server");
192 $list = ftp_nlist($ftp, $a);
193 if ($list == false) {
195 mydie(_("cannot list")." $a");
204 function directory_list($pidx="",$pok="")
206 global $idx, $addr, $buildlogs_server, $ok;
207 global $root_directory, $big_url, $url, $ns;
210 if ($pidx==="")$pidx=$idx;
211 if ($pok==="")$pok=$ok;
212 if (!isset($pidx) || !isset($addr[$pidx]))
221 $a = "$addr[$pidx]/OK";
223 $a = "$addr[$pidx]/FAIL";
231 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
233 $dir = opendir("$root_directory$a");
235 while ($file = readdir($dir)) {
236 if (($file != ".") && ($file != "..")) {
237 $list[$i] = "$a/$file";
247 global $idx, $addr, $ok;
248 global $ftp_conn, $big_url, $ns, $qa_addr;
249 global $off, $cnt, $local, $root_directory;
252 $list = directory_list();
260 echo "<h1>"._("Listing of")." $addr[$idx]/OK "
261 ."(<a href=\"$big_url&ok=0\">"._("fail")."</a>)</h1>\n";
263 echo "<h1>"._("Listing of")." $addr[$idx]/FAIL "
264 ."(<a href=\"$big_url&ok=1\">"._("ok")."</a>)</h1>\n";
267 echo "<div align=\"center\"><table cols=\"4\" border=\"0\" cellspacing=\"1\" ".
268 "cellpadding=\"3\" bgcolor=\"#000000\" width=\"90%\">\n";
269 echo "<tr><th bgcolor=\"#CCCCFF\" align=\"right\" width=\"1%\">"._("No.")."</th>".
270 "<th bgcolor=\"#CCCCFF\" align=\"left\" width=\"80%\">"._("Log File").
271 "[<a href=\"$big_url&ns=1\">"._("sort")."</a>]</th>".
272 "<th bgcolor=\"#CCCCFF\" align=\"right\" width=\"15%\">"._("Size")."</th> ".
273 "<th bgcolor=\"#CCCCFF\" align=\"left\">"._("Age").
274 "[<a href=\"$big_url&ns=0\">"._("sort")."</a>]</th>".
277 function cmp($f1, $f2) {
278 global $ftp_conn, $root_directory, $local;
280 return filemtime("$root_directory$f2") - filemtime("$root_directory$f1");
281 return ftp_mdtm($ftp_conn, $f2) - ftp_mdtm($ftp_conn, $f1);
292 for ($i = $off; $i < $cnt + $off; $i++) {
293 if (!isset($list[$i]))
295 $h = bin2hex(mhash(MHASH_MD5, $list[$i]));
296 $f = preg_replace("/.*\/([^\/]*)$/", "\\1", $list[$i]);
297 $f = preg_replace("/\.(bz2|gz)$/", "", $f);
299 $s = filesize("$root_directory$list[$i]");
300 $t = $now - filemtime("$root_directory$list[$i]");
302 $s = ftp_size($ftp_conn, $list[$i]);
303 $t = $now - ftp_mdtm($ftp_conn, $list[$i]);
311 $t = $t . " " . ngettext("day","days",$t);
314 $t = $t . " " . ngettext("hour","hours",$t);
318 $t = $t . " " . ngettext("minute","minutes",$t);
320 $u = "$big_url&off=$off&id=$h";
321 echo "<tr><td bgcolor=\"#CCCCCC\" align=\"right\">".($i+1).".</td>".
322 "<td bgcolor=\"#CCCCCC\"><a href=\"$u\">$f</a> ".
323 "[<a href=\"$u&action=text\">"._("text")."</a> | ".
324 "<a href=\"$u&action=tail\">"._("tail")."</a>]".
325 "</td><td bgcolor=\"#CCCCCC\" align=\"right\">".
326 "$s</td><td bgcolor=\"#CCCCCC\">$t</td></tr>\n";
328 echo "</table></div>\n";
330 $backarr = "<<< ";
331 $back = _("Page back");
332 $forward = _("Page forward");
333 $forwardarr = " >>>";
335 echo "<p><table width=\"90%\" align=\"center\"><tr><td align=\"left\" width=\"1%\">";
341 $hrefurl = "<a href=\"$big_url&off=$noff\">";
342 echo "$hrefurl$backarr</a></td><td align=\"left\">$hrefurl$back</a>";
344 echo "$backarr</td><td align=\"left\">$back";
347 echo "</td>\n<td align=\"center\">";
349 if ($qa_addr[$idx] != "") {
350 echo "[<a href=\"$big_url&action=qa\">"._("View <quot>rpm -qa</quot> of builder")."</a>]";
355 echo "</td>\n<td align=right>";
356 if ($off + $cnt < count($list)) {
360 $hrefurl = "<a href=\"$big_url&off=$noff\">";
361 echo "$hrefurl$forward</a></td><td align=right width=1%>$hrefurl$forwardarr</a>";
363 echo "$forward</td><td align=right width=1%>$forwardarr";
365 echo "</td>\n</tr></table></p>";
374 global $idx, $addr, $ok;
375 global $ftp_conn, $root_directory, $big_url, $ns, $id;
376 global $buildlogs_server, $local;
381 $list = directory_list();
389 for ($i = 0; $i < count($list); $i++) {
390 $h = bin2hex(mhash(MHASH_MD5, $list[$i]));
397 mydie(_("cannot find specified file:")." $id");
406 function dump_log($tail)
408 global $idx, $addr, $ok, $url;
409 global $ftp_conn, $root_directory, $big_url, $ns, $id, $cnt, $off;
410 global $buildlogs_server, $local, $qa_addr;
417 $df = preg_replace("/.*\/([^\/]*)$/", "\\1", $f);
418 $df = preg_replace("/\.(bz2|gz)$/", "", $df);
422 echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" bgcolor=\"#000000\">";
424 function one_item($h, $t) {
425 echo "<tr><td bgcolor=\"#ccccff\">$h:</td>".
426 "<td bgcolor=\"#cccccc\">$t</td></tr>";
429 function href($h, $c) {
430 return "<a href=\"$h\">$c</a>";
433 one_item(_("Status"), ($ok == 1 ?
434 "<font color=green><b>"._("OK")."</b></font>" :
435 "<font color=red><b>"._("Failed")."</b></a>"));
436 one_item(_("Source URL"),
437 href("ftp://$buildlogs_server$f",
438 "ftp://$buildlogs_server$f"));
440 $bu = "$big_url&off=$off";
442 one_item(_("text/plain URL"),
443 href("$bu&id=$id&action=text",
446 one_item(_("full text"),
447 href("$bu&id=$id",
451 if ($qa_addr[$idx] != "") {
452 one_item(_("rpm -qa of builder"), href("$bu&action=qa", _("View!")));
454 one_item(_("rpm -qa of builder"), _("Not available"));
457 one_item("Data", date("Y/m/d H:i:s", filemtime("$root_directory$f")));
459 one_item("Data", date("Y/m/d H:i:s", ftp_mdtm($ftp_conn, $f)));
462 echo "<tr><td>Here:</td><td>" .
463 "<a href=\"$url?idx=$idx&ok=$ok&id=$id\">".
464 "http://" . getenv("SERVER_NAME") .
465 getenv("SCRIPT_NAME") . "?idx=$idx&ok=$ok&id=$id</a>" .
468 echo "</table><h2>"._("Content:")."</h2>";
476 # what can I say beside PHP suxx? how the fuck should I create
477 # bidirectional pipe? gotta use wget
479 if (preg_match("/\.bz2$/", $f)) {
481 } elseif (preg_match("/\.gz$/", $f)) {
488 $cmd = "$filter $root_directory$f";
490 $cmd = "wget -q -O - ftp://$buildlogs_server$f 2>&1 | $filter 2>&1";
493 $cmd = "$cmd | tail -n 100";
494 $fd = popen($cmd, "r");
496 while (($s = fgets($fd, 1000)) != false) {
497 $s = htmlspecialchars($s);
507 [<a href="<?php echo $bu; ?>"><?=_("Back to list of logs")?></a>]
510 [<a href="<?php echo "$bu&action=qa"
511 ?>"><?=_("View rpm -qa of builder")?></a>]
521 global $ftp_conn, $root_directory;
522 global $buildlogs_server, $local;
524 header("Content-type: text/plain");
531 echo "# src : ftp://$buildlogs_server$f\n";
534 date("Y/m/d H:i:s", filemtime("$root_directory$f")) . "\n";
537 date("Y/m/d H:i:s", ftp_mdtm($ftp_conn, $f)) . "\n";
542 if (preg_match("/\.bz2$/", $f)) {
544 } elseif (preg_match("/\.gz$/", $f)) {
551 $cmd = "$filter $root_directory$f";
553 $cmd = "wget -q -O - ftp://$buildlogs_server$f 2>&1 | $filter 2>&1";
555 $fd = popen($cmd, "r");
556 while (($s = fgets($fd, 1000)) != false) {
562 function list_archs()
564 global $addr, $url, $idx, $cnt;
569 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
571 echo "<table width=\"100%\" border=\"0\">\n";
572 echo "<tr><td bgcolor=\"#cccccc\" nowrap=\"nowrap\">"._("Failed")."</td><td bgcolor=\"#cccccc\">"._("Ok")."</td></tr>\n";
573 for ($i = 0; $i < count($addr); $i++)
574 echo "<tr><td nowrap=\"nowrap\">".
575 "<a href=\"$url?idx=$i&ok=0&cnt=$cnt\">$addr[$i]</a></td><td nowrap=\"nowrap\">".
576 "[<a href=\"$url?idx=$i&ok=1&cnt=$cnt\">OK</a>]</td>".
577 #"<td>[<a href=\"$url?idx=$i&action=qa\">qa</a>]</td>".
579 echo "</table><hr />\n";
581 echo "<div align=\"center\">";
582 echo "<a href=\"$big_url&action=adv_search\">"._("Advanced Search")."</a><br />\n";
584 echo "<a href=\"$url\">main()</a><hr />\n";
585 echo "<a href=\"http://www.pld.org.pl/\"><img src=\"powpld.png\" ".
586 "alt=\""._("Powered by PLD Linux")."\" border=\"0\" /></a><br />\n" .
588 "<a href=\"mailto:feedback@pld.org.pl\">PLD Team</a>\n".
592 echo "<div align=\"center\"><small>";
593 $pow = array("vim", "php", "brain", "power", "electricity",
594 "coffee", "ufo", "penguin", "GNOME", "ELF", "DWARF",
595 "voodoo magic", "Linux", "x-files", "X", "foobar",
596 "/dev/null", "/dev/zero", "/dev/drzewo",
597 "Leppe'", "matrix", "Neo", "PDP-11",
598 "Ken", "GNU antilope", "PDP-7", "ITS", "Multics",
599 "foobarbaz", "ed", "Joe", "Unix conspiracy",
600 "overclock", "The Right Thing",
601 "The Bad Thing", "Star Treck", "NSA", "NASA",
602 "achelon", "VAX", "Real Programmer",
603 "Real Operating System", "Real Computer",
604 "computron", "bogon", "quantum bogodynamics",
605 "BOFH", "/dev/ill", "nasi tu byli",
606 "Paranoid Android", "Lunatic Corp", "Parallel thinking"
607 # feel free to add sth if you change this file ;)
609 echo _("Powered by")." ";
611 for ($i = 0; $i < $max; $i++) {
612 $x = rand(0, count($pow) - 1);
613 if ($pow[$x] == "") $i--;
614 else echo $pow[$x] . ($i == $max - 1 ? "." : ", ");
617 echo "</small></div>";
621 if ($qa_addr[$idx] != "") {
622 echo "<form action=\"index.php\" method=\"post\">";
623 echo "<input type=hidden name=idx value=$idx />";
624 echo "<input type=hidden name=action value=sqa />";
625 echo "<input type=text size=14 name=str /><br />";
626 echo "<input type=submit name=submit value=\""._("Search rpmqa!")."\" />";
633 global $idx, $qa_addr, $qa_base;
635 if (!isset($idx) || !isset($qa_addr[$idx]))
640 if ($qa_addr[$idx] == "")
643 return fopen("$qa_base$qa_addr[$idx]", "r");
648 global $url, $idx, $qa_addr, $str;
651 echo "<h1>"._("Search results for")." '$str' "._("in")." $qa_addr[$idx]</h1>";
656 echo _("Sorry, cannot open.");
658 while (($s = fgets($f, 1000)) != false) {
659 if (stristr($s, $str))
667 function dump_qa($plain)
669 global $url, $idx, $qa_addr;
676 header("Content-type: text/plain");
677 echo _("# rpm -qa of")." $a\n";
679 echo "<h1>"._("rpm -qa of")." $a</h1>";
680 echo "<a href=\"$url?idx=$idx&action=qatxt\">"._("text/plain version")."</a>";
685 echo _("Sorry, cannot open.");
687 while (($s = fgets($f, 1000)) != false) {
697 function adv_search()
699 global $addr, $url, $local, $_POST, $off, $cnt, $root_directory;
701 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
703 echo "<form action=\"index.php?action=adv_search\" method=\"post\">";
705 echo "<div align=\"center\">";
706 echo "<table border=\"0\">\n";
708 echo "<td>"._("Package name")."</td>\n";
709 echo "<td><input type=\"text\" size=\"20\" name=\"name\" value=\"".$_POST[name]."\"/></td>\n";
713 echo "<td>"._("Days")."</td>\n";
714 echo "<td>"._("From").": <input type=\"text\" size=\"20\" name=\"age1\" value=\"".$_POST["age1"]."\" /></td>\n";
715 echo "<td>"._("To").": <input type=\"text\" size=\"20\" name=\"age2\" value=\"".$_POST["age2"]."\" /></td>\n";
719 echo "<td>"._("Size")."</td>\n";
720 echo "<td>"._("From").": <input type=\"text\" size=\"20\" name=\"size1\" value=\"".$_POST["size1"]."\" /></td>\n";
721 echo "<td>"._("To").": <input type=\"text\" size=\"20\" name=\"size2\" value=\"".$_POST["size2"]."\" /></td>\n";
725 echo "<td>"._("Search logs:")."</td>\n";
729 echo "<td>"._("Failed")."</td>\n";
730 echo "<td>"._("OK")."</td>\n";
733 for ($i = 0; $i < count($addr); $i++)
737 $check=" checked=\"on\"";
738 echo "<td><input name=$name type=\"checkbox\"$check>".$addr[$i]."</input></td>\n";
740 $check=" checked=\"on\"";
741 echo "<td><input name=$name type=\"checkbox\"$check>".$addr[$i]."</input></td>\n";
746 echo "<td><input type=submit name=submit value=\""._("Search!")."\" /></td>";
751 // if (isset($_POST["name"]) || isset($_POST["age1"]) || isset($_POST["age2"]) ||
752 // isset($_POST["size1"]) || isset($_POST["size2"]))
753 if (($_POST["name"]!="") || ($_POST["age1"]!="") || ($_POST["age2"]!="") ||
754 ($_POST["size1"]!="") || ($_POST["size2"]!=""))
758 for ($i = 0; $i < count($addr); $i++)
763 if (isset($_POST["as".$j."_".$i]))
766 $tmp_list = directory_list($i,$j);
768 $tmp_list = open_ftp($i,$j);
770 if (is_array($tmp_list))
772 while (list($k,$name)=each($tmp_list))
774 $s = filesize("$root_directory$name");
775 $t = $now - filemtime("$root_directory$name");
777 if (($_POST["name"]!="") && (!preg_match("/".$_POST["name"]."/i",$name)))continue;
778 if (($_POST["age1"]) && ($_POST["age1"]>$t))continue;
779 if (($_POST["age2"]) && ($_POST["age2"]<$t))continue;
781 if (($_POST["size1"]) && ($_POST["size1"]>$s))continue;
782 if (($_POST["size2"]) && ($_POST["size2"]<$s))continue;
784 $list[$i."_".$j."_".$k]=$name;
790 if (sizeof($list)==0)
792 echo _("Nothing found");
796 echo "<table border=\"0\" cellspacing=\"1\" ".
797 "cellpadding=3 bgcolor=\"#000000\" width=\"90%\">\n";
798 echo "<tr><th bgcolor=\"#CCCCFF\" align=\"left\" width=\"10%\">"._("Builder").
799 "[<a href=\"$big_url&ns=2\">"._("sort")."</a>]</th>";
800 echo "<th bgcolor=\"#CCCCFF\" align=\"left\" width=\"60%\">"._("Log File").
801 "[<a href=\"$big_url&ns=1\">"._("sort")."</a>]</th>".
802 "<th bgcolor=\"#CCCCFF\" align=\"right\" width=\"15%\">"._("Size")."</th> ".
803 "<th bgcolor=\"#CCCCFF\" align=\"left\">"._("Age").
804 "[<a href=\"$big_url&ns=0\">"._("sort")."</a>]</th>".
807 function cmp1($f1, $f2) {
808 global $ftp_conn, $root_directory, $local;
810 return filemtime("$root_directory$f2") - filemtime("$root_directory$f1");
811 return ftp_mdtm($ftp_conn, $f2) - ftp_mdtm($ftp_conn, $f1);
814 function cmp2($f1, $f2) {
815 list($p11,$p12,$p13)=explode("_",$f1);
816 list($p21,$p22,$p23)=explode("_",$f2);
817 return strcmp($f2,$f1);
822 usort($list, "cmp1");
823 // } else if ($ns == 2)
825 // uksort($list, "cmp2");
832 while (list($k,$name)=each($list))
834 if (($counter<$off) || ($counter>$off+$cnt-1))
841 list($i,$j,$k)=explode("_",$k);
843 $h = bin2hex(mhash(MHASH_MD5, $name));
844 $f = preg_replace("/.*\/([^\/]*)$/", "\\1", $name);
845 $f = preg_replace("/\.(bz2|gz)$/", "", $f);
847 $s = filesize("$root_directory$name");
848 $t = $now - filemtime("$root_directory$name");
850 $s = ftp_size($ftp_conn, $list[$i]);
851 $t = $now - ftp_mdtm($ftp_conn, $list[$i]);
859 $t = $t . " " . ngettext("day","days",$t);
862 $t = $t . " " . ngettext("hour","hours",$t);
866 $t = $t . " " . ngettext("minute","minutes",$t);
868 $big_url = "$url?idx=$i&ok=$j&ns=$ns&cnt=$cnt";
869 $u = "$big_url&off=$off&id=$h";
871 $builder=$addr[$i]."/".(($j=="1")?"OK":"FAIL");
873 echo "<td bgcolor=#CCCCCC><a href=\"$u\">$builder</a></td>";
874 echo "<td bgcolor=#CCCCCC><a href=\"$u\">$f</a> ".
875 "[<a href=\"$u&action=text\">"._("text")."</a> | ".
876 "<a href=\"$u&action=tail\">"._("tail")."</a>]".
877 "</td><td bgcolor=#CCCCCC align=right>".
878 "$s</td><td bgcolor=#CCCCCC>$t</td></tr>\n";
880 echo "</table></div>\n";
882 $backarr = "<<< ";
883 $back = _("Page back");
884 $forward = _("Page forward");
885 $forwardarr = " >>>";
889 echo "<p><table width=\"90%\" align=\"center\"><tr><td align=left width=1%>";
895 $hrefurl = "<a href=\"$big_url&off=$noff\">";
896 echo "$hrefurl$backarr</a></td><td align=left>$hrefurl$back</a>";
898 echo "$backarr</td><td align=left>$back";
901 echo "</td>\n<td align=\"center\">";
902 echo "</td>\n<td align=\"right\">";
904 if ($off + $cnt < count($list))
909 $hrefurl = "<a href=\"$big_url&off=$noff\">";
910 echo "$hrefurl$forward</a></td><td align=\"right\" width=\"1%\">$hrefurl$forwardarr</a>";
914 echo "$forward</td><td align=\"right\" width=\"1%\">$forwardarr";
917 echo "</td>\n</tr></table></p>";
927 echo _("Enter something!");
935 <table border="0" width="100%"><tr><td width="20%"> </td><td>
936 <h1><?=_("Welcome!")?></h1>
937 <p><?=_("Welcome to PLD Build Logs WWW interface.")?></p><p>
938 <?=_("Feel free to email bug reports, complaints and feature requests ")?>
939 <!-- ech... niech strace... -->
940 <a href="mailto:feedback@pld.org.pl"><?=_("to us")?></a>. <?=_("Positive opinions are also")?>
941 <a href="mailto:feedback@pld.org.pl"><?=_("welcome")?></a> ;)</p>
942 <p>Version: $Id: index.php,v 1.55 2002/11/01 17:59:32 ankry Exp $</p>
943 </td><td width="20%"> </td></tr>
948 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
949 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
950 header("Cache-Control: no-cache, must-revalidate");
951 header("Pragma: no-cache");
955 if ($action == "text") {
957 } else if ($action == "adv_search") {
961 } else if ($action == "qatxt") {
965 echo "<table cellpadding=\"10\" width=\"100%\"><tr><td valign=\"top\" width=\"10%\">";
967 echo "</td><td valign=\"top\">";
971 else if ($action == "sqa")
974 dump_log($action == "tail");
975 else if (isset($idx))
979 echo "</td></tr></table>";
985 if ($action == "text") {
987 } else if ($action == "qatxt") {
991 echo "<table cellpadding=\"10\" width=\"100%\"><tr><td valign=top width=\"10%\">";
993 echo "</td><td valign=\"top\">";
998 dump_log($action == "tail");
999 else if (isset($idx))
1003 echo "</td></tr></table>";