[cvs] / gkbweb / htdocs / specialized.php  

cvs: gkbweb/htdocs/specialized.php

File: [cvs] / gkbweb / htdocs / specialized.php (download) (as text)
Revision: 1.4, Sat Dec 18 20:26:48 2004 UTC (8 years, 5 months ago) by tmcnulty
Branch: MAIN
Changes since 1.3: +14 -3 lines
fixed configpath

<?php
    
include($DOCUMENT_ROOT."/shared/inc/global.inc");
    
$page "specialized";
    
$title "Specialized Kernels";
    
    
$host "www.ppckernel.org";
    
    if (!(
$dbh dbconnect())) {
        echo 
"FATAL ERROR: dbconnect() failed.";
        exit;
    }
    
    include(
$layout_top);
?>
<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>
<?php
    
echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n";
    if (!empty(
$category))
        
$catclause="category='$category' and";
    else
        
$catclause="";
    
/*
    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)) {
        $i = 0;
        while ($r = mysql_fetch_object($q)) {
            $i++;
            $info = new buildinfo($r->safename);
            
            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))
                echo "<tr><td colspan=\"2\">&nbsp;</td></tr>\n";
        }
    }
    */
    
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)) {
        echo 
"<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n";
        
$i=0;
        while (
$r mysql_fetch_object($q)) {
            
$i++;
            
showkernel($r->name$r->safename$r->fullname$r->description$r->patchfile$r->configfile$r->configpath);
            if (
$i mysql_num_rows($q))
                echo 
"<tr><td colspan=\"2\">&nbsp;</td></tr>\n";
        }
        echo 
"</table>\n";            
    }
        
    
    include(
$layout_tail);
?>

Tobias McNulty

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help