[cvs] / gkbweb / htdocs / specialized.php  

cvs: gkbweb/htdocs/specialized.php

Diff for /gkbweb/htdocs/specialized.php between version 1.4 and 1.5

version 1.4, Sat Dec 18 20:26:48 2004 UTC version 1.5, Sun Dec 19 03:07:15 2004 UTC
Line 15 
Line 15 
 <h2>Specialized Kernels</h2>  <h2>Specialized Kernels</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>  <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";          echo "<form type='get' action='specialized.php'>\n";
           echo "<p><b>Build Categories:</b> ";
           echo "<select name='category' onchange='this.form.submit()'>";
           echo "<option value=''>All</option>";
           if ($q = mysql_query("select safename,name from buildcategories where safename!='default' order by name")) {
                   while ($r = mysql_fetch_object($q)) {
                           echo "<option value='$r->safename'";
                           if ($category == $r->safename)
                                   echo " selected";
                           echo ">$r->name</option>";
   
                   }
           }
           echo "</select>";
           echo "</p>";
           echo "</form>";
         if (!empty($category))          if (!empty($category))
                 $catclause="category='$category' and";                  $catclause="category='$category' and";
         else          else
Line 48 
Line 63 
         }          }
         */          */
         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 ($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";                  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)) {
Line 57 
Line 73 
                                 echo "<tr><td colspan=\"2\">&nbsp;</td></tr>\n";                                  echo "<tr><td colspan=\"2\">&nbsp;</td></tr>\n";
                 }                  }
                 echo "</table>\n";                  echo "</table>\n";
                   } else {
                           echo "<p>No kernels found.</p>\n";
                   }
         }          }
   
   


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

Tobias McNulty

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help