2 $buildlogs_server = "buildlogs.pld-linux.org";
24 $qa_base = "http://ftp.pld-linux.org/.stat/builder";
26 "/ep/rpmqa-ac-i386.txt",
27 "/ep/rpmqa-ac-i386.txt",
28 "/ep/rpmqa-ac-i386.txt",
30 "/alpha/rpmqa-ac-alpha.txt",
31 "/newboss/rpmqa-ac-sparc.txt",
33 "/ep/rpmqa-ra-i386.txt",
34 "/ep/rpmqa-ra-i586.txt",
35 "/ep/rpmqa-ra-i686.txt",
36 "/mifgate/rpmqa-ra-alpha.txt",
37 "/team/rpmqa-ra-sparc.txt",
39 "/kenny/rpmqa-nest-i386.txt",
40 "/kenny/rpmqa-nest-i586.txt",
41 "/kenny/rpmqa-nest-i686.txt",
45 $local = 1; /* $local=0 for FTP */
46 $root_directory = "/home/services/ftp/pub/pld-buildlogs";
48 /* It should be set */
50 $langs["en_US"]["charset"]="ISO-8859-1";
51 $langs["pl_PL"]["charset"]="ISO-8859-2";
54 if (isset($_SERVER["HTTP_ACCEPT_LANGUAGE"]))
56 $rows=explode(";",$_SERVER["HTTP_ACCEPT_LANGUAGE"]);
57 $rows=explode(",",$rows[0]);
58 $lang_detected=rtrim($rows[0]);
59 } else if (preg_match("/opera/i",$_SERVER["HTTP_USER_AGENT"]))
61 $lang_detected=preg_replace("/.*\[(.*)\].*/i","\\1",$_SERVER["HTTP_USER_AGENT"]);
65 $lang_detected=preg_replace("/^pl$/i","pl_PL",$lang_detected);
67 if (isset($lang_detected) && isset($langs[$lang_detected]))
72 if (isset($_GET["lang"]))$_SESSION["lang"]=$_GET["lang"];
73 if (isset($_SESSION["lang"]))$lang=$_SESSION["lang"];
76 setlocale(LC_ALL,$lang);
77 bindtextdomain("messages","locale");
78 textdomain("messages");
80 if (isset($_GET["idx"]))$idx=$_GET["idx"];
81 if (isset($_GET["ok"]))$ok=$_GET["ok"];
83 if (isset($_GET["ns"]))$ns=$_GET["ns"];
85 if (isset($_GET["cnt"]))$cnt=$_GET["cnt"];
86 if (isset($_GET["action"]))$action=$_GET["action"];
88 if (isset($_GET["off"]))$off=$_GET["off"];
89 if (isset($_GET["id"]))$id=$_GET["id"];
91 if (isset($_POST["str"]))$str=$_POST["str"];
92 if (isset($_POST["idx"]))$idx=$_POST["idx"];
93 if (isset($_POST["action"]))$action=$_POST["action"];
97 echo '<' . '?xml version="1.0" encoding="' . _("ISO-8859-1") .'"?' . ">\n";
98 echo '<' . '?xml-stylesheet href="#internalStyle" type="text/css"?' . ">\n";
100 <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
101 "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
102 <html xmlns="http://www.w3.org/1999/xhtml">
104 <title>PLD Build Logs</title>
105 <?php echo '<meta http-equiv="Content-type" content="text/html; charset=' . _("ISO-8859-1") .'"/>' ."\n";?>
106 <style type="text/css"><!--
107 A { text-decoration: none; }
108 A:hover { text-decoration: underline; }
109 H1 { font-family: arial,helvetica,sans-serif;
112 H2 { font-family: arial,helvetica,sans-serif;
115 BODY,TD { font-family: arial,helvetica,sans-serif;
117 TH { font-family: arial,helvetica,sans-serif;
123 <!-- Diffrent color for visited link doesn't make much sense here...
124 this page is autogenerated and it might be misleading after some
125 build log changes. -->
126 <body bgcolor="#ffffff" text="#000000" link="#5f26cd" vlink="#5f26cd">
132 echo "<table cellpadding=\"10\"><tr><td bgcolor=\"#000000\">".
133 "<font color=\"#cccccc\"><pre>";
138 echo "</pre></font></td></tr></table>\n";
143 echo "</body></html>";
149 echo "Fatal error: $msg";
152 function open_ftp($pidx="", $pok="")
154 global $idx, $addr, $buildlogs_server, $ok;
155 global $ftp_conn, $big_url, $url, $ns;
158 if ($pidx==="")$pidx=$idx;
159 if ($pok==="")$pok=$ok;
161 if (!isset($pidx) || !isset($addr[$pidx]))
170 $a = "$addr[$pidx]/OK";
172 $a = "$addr[$pidx]/FAIL";
180 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
182 $ftp = ftp_connect($buildlogs_server);
185 mydie(_("cannot connect to")." $buildlogs_server");
189 if (ftp_login($ftp, "anonymous",
190 "buildlogs-iface@pld-linux.org") == false) {
192 mydie(_("cannot ftp login to")." $buildlogs_server");
196 $list = ftp_nlist($ftp, $a);
197 if ($list == false) {
199 mydie(_("cannot list")." $a");
208 function directory_list($pidx="",$pok="")
210 global $idx, $addr, $buildlogs_server, $ok;
211 global $root_directory, $big_url, $url, $ns;
214 if ($pidx==="")$pidx=$idx;
215 if ($pok==="")$pok=$ok;
216 if (!isset($pidx) || !isset($addr[$pidx]))
225 $a = "$addr[$pidx]/OK";
227 $a = "$addr[$pidx]/FAIL";
235 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
237 $dir = opendir("$root_directory$a");
240 while ($file = readdir($dir)) {
241 if (($file != ".") && ($file != "..")) {
242 $list[$i] = "$a/$file";
252 global $idx, $addr, $ok;
253 global $ftp_conn, $big_url, $ns, $qa_addr;
254 global $off, $cnt, $local, $root_directory;
257 $list = directory_list();
265 echo "<h1>"._("Listing of")." $addr[$idx]/OK "
266 ."(<a href=\"$big_url&ok=0\">"._("fail")."</a>)</h1>\n";
268 echo "<h1>"._("Listing of")." $addr[$idx]/FAIL "
269 ."(<a href=\"$big_url&ok=1\">"._("ok")."</a>)</h1>\n";
272 echo "<div align=\"center\"><table cols=\"4\" border=\"0\" cellspacing=\"1\" ".
273 "cellpadding=\"3\" bgcolor=\"#000000\" width=\"90%\">\n";
274 echo "<tr><th bgcolor=\"#CCCCFF\" align=\"right\" width=\"1%\">"._("No.")."</th>".
275 "<th bgcolor=\"#CCCCFF\" align=\"left\" width=\"80%\">"._("Log File").
276 "[<a href=\"$big_url&ns=1\">"._("sort")."</a>]</th>".
277 "<th bgcolor=\"#CCCCFF\" align=\"right\" width=\"15%\">"._("Size")."</th> ".
278 "<th bgcolor=\"#CCCCFF\" align=\"left\">"._("Age").
279 "[<a href=\"$big_url&ns=0\">"._("sort")."</a>]</th>".
282 function cmp($f1, $f2) {
283 global $ftp_conn, $root_directory, $local;
285 return filemtime("$root_directory$f2") - filemtime("$root_directory$f1");
286 return ftp_mdtm($ftp_conn, $f2) - ftp_mdtm($ftp_conn, $f1);
297 for ($i = $off; $i < $cnt + $off; $i++) {
298 if (!isset($list[$i]))
300 $h = bin2hex(mhash(MHASH_MD5, $list[$i]));
301 $f = preg_replace("/.*\/([^\/]*)$/", "\\1", $list[$i]);
302 $f = preg_replace("/\.(bz2|gz)$/", "", $f);
304 $s = filesize("$root_directory$list[$i]");
305 $t = $now - filemtime("$root_directory$list[$i]");
307 $s = ftp_size($ftp_conn, $list[$i]);
308 $t = $now - ftp_mdtm($ftp_conn, $list[$i]);
316 $t = $t . " " . ngettext("day","days",$t);
319 $t = $t . " " . ngettext("hour","hours",$t);
323 $t = $t . " " . ngettext("minute","minutes",$t);
325 $u = "$big_url&off=$off&id=$h";
326 echo "<tr><td bgcolor=\"#CCCCCC\" align=\"right\">".($i+1).".</td>".
327 "<td bgcolor=\"#CCCCCC\"><a href=\"$u\">$f</a> ".
328 "[<a href=\"$u&action=text\">"._("text")."</a> | ".
329 "<a href=\"$u&action=tail\">"._("tail")."</a>]".
330 "</td><td bgcolor=\"#CCCCCC\" align=\"right\">".
331 "$s</td><td bgcolor=\"#CCCCCC\">$t</td></tr>\n";
333 echo "</table></div>\n";
335 $backarr = "<<< ";
336 $back = _("Page back");
337 $forward = _("Page forward");
338 $forwardarr = " >>>";
340 echo "<p><table width=\"90%\" align=\"center\"><tr><td align=\"left\" width=\"1%\">";
346 $hrefurl = "<a href=\"$big_url&off=$noff\">";
347 echo "$hrefurl$backarr</a></td><td align=\"left\">$hrefurl$back</a>";
349 echo "$backarr</td><td align=\"left\">$back";
352 echo "</td>\n<td align=\"center\">";
354 if ($qa_addr[$idx] != "") {
355 echo "[<a href=\"$big_url&action=qa\">"._("View <quot>rpm -qa</quot> of builder")."</a>]";
360 echo "</td>\n<td align=right>";
361 if ($off + $cnt < count($list)) {
365 $hrefurl = "<a href=\"$big_url&off=$noff\">";
366 echo "$hrefurl$forward</a></td><td align=right width=1%>$hrefurl$forwardarr</a>";
368 echo "$forward</td><td align=right width=1%>$forwardarr";
370 echo "</td>\n</tr></table></p>";
379 global $idx, $addr, $ok;
380 global $ftp_conn, $root_directory, $big_url, $ns, $id;
381 global $buildlogs_server, $local;
386 $list = directory_list();
394 for ($i = 0; $i < count($list); $i++) {
395 $h = bin2hex(mhash(MHASH_MD5, $list[$i]));
402 mydie(_("cannot find specified file:")." $id");
411 function dump_log($tail)
413 global $idx, $addr, $ok, $url;
414 global $ftp_conn, $root_directory, $big_url, $ns, $id, $cnt, $off;
415 global $buildlogs_server, $local, $qa_addr;
422 $df = preg_replace("/.*\/([^\/]*)$/", "\\1", $f);
423 $df = preg_replace("/\.(bz2|gz)$/", "", $df);
427 echo "<table border=\"0\" cellpadding=\"3\" cellspacing=\"1\" bgcolor=\"#000000\">";
429 function one_item($h, $t) {
430 echo "<tr><td bgcolor=\"#ccccff\">$h:</td>".
431 "<td bgcolor=\"#cccccc\">$t</td></tr>";
434 function href($h, $c) {
435 return "<a href=\"$h\">$c</a>";
438 one_item(_("Status"), ($ok == 1 ?
439 "<font color=green><b>"._("OK")."</b></font>" :
440 "<font color=red><b>"._("Failed")."</b></a>"));
441 one_item(_("Source URL"),
442 href("ftp://$buildlogs_server$f",
443 "ftp://$buildlogs_server$f"));
445 $bu = "$big_url&off=$off";
447 one_item(_("text/plain URL"),
448 href("$bu&id=$id&action=text",
451 one_item(_("full text"),
452 href("$bu&id=$id",
456 if ($qa_addr[$idx] != "") {
457 one_item(_("rpm -qa of builder"), href("$bu&action=qa", _("View!")));
459 one_item(_("rpm -qa of builder"), _("Not available"));
462 one_item("Data", date("Y/m/d H:i:s", filemtime("$root_directory$f")));
464 one_item("Data", date("Y/m/d H:i:s", ftp_mdtm($ftp_conn, $f)));
467 echo "<tr><td>Here:</td><td>" .
468 "<a href=\"$url?idx=$idx&ok=$ok&id=$id\">".
469 "http://" . getenv("SERVER_NAME") .
470 getenv("SCRIPT_NAME") . "?idx=$idx&ok=$ok&id=$id</a>" .
473 echo "</table><h2>"._("Content:")."</h2>";
481 # what can I say beside PHP suxx? how the fuck should I create
482 # bidirectional pipe? gotta use wget
484 if (preg_match("/\.bz2$/", $f)) {
486 } elseif (preg_match("/\.gz$/", $f)) {
493 $cmd = "$filter $root_directory$f";
495 $cmd = "wget -q -O - ftp://$buildlogs_server$f 2>&1 | $filter 2>&1";
498 $cmd = "$cmd | tail -n 100";
499 $fd = popen($cmd, "r");
501 while (($s = fgets($fd, 1000)) != false) {
502 $s = htmlspecialchars($s);
512 [<a href="<?php echo $bu; ?>"><?=_("Back to list of logs")?></a>]
515 [<a href="<?php echo "$bu&action=qa"
516 ?>"><?=_("View rpm -qa of builder")?></a>]
526 global $ftp_conn, $root_directory;
527 global $buildlogs_server, $local;
529 header("Content-type: text/plain");
536 echo "# src : ftp://$buildlogs_server$f\n";
539 date("Y/m/d H:i:s", filemtime("$root_directory$f")) . "\n";
542 date("Y/m/d H:i:s", ftp_mdtm($ftp_conn, $f)) . "\n";
547 if (preg_match("/\.bz2$/", $f)) {
549 } elseif (preg_match("/\.gz$/", $f)) {
556 $cmd = "$filter $root_directory$f";
558 $cmd = "wget -q -O - ftp://$buildlogs_server$f 2>&1 | $filter 2>&1";
560 $fd = popen($cmd, "r");
561 while (($s = fgets($fd, 1000)) != false) {
567 function list_archs()
569 global $addr, $url, $idx, $cnt,$ok,$ns;
574 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
576 echo "<table width=\"100%\" border=\"0\">\n";
577 echo "<tr><td bgcolor=\"#cccccc\" nowrap=\"nowrap\">"._("Failed")."</td><td bgcolor=\"#cccccc\">"._("Ok")."</td></tr>\n";
578 for ($i = 0; $i < count($addr); $i++)
579 echo "<tr><td nowrap=\"nowrap\">".
580 "<a href=\"$url?idx=$i&ok=0&cnt=$cnt\">$addr[$i]</a></td><td nowrap=\"nowrap\">".
581 "[<a href=\"$url?idx=$i&ok=1&cnt=$cnt\">OK</a>]</td>".
582 #"<td>[<a href=\"$url?idx=$i&action=qa\">qa</a>]</td>".
584 echo "</table><hr />\n";
586 echo "<div align=\"center\">";
587 echo "<a href=\"$big_url&action=adv_search\">"._("Advanced Search")."</a><br />\n";
589 echo "<a href=\"$url\">main()</a><hr />\n";
590 echo "<a href=\"http://www.pld-linux.org/\"><img src=\"powpld.png\" ".
591 "alt=\""._("Powered by PLD Linux")."\" border=\"0\" /></a><br />\n" .
593 "<a href=\"mailto:feedback@pld-linux.org\">PLD Team</a>\n".
597 echo "<div align=\"center\"><small>";
598 $pow = array("vim", "php", "brain", "power", "electricity",
599 "coffee", "ufo", "penguin", "GNOME", "ELF", "DWARF",
600 "voodoo magic", "Linux", "x-files", "X", "foobar",
601 "/dev/null", "/dev/zero", "/dev/drzewo",
602 "Leppe'", "matrix", "Neo", "PDP-11",
603 "Ken", "GNU antilope", "PDP-7", "ITS", "Multics",
604 "foobarbaz", "ed", "Joe", "Unix conspiracy",
605 "overclock", "The Right Thing",
606 "The Bad Thing", "Star Treck", "NSA", "NASA",
607 "achelon", "VAX", "Real Programmer",
608 "Real Operating System", "Real Computer",
609 "computron", "bogon", "quantum bogodynamics",
610 "BOFH", "/dev/ill", "nasi tu byli",
611 "Paranoid Android", "Lunatic Corp", "Parallel thinking",
612 "sfistak", "Linus", "The Golden Path", "Dark Side of the Force",
613 "Przewodniczacego Lepper-a", "KDE", "Microsoft Windows 2003"
614 # feel free to add sth if you change this file ;)
616 echo _("Powered by")." ";
618 for ($i = 0; $i < $max; $i++) {
619 $x = rand(0, count($pow) - 1);
620 if ($pow[$x] == "") $i--;
621 else echo $pow[$x] . ($i == $max - 1 ? "." : ", ");
624 echo "</small></div>";
628 if (isset($qa_addr[$idx]) && $qa_addr[$idx] != "") {
629 echo "<form action=\"index.php\" method=\"post\">";
630 echo "<input type=hidden name=idx value=$idx />";
631 echo "<input type=hidden name=action value=sqa />";
632 echo "<input type=text size=14 name=str /><br />";
633 echo "<input type=submit name=submit value=\""._("Search rpmqa!")."\" />";
640 global $idx, $qa_addr, $qa_base;
642 if (!isset($idx) || !isset($qa_addr[$idx]))
647 if ($qa_addr[$idx] == "")
650 return fopen("$qa_base$qa_addr[$idx]", "r");
655 global $url, $idx, $qa_addr, $str;
658 echo "<h1>"._("Search results for")." '$str' "._("in")." $qa_addr[$idx]</h1>";
663 echo _("Sorry, cannot open.");
665 while (($s = fgets($f, 1000)) != false) {
666 if (stristr($s, $str))
674 function dump_qa($plain)
676 global $url, $idx, $qa_addr;
683 header("Content-type: text/plain");
684 echo _("# rpm -qa of")." $a\n";
686 echo "<h1>"._("rpm -qa of")." $a</h1>";
687 echo "<a href=\"$url?idx=$idx&action=qatxt\">"._("text/plain version")."</a>";
692 echo _("Sorry, cannot open.");
694 while (($s = fgets($f, 1000)) != false) {
704 function adv_search()
706 global $addr, $url, $local, $_POST, $off, $cnt, $root_directory;
708 $big_url = "$url?idx=$idx&ok=$ok&ns=$ns&cnt=$cnt";
710 echo "<form action=\"index.php?action=adv_search\" method=\"post\">";
712 echo "<div align=\"center\">";
713 echo "<table border=\"0\">\n";
715 echo "<td>"._("Package name")."</td>\n";
716 echo "<td><input type=\"text\" size=\"20\" name=\"name\" value=\"".$_POST[name]."\"/></td>\n";
720 echo "<td>"._("Days")."</td>\n";
721 echo "<td>"._("From").": <input type=\"text\" size=\"20\" name=\"age1\" value=\"".$_POST["age1"]."\" /></td>\n";
722 echo "<td>"._("To").": <input type=\"text\" size=\"20\" name=\"age2\" value=\"".$_POST["age2"]."\" /></td>\n";
726 echo "<td>"._("Size")."</td>\n";
727 echo "<td>"._("From").": <input type=\"text\" size=\"20\" name=\"size1\" value=\"".$_POST["size1"]."\" /></td>\n";
728 echo "<td>"._("To").": <input type=\"text\" size=\"20\" name=\"size2\" value=\"".$_POST["size2"]."\" /></td>\n";
732 echo "<td>"._("Search logs:")."</td>\n";
736 echo "<td>"._("Failed")."</td>\n";
737 echo "<td>"._("OK")."</td>\n";
740 for ($i = 0; $i < count($addr); $i++)
744 $check=" checked=\"on\"";
745 echo "<td><input name=$name type=\"checkbox\"$check>".$addr[$i]."</input></td>\n";
747 $check=" checked=\"on\"";
748 echo "<td><input name=$name type=\"checkbox\"$check>".$addr[$i]."</input></td>\n";
753 echo "<td><input type=submit name=submit value=\""._("Search!")."\" /></td>";
758 // if (isset($_POST["name"]) || isset($_POST["age1"]) || isset($_POST["age2"]) ||
759 // isset($_POST["size1"]) || isset($_POST["size2"]))
760 if (($_POST["name"]!="") || ($_POST["age1"]!="") || ($_POST["age2"]!="") ||
761 ($_POST["size1"]!="") || ($_POST["size2"]!=""))
765 for ($i = 0; $i < count($addr); $i++)
770 if (isset($_POST["as".$j."_".$i]))
773 $tmp_list = directory_list($i,$j);
775 $tmp_list = open_ftp($i,$j);
777 if (is_array($tmp_list))
779 while (list($k,$name)=each($tmp_list))
781 $s = filesize("$root_directory$name");
782 $t = $now - filemtime("$root_directory$name");
784 if (($_POST["name"]!="") && (!preg_match("/".$_POST["name"]."/i",$name)))continue;
785 if (($_POST["age1"]) && ($_POST["age1"]>$t))continue;
786 if (($_POST["age2"]) && ($_POST["age2"]<$t))continue;
788 if (($_POST["size1"]) && ($_POST["size1"]>$s))continue;
789 if (($_POST["size2"]) && ($_POST["size2"]<$s))continue;
791 $list[$i."_".$j."_".$k]=$name;
797 if (sizeof($list)==0)
799 echo _("Nothing found");
803 echo "<table border=\"0\" cellspacing=\"1\" ".
804 "cellpadding=3 bgcolor=\"#000000\" width=\"90%\">\n";
805 echo "<tr><th bgcolor=\"#CCCCFF\" align=\"left\" width=\"10%\">"._("Builder").
806 "[<a href=\"$big_url&ns=2\">"._("sort")."</a>]</th>";
807 echo "<th bgcolor=\"#CCCCFF\" align=\"left\" width=\"60%\">"._("Log File").
808 "[<a href=\"$big_url&ns=1\">"._("sort")."</a>]</th>".
809 "<th bgcolor=\"#CCCCFF\" align=\"right\" width=\"15%\">"._("Size")."</th> ".
810 "<th bgcolor=\"#CCCCFF\" align=\"left\">"._("Age").
811 "[<a href=\"$big_url&ns=0\">"._("sort")."</a>]</th>".
814 function cmp1($f1, $f2) {
815 global $ftp_conn, $root_directory, $local;
817 return filemtime("$root_directory$f2") - filemtime("$root_directory$f1");
818 return ftp_mdtm($ftp_conn, $f2) - ftp_mdtm($ftp_conn, $f1);
821 function cmp2($f1, $f2) {
822 list($p11,$p12,$p13)=explode("_",$f1);
823 list($p21,$p22,$p23)=explode("_",$f2);
824 return strcmp($f2,$f1);
829 usort($list, "cmp1");
830 // } else if ($ns == 2)
832 // uksort($list, "cmp2");
839 while (list($k,$name)=each($list))
841 if (($counter<$off) || ($counter>$off+$cnt-1))
848 list($i,$j,$k)=explode("_",$k);
850 $h = bin2hex(mhash(MHASH_MD5, $name));
851 $f = preg_replace("/.*\/([^\/]*)$/", "\\1", $name);
852 $f = preg_replace("/\.(bz2|gz)$/", "", $f);
854 $s = filesize("$root_directory$name");
855 $t = $now - filemtime("$root_directory$name");
857 $s = ftp_size($ftp_conn, $list[$i]);
858 $t = $now - ftp_mdtm($ftp_conn, $list[$i]);
866 $t = $t . " " . ngettext("day","days",$t);
869 $t = $t . " " . ngettext("hour","hours",$t);
873 $t = $t . " " . ngettext("minute","minutes",$t);
875 $big_url = "$url?idx=$i&ok=$j&ns=$ns&cnt=$cnt";
876 $u = "$big_url&off=$off&id=$h";
878 $builder=$addr[$i]."/".(($j=="1")?"OK":"FAIL");
880 echo "<td bgcolor=#CCCCCC><a href=\"$u\">$builder</a></td>";
881 echo "<td bgcolor=#CCCCCC><a href=\"$u\">$f</a> ".
882 "[<a href=\"$u&action=text\">"._("text")."</a> | ".
883 "<a href=\"$u&action=tail\">"._("tail")."</a>]".
884 "</td><td bgcolor=#CCCCCC align=right>".
885 "$s</td><td bgcolor=#CCCCCC>$t</td></tr>\n";
887 echo "</table></div>\n";
889 $backarr = "<<< ";
890 $back = _("Page back");
891 $forward = _("Page forward");
892 $forwardarr = " >>>";
896 echo "<p><table width=\"90%\" align=\"center\"><tr><td align=left width=1%>";
902 $hrefurl = "<a href=\"$big_url&off=$noff\">";
903 echo "$hrefurl$backarr</a></td><td align=left>$hrefurl$back</a>";
905 echo "$backarr</td><td align=left>$back";
908 echo "</td>\n<td align=\"center\">";
909 echo "</td>\n<td align=\"right\">";
911 if ($off + $cnt < count($list))
916 $hrefurl = "<a href=\"$big_url&off=$noff\">";
917 echo "$hrefurl$forward</a></td><td align=\"right\" width=\"1%\">$hrefurl$forwardarr</a>";
921 echo "$forward</td><td align=\"right\" width=\"1%\">$forwardarr";
924 echo "</td>\n</tr></table></p>";
934 echo _("Enter something!");
942 <table border="0" width="100%"><tr><td width="20%"> </td><td>
943 <h1><?=_("Welcome!")?></h1>
944 <p><?=_("Welcome to PLD Build Logs WWW interface.")?></p><p>
945 <?=_("Feel free to email bug reports, complaints and feature requests ")?>
946 <!-- ech... niech strace... -->
947 <a href="mailto:feedback@pld-linux.org"><?=_("to us")?></a>. <?=_("Positive opinions are also")?>
948 <a href="mailto:feedback@pld-linux.org"><?=_("welcome")?></a> ;)</p>
949 <p>Version: $Id: index.php,v 1.62 2003/06/07 17:18:35 blues Exp $</p>
950 </td><td width="20%"> </td></tr>
955 header("Expires: Mon, 26 Jul 1997 05:00:00 GMT");
956 header("Last-Modified: " . gmdate("D, d M Y H:i:s") . " GMT");
957 header("Cache-Control: no-cache, must-revalidate");
958 header("Pragma: no-cache");
962 if ($action == "text") {
964 } else if ($action == "adv_search") {
968 } else if ($action == "qatxt") {
972 echo "<table cellpadding=\"10\" width=\"100%\"><tr><td valign=\"top\" width=\"10%\">";
974 echo "</td><td valign=\"top\">";
978 else if ($action == "sqa")
981 dump_log($action == "tail");
982 else if (isset($idx))
986 echo "</td></tr></table>";
992 if ($action == "text") {
994 } else if ($action == "qatxt") {
998 echo "<table cellpadding=\"10\" width=\"100%\"><tr><td valign=top width=\"10%\">";
1000 echo "</td><td valign=\"top\">";
1002 if ($action == "qa")
1004 else if (isset($id))
1005 dump_log($action == "tail");
1006 else if (isset($idx))
1010 echo "</td></tr></table>";