[cvs] / gkbweb / htdocs / specialized.php  

cvs: gkbweb/htdocs/specialized.php


1 : tmcnulty 1.1 <?php
2 :     include($DOCUMENT_ROOT."/shared/inc/global.inc");
3 :     $page = "specialized";
4 :     $title = "Specialized Kernels";
5 :    
6 :     $host = "www.ppckernel.org";
7 :    
8 :     if (!($dbh = dbconnect())) {
9 :     echo "FATAL ERROR: dbconnect() failed.";
10 :     exit;
11 :     }
12 :    
13 :     include($layout_top);
14 :     ?>
15 :     <h2>Specialized Kernels</h2>
16 :     <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>
17 :     <?php
18 :     echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n";
19 : tmcnulty 1.3 if (!empty($category))
20 :     $catclause="category='$category' and";
21 :     else
22 :     $catclause="";
23 : tmcnulty 1.4 /*
24 : tmcnulty 1.3 if ($q = mysql_query("select id, safename, fullname, summary from builds where $catclause (configpath != '' or configfile != \"\" or patchfile != \"\") and status!='disabled' order by fullname", $dbh)) {
25 : tmcnulty 1.1 $i = 0;
26 :     while ($r = mysql_fetch_object($q)) {
27 :     $i++;
28 :     $info = new buildinfo($r->safename);
29 :    
30 :     dlstart($r->fullname, $info->version);
31 :    
32 :     if ($info->version != "None") {
33 :     echo "<p>$r->summary</p>\n";
34 :     echo "<p><b>Latest build:</b> $info->version<br>\n";
35 :     echo "<b>Built on:</b> $info->date</p>\n";
36 :    
37 :     } else {
38 :     echo "<p>There are currently no builds of this kernel available.</p>";
39 :     }
40 :    
41 :     echo "<p><a href=\"kernel.php?id=$r->id\">More info...</a></p>\n";
42 :    
43 :     dlend();
44 :    
45 :     if ($i < mysql_num_rows($q))
46 :     echo "<tr><td colspan=\"2\">&nbsp;</td></tr>\n";
47 :     }
48 :     }
49 : tmcnulty 1.4 */
50 :     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)) {
51 :     echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n";
52 :     $i=0;
53 :     while ($r = mysql_fetch_object($q)) {
54 :     $i++;
55 :     showkernel($r->name, $r->safename, $r->fullname, $r->description, $r->patchfile, $r->configfile, $r->configpath);
56 :     if ($i < mysql_num_rows($q))
57 :     echo "<tr><td colspan=\"2\">&nbsp;</td></tr>\n";
58 :     }
59 :     echo "</table>\n";
60 :     }
61 :    
62 : tmcnulty 1.1
63 :     include($layout_tail);
64 :     ?>

Tobias McNulty

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help