[cvs] / gkbweb / htdocs / adtest.php  

cvs: gkbweb/htdocs/adtest.php


1 : tmcnulty 1.1 <?php
2 :     // error_reporting(E_ALL);
3 :     include($DOCUMENT_ROOT."/shared/inc/global.inc");
4 :     $page = "home";
5 :     $title = "PowerPC Linux Kernel Archives";
6 :    
7 :     $host = "www.ppckernel.org";
8 :    
9 :     if (!($dbh = dbconnect())) {
10 :     echo "FATAL ERROR: dbconnect() failed.";
11 :     exit;
12 :     }
13 :    
14 :     include($layout_top);
15 :     ?>
16 :     <h2>PowerPC Kernel Archives</h2>
17 :     <p>Welcome to the PowerPC Kernel Archives at ppckernel.org. We've completely redone our site to bring you not only up-to-date builds of the latest PowerPC kernel source trees, but a carefully selected set of specialized kernels as well. Our specialized kernels are aimed at supporting specific hardware setups or PowerPC linux distributions, such as Yellow Dog or SuSE. For more information visit the <a href="specialized.php">specialized kernel</a> page.</p>
18 :     <script type="text/javascript"><!--
19 :     google_ad_client = "pub-0471262337098631";
20 :     google_ad_width = 250;
21 :     google_ad_height = 250;
22 :     google_ad_format = "250x250_as";
23 :     google_ad_channel ="";
24 :     google_color_border = "B4D0DC";
25 :     google_color_bg = "ECF8FF";
26 :     google_color_link = "0000CC";
27 :     google_color_url = "008000";
28 :     google_color_text = "6F6F6F";
29 :     //--></script>
30 :     <script type="text/javascript"
31 :     src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
32 :     </script>
33 :     <h3>Default Builds</h3>
34 :     <p>One of the primary services of this site is to bring you up-to-date builds of the latest PowerPC Linux kernel source trees. Below you will find a list of the current trees we're hosting, with download links to the kernel binaries. For more information about the specific trees and links to their source code archives, select one of the items under the Kernel Trees menu to your left.</p>
35 :     <?php
36 :     echo "<table border=\"0\" cellpadding=\"5\" cellspacing=\"0\">\n";
37 :    
38 :     if ($q = mysql_query("select safename, fullname from builds where configfile = \"\" and patchfile = \"\" order by fullname", $dbh)) {
39 :     $i = 0;
40 :     while ($r = mysql_fetch_object($q)) {
41 :     $i++;
42 :     $info = new buildinfo($r->safename);
43 :    
44 :     dlstart($r->fullname, $info->version);
45 :    
46 :     if ($info->version != "None") {
47 :     echo "<p><b>Built on:</b> ".formatdate($info->date)."<br>\n";
48 :     echo "<b>Download:</b> " . binarylink($r->safename, $info->version) . "</p>\n";
49 :     } else {
50 :     echo "<p>There are currently no builds of this kernel available.</p>";
51 :     }
52 :    
53 :     if (!empty($info->failed))
54 :     echo "<p><b>Note:</b> the source code for $info->failed
55 :     is available but could not be built. Last build
56 :     attempted ".formatdate($info->failed_date).".</p>\n";
57 :    
58 :    
59 :     dlend();
60 :    
61 :     if ($i < mysql_num_rows($q))
62 :     echo "<tr><td colspan=\"2\">&nbsp;</td></tr>\n";
63 :     }
64 :     }
65 :    
66 :     echo "</table>";
67 :    
68 :     include("$html/shared/inc/subscribe.inc");
69 :     ?>
70 :     <!--<h2>Older Builds</h2>
71 :     <p>An archive of older builds is also available for each kernel tree we host here. To browse the archives, select one of the kernel trees below.</p>
72 :     <table border="0" cellpadding="2" cellspacing="0">
73 :     <?php
74 :     dbconnect();
75 :    
76 :     if ($q = mysql_query("select fullname, safename from builds")) {
77 :     while ($r = mysql_fetch_object($q)) {
78 :     ?>
79 :     <tr>
80 :     <td align="right"><b><?php echo $r->fullname; ?>:</b></td>
81 :     <td><a href="/<?php echo $r->safename; ?>/"><?php echo $r->safename; ?></a></td>
82 :     </tr>
83 :     <?php
84 :     }
85 :     }
86 :     ?>
87 :     </table>-->
88 :     <?php include($layout_tail); ?>

Tobias McNulty

Powered by ViewCVS 1.0-dev
(Powered by ViewCVS)

ViewCVS and CVS Help