87025b16cbf9d4500b0d5bc3038f49a760dfd29b
[infodrom.org/www.infodrom.org] / src / index.html.en.wml
1 #include <basic.style>
2 #include <quote.style>
3 #include "index-tools.pl"
4
5 <html>
6 <head>
7   <title>Infodrom Oldenburg</title>
8   <link rev="made" href="mailto:joey@infodrom.ffis.de" title="Autor">
9   <meta name="author" content="joey@infodrom.north.de (Martin Schulze)">
10   <meta name="description" content=Ïnfodrom Oldenburg is a public information system.">
11   <meta name="keywords" content="Zeitungen, Publikationen, Infodrom Oldenburg, Joey, Linux, Debian, Netzwerk">
12 </head>
13
14 <body-tag>
15
16 <h1 align=center><font face="Helvetica,Arial">Infodrom Oldenburg</font><hr width=90% align=center></h1>
17
18 # Begin warning
19 <table width=100% border=2 cellspacing=0 cellpadding=2>
20 <tr><th align=center bgcolor=#00ff00>
21 <font face="Helvetica,Arial" color=#0000ff>This site is being rebuilt and not yet finished.</font>
22 </th></tr>
23 </table><p>
24 # End warning
25
26 <: main_menu (('Infodrom','Linux','Debian','Linx','Projects','News')); :>
27
28 <p><center><quotebox-en-php index-fortune.html></center>
29
30 <:
31   %specials = ('zeitungen/'                        => 'Newspapers',
32                'search.html'                       => 'Search',
33                'special/'                          => 'Specials',
34                'Mail-Archive/'                     => 'Mails',
35                'http://www.ffis.de/'               => 'ffis e.V.',
36                'http://oldenburg.linux.de/'        => 'LUGO',
37                'http://oldenburger.linuxtage.de/'  => 'LinuxTag OL',
38               );
39   specials_menu (\%specials);
40 :>
41
42 <blockquote><font face="Helvetica,Arial">
43
44     Infodrom Oldenburg is a public information system within the
45     compound of ffis e.V., a federation of people in the north-western
46     part of Germany, who support Free Information and Software.  All
47     services are provided on a non-commercial Basis.
48
49 </font></blockquote>
50
51
52 <blockquote><font face="Helvetica,Arial">
53     <b>Disclaimer:</b><br>
54
55     This site mostly is not bilingual.  Most pages are available only
56     in english or only in german.
57
58 </font></blockquote>
59
60 <?
61
62   function newstab ()
63   {
64     $dbh = pg_pconnect ("kuolema", "5432", "web")
65                  or die("Unable to connect to SQL server");
66
67   #  pg_exec ($dbh, "SET DateStyle = 'ISO'") or die("Datenbank-Abfrage!");
68
69     $query = "SELECT oid,ticker,subject FROM ticker ORDER BY releasedate DESC";
70     $sth = pg_exec ($dbh, $query);
71
72     $tick['ticker-chip'] = "CHIP Online";
73     $tick['ticker-firstlinux'] = "FirstLinux";
74     $tick['ticker-gnn'] = "Golem Network News";
75     $tick['ticker-internetnews'] = "Internet News";
76     $tick['heise-ticker'] = "Heise";
77     $tick['ticker-linuxcommunity'] = "Linux-Community";
78     $tick['ticker-linuxde'] = "Linux.de";
79     $tick['ticker-linuxmag'] = "Linux-Magazin";
80     $tick['ticker-linuxpr'] = "LinuxPR";
81     $tick['ticker-linuxtoday'] = "Linux Today";
82     $tick['ticker-lwn'] = "Linux Weekly News";
83     $tick['ticker-prolinux'] = "Pro Linux";
84     $tick['ticker-slashdot'] = "Slashdot";
85     $tick['ticker-zdnet'] = "ZDNet";
86
87     if ($sth) {
88       $count=0;
89       for ($nr=0; $nr < pg_NumRows ($sth) && $count < 15; $nr++) {
90         $row = pg_fetch_array ($sth, $nr);
91
92         printf ("<tr><td width=\"20%%\" align=\"center\" valign=\"top\"><font size=\"-1\" face=\"Helvetica,Arial\">%s</font></td>",
93                 $tick[$row['ticker']]);
94         printf ("<td width=\"80%%\" align=\"left\" valign=\"top\"><font size=\"-1\" face=\"Helvetica,Arial\"><a href=\"ticker/?ups=%d\">%s</a></font></td></tr>",
95                 $row['oid'], $row['subject']);
96         $count++;
97       }
98     }
99   }
100 ?>
101
102 <center>
103 <box header="<font size=-1 face="Helvetica,Arial" color="#<box-fgcolor>"><b>Latest News</b></font>"
104      bdcolor="#<box-bdcolor>" bdwidth=2 bdspace=5
105      bgcolor="#<box-bgcolor>">
106   <table width=100% border=0 cellpadding=1 cellspacing=0><? newstab (); ?></table>
107 </box>
108 </center>
109
110 <table width=100% border=0>
111 <tr>
112   <td align=left valign=top>
113 #     <a href="http://www.linuxtag.org/"><img src="/gifs/button/lt2kblue.gif" alt="LinuxTag 2000" border=0></a>
114      <font face="Helvetica,Arial"><a href="http://oldenburger.linuxtage.de/"><b>Oldenburger LinuxTag</b></a></font>
115   </td>
116   <td align=right valign=top>
117      <a href="http://www.linux.org/"><img src="/gifs/button/powered_by_linux.gif" alt="Powered by Linux" border=0></a>
118   </td>
119 </tr>
120 </table>
121
122 <page-footer>
123 </body>
124 </html>
125
126 # Local variables:
127 # mode: indented-text
128 # mode: auto-fill
129 # mode: iso-accents
130 # end: