| 4 |
|
|
| 5 |
#use wml::templ::template title="debcheck" author="Peter Palfrader" |
#use wml::templ::template title="debcheck" author="Peter Palfrader" |
| 6 |
|
|
|
{#style#: |
|
|
<link type="text/css" rel="stylesheet" href="revamp.css" /> |
|
|
:##} |
|
|
|
|
| 7 |
# (c) 2001-2003, 2007 Peter Palfrader <weasel@debian.org> |
# (c) 2001-2003, 2007 Peter Palfrader <weasel@debian.org> |
| 8 |
<? |
<? |
| 9 |
$BASEDIR='/org/qa.debian.org/data/debcheck/result/'; |
$BASEDIR='/srv/qa.debian.org/data/debcheck/result/'; |
| 10 |
$DISTRIBUTIONS = array( 'sid', 'wheezy', 'squeeze', 'lenny' ); |
$DISTRIBUTIONS = array( 'sid', 'wheezy', 'squeeze', 'lenny' ); |
| 11 |
|
|
| 12 |
function inc($file) { |
function inc($file) { |
| 18 |
}; |
}; |
| 19 |
|
|
| 20 |
# import request variables |
# import request variables |
| 21 |
$dist = $_REQUEST['dist']; |
$dist = isset($_GET['dist'])? $_GET['dist'] : ''; |
| 22 |
$list = $_REQUEST['list']; |
$list = isset($_GET['list'])? $_GET['list'] : ''; |
| 23 |
$package = $_REQUEST['package']; |
$package = isset($_GET['package'])? $_GET['package'] : ''; |
| 24 |
$arch = $_REQUEST['arch']; |
$arch = isset($_GET['arch'])? $_GET['arch'] : ''; |
| 25 |
|
|
| 26 |
if (! $dist ) { $dist = 'sid'; }; |
if (! $dist ) { $dist = 'sid'; }; |
| 27 |
if ( $dist == 'oldstable' ) { $dist = 'lenny'; }; |
if ( $dist == 'oldstable' ) { $dist = 'lenny'; }; |
| 36 |
print "wrong chars in variable.\n"; |
print "wrong chars in variable.\n"; |
| 37 |
} else { |
} else { |
| 38 |
|
|
| 39 |
$LINK= sprintf("%s?dist=%s", $PHP_SELF, $dist); |
$LINK= sprintf("?dist=%s", $dist); |
| 40 |
?> |
?> |
| 41 |
<h2>Debcheck</h2> |
<h2>Debcheck</h2> |
| 42 |
<TABLE BORDER="0" WIDTH="100%" cellpadding="5" cellspacing="0" summary=""> |
<TABLE BORDER="0" WIDTH="100%" cellpadding="5" cellspacing="0" summary=""> |
| 143 |
printf("<em>%s</em> ", $dist); |
printf("<em>%s</em> ", $dist); |
| 144 |
} else { |
} else { |
| 145 |
if (file_exists($BASEDIR.$DISTRIBUTIONS[$i].'/'.$inc)) { |
if (file_exists($BASEDIR.$DISTRIBUTIONS[$i].'/'.$inc)) { |
| 146 |
printf("<a href=\"%s?list=%s&package=%s&arch=%s&dist=%s\">%s</a> ", |
printf("<a href=\"?list=%s&package=%s&arch=%s&dist=%s\">%s</a> ", |
|
$PHP_SELF, |
|
| 147 |
urlencode($list), |
urlencode($list), |
| 148 |
urlencode($package), |
urlencode($package), |
| 149 |
urlencode($arch), |
urlencode($arch), |