]> git.pld-linux.org Git - projects/buildlogs.git/blobdiff - obsolete/buildlogs/index.php
- fixed few undefined variables
[projects/buildlogs.git] / obsolete / buildlogs / index.php
index 88db595a37a5e22131d08570dc9be1c6419c81e0..655180d7f159ae072770fdff7c268779e5fdb47d 100644 (file)
@@ -1,5 +1,5 @@
 <?php
-$buildlogs_server = "buildlogs.pld.org.pl";
+$buildlogs_server = "buildlogs.pld-linux.org";
 $url = "index.php";
 $addr = array(
        "/ac/i386",
@@ -15,18 +15,20 @@ $addr = array(
        "/ra/alpha",    
        "/ra/sparc",
        "/ra/ppc",
-       "/nest/athlon",
        "/nest/i386",
        "/nest/i586",
        "/nest/i686",
+       "/nest/athlon",
        "/nest/ppc"
 );
-$qa_base = "http://ftp.pld.org.pl/.stat/builder";
+$qa_base = "http://ftp.pld-linux.org/.stat/builder";
 $qa_addr = array(
+       "/ep/rpmqa-ac-i386.txt",
+       "/ep/rpmqa-ac-i386.txt",
+       "/ep/rpmqa-ac-i386.txt",
        "",
-       "/kenny/rpmqa-nest-i386.txt",
-       "/kenny/rpmqa-nest-i586.txt",
-       "/kenny/rpmqa-nest-i686.txt",
+       "/alpha/rpmqa-ac-alpha.txt",    
+       "/newboss/rpmqa-ac-sparc.txt",
        "",
        "/ep/rpmqa-ra-i386.txt",
        "/ep/rpmqa-ra-i586.txt",
@@ -34,15 +36,14 @@ $qa_addr = array(
        "/mifgate/rpmqa-ra-alpha.txt",  
        "/team/rpmqa-ra-sparc.txt",
        "",
-       "/ep/rpmqa-ac-i386.txt",
-       "/ep/rpmqa-ac-i386.txt",
-       "/ep/rpmqa-ac-i386.txt",
-       "/alpha/rpmqa-ac-alpha.txt",    
-       "/newboss/rpmqa-ac-sparc.txt",
+       "/kenny/rpmqa-nest-i386.txt",
+       "/kenny/rpmqa-nest-i586.txt",
+       "/kenny/rpmqa-nest-i686.txt",
+       "",
        ""
 );
 $local = 1; /* $local=0 for FTP */ 
-$root_directory = "/home/services/ftp/pub/logs";
+$root_directory = "/home/services/ftp/pub/pld-buildlogs";
 $ftp_conn = 0;
 /* It should be set */
 
@@ -78,9 +79,12 @@ textdomain("messages");
 
 if (isset($_GET["idx"]))$idx=$_GET["idx"];
 if (isset($_GET["ok"]))$ok=$_GET["ok"];
+else $ok="";
 if (isset($_GET["ns"]))$ns=$_GET["ns"];
+else $ns="";
 if (isset($_GET["cnt"]))$cnt=$_GET["cnt"];
 if (isset($_GET["action"]))$action=$_GET["action"];
+else $action="";
 if (isset($_GET["off"]))$off=$_GET["off"];
 if (isset($_GET["id"]))$id=$_GET["id"];
 
@@ -183,7 +187,7 @@ function open_ftp($pidx="", $pok="")
        }
 
        if (ftp_login($ftp, "anonymous", 
-                     "buildlogs-iface@pld.org.pl") == false) {
+                     "buildlogs-iface@pld-linux.org") == false) {
                ftp_quit($ftp);
                mydie(_("cannot ftp login to")." $buildlogs_server");
                return false;
@@ -232,6 +236,7 @@ function directory_list($pidx="",$pok="")
 
        $dir = opendir("$root_directory$a");
        $i = 0;
+       $list = array ();
        while ($file = readdir($dir)) {
                if (($file != ".") && ($file != "..")) {
                        $list[$i] = "$a/$file";
@@ -283,7 +288,7 @@ function list_logs()
 
        if ($ns != 1) {
                $ns = 0;
-               usort($list, cmp);
+               usort($list, "cmp");
        } else {
                sort($list);
        }
@@ -561,7 +566,7 @@ function dump_text()
 
 function list_archs()
 {
-       global $addr, $url, $idx, $cnt;
+       global $addr, $url, $idx, $cnt,$ok,$ns;
 
        if (!isset($cnt))
                $cnt = 16;
@@ -582,10 +587,10 @@ function list_archs()
        echo "<a href=\"$big_url&amp;action=adv_search\">"._("Advanced Search")."</a><br />\n";
        
        echo "<a href=\"$url\">main()</a><hr />\n";
-       echo "<a href=\"http://www.pld.org.pl/\"><img src=\"powpld.png\" ".
+       echo "<a href=\"http://www.pld-linux.org/\"><img src=\"powpld.png\" ".
                "alt=\""._("Powered by PLD Linux")."\" border=\"0\" /></a><br />\n" .
             "<small>(c) 2002 ".
-            "<a href=\"mailto:feedback@pld.org.pl\">PLD&nbsp;Team</a>\n".
+            "<a href=\"mailto:feedback@pld-linux.org\">PLD&nbsp;Team</a>\n".
             "</small></div>\n";
 
        # smile ;)
@@ -603,7 +608,9 @@ function list_archs()
                     "Real Operating System", "Real Computer",
                     "computron", "bogon", "quantum bogodynamics",
                     "BOFH", "/dev/ill", "nasi tu byli",
-                    "Paranoid Android", "Lunatic Corp", "Parallel thinking"
+                    "Paranoid Android", "Lunatic Corp", "Parallel thinking",
+                    "sfistak", "Linus", "The Golden Path", "Dark Side of the Force",
+                    "Przewodniczacego Lepper-a", "KDE", "Microsoft Windows 2003"
                     # feel free to add sth if you change this file ;)
                     );
        echo _("Powered by")." ";
@@ -618,7 +625,7 @@ function list_archs()
 
        global $qa_addr;
 
-       if ($qa_addr[$idx] != "") {
+       if (isset($qa_addr[$idx]) && $qa_addr[$idx] != "") {
        echo "<form action=\"index.php\" method=\"post\">";
        echo "<input type=hidden name=idx value=$idx />";
        echo "<input type=hidden name=action value=sqa />";
@@ -937,9 +944,9 @@ function welcome()
 <p><?=_("Welcome to PLD Build Logs WWW interface.")?></p><p>
 <?=_("Feel free to email bug reports, complaints and feature requests ")?>
 <!-- ech... niech strace... -->
-<a href="mailto:feedback@pld.org.pl"><?=_("to us")?></a>. <?=_("Positive opinions are also")?> 
-<a href="mailto:feedback@pld.org.pl"><?=_("welcome")?></a> ;)</p>
-<p>Version: $Id: index.php,v 1.55 2002/11/01 17:59:32 ankry Exp $</p>
+<a href="mailto:feedback@pld-linux.org"><?=_("to us")?></a>. <?=_("Positive opinions are also")?> 
+<a href="mailto:feedback@pld-linux.org"><?=_("welcome")?></a> ;)</p>
+<p>Version: $Id: index.php,v 1.62 2003/06/07 17:18:35 blues Exp $</p>
 </td><td width="20%">&nbsp;</td></tr>
 </table>
 <?php
This page took 0.08614 seconds and 4 git commands to generate.