[cvs] / gkbweb / htdocs / specialized.php  

cvs: gkbweb/htdocs/specialized.php

Diff for /gkbweb/htdocs/specialized.php between version 1.1 and 1.9

version 1.1, Wed Jul 21 17:43:42 2004 UTC version 1.9, Wed Mar 21 22:12:40 2007 UTC
Line 1 
Line 1 
 <?php  <?php
           if (!isset($category))
                   $category="";
   
         include($DOCUMENT_ROOT."/shared/inc/global.inc");          include($DOCUMENT_ROOT."/shared/inc/global.inc");
         $page = "specialized";          $page = "specialized-$category";
         $title = "Specialized Kernels";          $title = "All Specialized Kernels";
   
         $host = "www.ppckernel.org";          $host = "www.ppckernel.org";
   
Line 9 
Line 12 
                 echo "FATAL ERROR: dbconnect() failed.";                  echo "FATAL ERROR: dbconnect() failed.";
                 exit;                  exit;
         }          }
           if ($q = mysql_query("select name, descr from buildcategories where safename='$category'")) {
                   if ($r = mysql_fetch_object($q)) {
                           $title = $r->name;
                           $descr = $r->descr;
                   }
           }
   
         include($layout_top);          include($layout_top);
 ?>  ?>
 <h2>Specialized Kernels</h2>  <h2><?php echo $title ?></h2>
 <p>Welcome to the specialized kernel section of the PowerPC Kernel Archives.  We have carefully selected a set of specialized kernels that work well with specific hardware setups or PowerPC Linux distributions.  Please browse the list below for more information on the specific kernels.</p>  
 <?php  <?php
         echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n";          if (isset($descr)) {
                   echo "<p>$descr</p>";
           }
   
         if ($q = mysql_query("select id, safename, fullname, summary from builds where configfile != \"\" or patchfile != \"\" order by fullname", $dbh)) {          if (!empty($category))
                   $catclause="category='$category' and";
           else
                   $catclause="";
   
           if ($q = mysql_query("select name, safename, fullname, description, patchfile, configfile,configpath from builds, mastertrees where $catclause (configpath != '' or configfile != \"\" or patchfile != \"\") and status!='disabled' and mastertrees.name=builds.mastertree order by fullname", $dbh)) {
                   if (mysql_num_rows($q) > 0) {
                           echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n";
                 $i = 0;                  $i = 0;
                 while ($r = mysql_fetch_object($q)) {                  while ($r = mysql_fetch_object($q)) {
                         $i++;                          $i++;
                         $info = new buildinfo($r->safename);                                  showkernel($r->name, $r->safename, $r->fullname, $r->description, $r->patchfile, $r->configfile, $r->configpath);
   
                         dlstart($r->fullname, $info->version);  
   
                         if ($info->version != "None") {  
                                 echo "<p>$r->summary</p>\n";  
                                 echo "<p><b>Latest build:</b> $info->version<br>\n";  
                                 echo "<b>Built on:</b> $info->date</p>\n";  
   
                         } else {  
                                 echo "<p>There are currently no builds of this kernel available.</p>";  
                         }  
   
                         echo "<p><a href=\"kernel.php?id=$r->id\">More info...</a></p>\n";  
   
                         dlend();  
   
                         if ($i < mysql_num_rows($q))                          if ($i < mysql_num_rows($q))
                                 echo "<tr><td colspan=\"2\">&nbsp;</td></tr>\n";                                  echo "<tr><td colspan=\"2\">&nbsp;</td></tr>\n";
                 }                  }
                           echo "</table>\n";
                   } else {
                           echo "<p>No kernels found.</p>\n";
                   }
         }          }
   
         echo "</table>";  
   
         include($layout_tail);          include($layout_tail);
 ?>  ?>


Generate output suitable for use with a patch program
Legend:
Removed from v.1.1  
changed lines
  Added in v.1.9

Tobias McNulty

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help