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