<?
header('Content-Type: text/html; charset="utf-8"');
header('Content-Script-Type: text/javascript');
header('Content-Style-Type: text/css');
header('Pragma: no-cache');
if (isset($_GET['text'])) {
header('Content-Type: text/plain; charset="utf-8"');
} else {
header('Content-Type: text/html; charset="utf-8"');
$html = 1;
?>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title>Debian Quality Assurance -- dak ls aka madison</title>
<link rev="made" href="mailto:
[email protected]">
<link rel="shortcut icon" href="/favicon.ico">
<script type="text/javascript" language="JavaScript">
function objectOver(x){
x.style.color="blue";
}
function objectOut(x){
x.style.color="black";
}
function toggle(x) {
var oContent=document.getElementById(x) ;
if (oContent.style.display=="block") {
oContent.style.display="none";
} else {
oContent.style.display="block";
}
}
</script>
</head>
<body text="#000000" bgcolor="#FFFFFF" link="#0000FF" vlink="#800080" alink="#FF0000">
<div align="center">
<a href="
http://www.debian.org/"><img src="
http://www.debian.org/logos/openlogo-nd-50.png" border="0" hspace="0" vspace="0" alt=""></a>
<a href="
http://www.debian.org/"><img src="
http://www.debian.org/Pics/debian.png" border="0" hspace="0" vspace="0" alt="Debian Project"></a>
</div>
<br>
<table bgcolor="#DF0451" border="0" width="100%" cellpadding="0" cellspacing="0" summary="">
<tr>
<td valign="top">
<img src="
http://www.debian.org/Pics/red-upperleft.png" align="left" border="0" hspace="0" vspace="0" alt="" width="15" height="16">
</td>
<td rowspan="2" align="center">
<font color="#FFFF00"><big><big>dak ls aka madison</big></big></font>
</td>
<td valign="top">
<img src="
http://www.debian.org/Pics/red-upperright.png" align="right" border="0" hspace="0" vspace="0" alt="" width="16" height="16">
</td>
</tr>
<tr>
<td valign="bottom">
<img src="
http://www.debian.org/Pics/red-lowerleft.png" align="left" border="0" hspace="0" vspace="0" alt="" width="16" height="16">
</td>
<td valign="bottom">
<img src="
http://www.debian.org/Pics/red-lowerright.png" align="right" border="0" hspace="0" vspace="0" alt="" width="15" height="16">
</td>
</tr>
</table>
<?
}
$token_re = "[a-z0-9][a-z0-9.+-]+";
$token = "/^".$token_re."$/i";
$token_list = "/^(".$token_re."[ ,]?)+$/i";
if (isset($_GET['a']) and preg_match($token_list, $_GET['a']))
$opt .= " -a'".$_GET['a']."'";
if (isset($_GET['b']) and preg_match($token, $_GET['b']))
$opt .= " -b'".$_GET['b']."'";
if (isset($_GET['c']) and preg_match($token_list, $_GET['c']))
$opt .= " -c'".$_GET['c']."'";
if (isset($_GET['g'])) $opt .= " -g";
if (isset($_GET['G'])) $opt .= " -G";
if (isset($_GET['s']) and preg_match($token_list, $_GET['s']))
$opt .= " -s'".$_GET['s']."'";
if (isset($_GET['S'])) $opt .= " -S";
//$handle = @fopen("/home/katie/last-db-reload", "r");
//if ($handle) {
// $buffer = fgets($handle, 4096);
// $st = stat(rtrim($buffer));
// $date = "Projectb snapshot from " . gmdate("r", $st[9]);
//}
//fclose($handle);
//$st = stat("/home/katie/last-db-reload");
//$date .= ", loaded at " . gmdate("r", $st[9]);
$package = $_GET['package'];
if (preg_match($token_list, $package)) {
if ($html) {
print "<h2>dak ls $package</h2>\n";
print("<!-- dak ls $opt $package -->\n");
print("<pre>\n");
}
system("dak ls $opt $package 2>&1");
if ($html)
print "</pre>\n";
elseif (isset($_GET['t']))
print $date . "\n";
} elseif ($html) {
print "<h2>dak ls</h2>\n";
}
if (!$html)
exit; /* exit here in text mode */
?>
<p>
<form action="madison.php" method="get">
<input type="text" name="package" value="<? print $package ?>">
<input type="submit" value="Query">
<br>
<small> Show:
<span onmouseover='javascript:objectOver(this)' onmouseout='javascript:objectOut(this)' onclick='javascript:toggle("config")'>More options</span>,
<span onmouseover='javascript:objectOver(this)' onmouseout='javascript:objectOut(this)' onclick='javascript:toggle("help")'>help</span>
</small><br>
<span id="config" style="display:<? print $opt ? "block" : "none" ?>">
<table border="0" summary="">
<tr><td>architecture</td><td><input type="text" name="a" value="<? print $_GET['a'] ?>"></td></tr>
<tr><td>binary-type</td><td><input type="text" name="b" value="<? print $_GET['b'] ?>"></td></tr>
<tr><td>component</td><td><input type="text" name="c" value="<? print $_GET['c'] ?>"></td></tr>
<tr><td>greaterorequal</td><td><input type="checkbox" name="g"<? if (isset($_GET['g'])) print " checked" ?>></td></tr>
<tr><td>greaterthan</td><td><input type="checkbox" name="G"<? if (isset($_GET['G'])) print " checked" ?>></td></tr>
<tr><td>suite</td><td><input type="text" name="s" value="<? print $_GET['s'] ?>"></td></tr>
<tr><td>source-and-binary</td><td><input type="checkbox" name="S"<? if (isset($_GET['S'])) print " checked" ?>></td></tr>
<tr><td>text-only</td><td><input type="checkbox" name="text"> with time <input type="checkbox" name="t"<? if (isset($_GET['t'])) print " checked" ?>></td></tr>
</table>
</span>
</form>
<p>
<span id="help" style="display:none">
<pre>
Usage: dak ls [OPTION] PACKAGE[...]
Display information about PACKAGE(s).
-a, --architecture=ARCH only show info for ARCH(s)
-b, --binary-type=TYPE only show info for binary TYPE
-c, --component=COMPONENT only show info for COMPONENT(s)
-g, --greaterorequal show buildd 'dep-wait pkg >= {highest version}' info
-G, --greaterthan show buildd 'dep-wait pkg >> {highest version}' info
-h, --help show this help and exit
-r, --regex treat PACKAGE as a regex <i>[not supported in madison.php]</i>
-s, --suite=SUITE only show info for this suite
-S, --source-and-binary show info for the binary children of source pkgs
ARCH, COMPONENT and SUITE can be comma (or space) separated lists, e.g.
--architecture=m68k,i386
</pre>
</span>
</p>
<hr>
Made by Christoph Berg. Last generated on Thu Nov 22 19:32:56 2007 UTC
<br>
Copyright (C) 1999-2007 <a
href="
http://www.spi-inc.org/">Software in the Public Interest</a> and others;
See <a href="
http://www.debian.org/license">license terms</a>.
</body>
</html>