From 5d5a01de082035456e9d8c292e248643c8f14cc8 Mon Sep 17 00:00:00 2001 From: Michal Moskal Date: Sat, 14 Jun 2003 16:07:03 +0000 Subject: [PATCH] - fixed few undefined variables --- obsolete/buildlogs/index.php | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/obsolete/buildlogs/index.php b/obsolete/buildlogs/index.php index 98cdb9c..655180d 100644 --- a/obsolete/buildlogs/index.php +++ b/obsolete/buildlogs/index.php @@ -79,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"]; @@ -233,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"; @@ -284,7 +288,7 @@ function list_logs() if ($ns != 1) { $ns = 0; - usort($list, cmp); + usort($list, "cmp"); } else { sort($list); } @@ -562,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; @@ -621,7 +625,7 @@ function list_archs() global $qa_addr; - if ($qa_addr[$idx] != "") { + if (isset($qa_addr[$idx]) && $qa_addr[$idx] != "") { echo "
"; echo ""; echo ""; @@ -942,7 +946,7 @@ function welcome() . ;)

-

Version: $Id: index.php,v 1.61 2003/06/07 15:14:31 blues Exp $

+

Version: $Id: index.php,v 1.62 2003/06/07 17:18:35 blues Exp $