/[qa]/trunk/wml/debcheck.wml
ViewVC logotype

Diff of /trunk/wml/debcheck.wml

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 2472 by geissert, Sun Feb 6 06:14:20 2011 UTC revision 2738 by geissert, Mon Apr 16 16:41:41 2012 UTC
# Line 4  header('Content-Type: text/html; charset Line 4  header('Content-Type: text/html; charset
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) {
# Line 22  header('Content-Type: text/html; charset Line 18  header('Content-Type: text/html; charset
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'; };
# Line 40  header('Content-Type: text/html; charset Line 36  header('Content-Type: text/html; charset
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="">
# Line 147  header('Content-Type: text/html; charset Line 143  header('Content-Type: text/html; charset
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),

Legend:
Removed from v.2472  
changed lines
  Added in v.2738

  ViewVC Help
Powered by ViewVC 1.1.5