[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 : tmcnulty 1.5 echo "<form type='get' action='specialized.php'>\n";
19 :     echo "<p><b>Build Categories:</b> ";
20 :     echo "<select name='category' onchange='this.form.submit()'>";
21 :     echo "<option value=''>All</option>";
22 :     if ($q = mysql_query("select safename,name from buildcategories where safename!='default' order by name")) {
23 :     while ($r = mysql_fetch_object($q)) {
24 :     echo "<option value='$r->safename'";
25 :     if ($category == $r->safename)
26 :     echo " selected";
27 :     echo ">$r->name</option>";
28 :    
29 :     }
30 :     }
31 :     echo "</select>";
32 :     echo "</p>";
33 :     echo "</form>";
34 : tmcnulty 1.3 if (!empty($category))
35 :     $catclause="category='$category' and";
36 :     else
37 :     $catclause="";
38 : tmcnulty 1.4 /*
39 : 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)) {
40 : tmcnulty 1.1 $i = 0;
41 :     while ($r = mysql_fetch_object($q)) {
42 :     $i++;
43 :     $info = new buildinfo($r->safename);
44 :    
45 :     dlstart($r->fullname, $info->version);
46 :    
47 :     if ($info->version != "None") {
48 :     echo "<p>$r->summary</p>\n";
49 :     echo "<p><b>Latest build:</b> $info->version<br>\n";
50 :     echo "<b>Built on:</b> $info->date</p>\n";
51 :    
52 :     } else {
53 :     echo "<p>There are currently no builds of this kernel available.</p>";
54 :     }
55 :    
56 :     echo "<p><a href=\"kernel.php?id=$r->id\">More info...</a></p>\n";
57 :    
58 :     dlend();
59 :    
60 :     if ($i < mysql_num_rows($q))
61 :     echo "<tr><td colspan=\"2\">&nbsp;</td></tr>\n";
62 :     }
63 :     }
64 : tmcnulty 1.4 */
65 :     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)) {
66 : tmcnulty 1.5 if (mysql_num_rows($q) > 0) {
67 :     echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n";
68 :     $i=0;
69 :     while ($r = mysql_fetch_object($q)) {
70 :     $i++;
71 :     showkernel($r->name, $r->safename, $r->fullname, $r->description, $r->patchfile, $r->configfile, $r->configpath);
72 :     if ($i < mysql_num_rows($q))
73 :     echo "<tr><td colspan=\"2\">&nbsp;</td></tr>\n";
74 :     }
75 :     echo "</table>\n";
76 :     } else {
77 :     echo "<p>No kernels found.</p>\n";
78 : tmcnulty 1.4 }
79 :     }
80 :    
81 : tmcnulty 1.1
82 :     include($layout_tail);
83 :     ?>

Tobias McNulty

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help