-#include <basic.style>
-#include "../index-tools.pl"
+#include <infodrom.style>
+#include <db.style>
-<html>
-<head><title>Infodrom Oldenburg - News</title></head>
+<page title="Infodrom News">
-<body-tag>
-
-<h1 align=center><font face="Helvetica,Arial">Infodrom Oldenburg</font><hr width=90% align=center></h1>
-
-<: main_menu (('Infodrom','Linux','Debian','Linx','Projects','News')); :>
-
-<font face="Helvetica,Arial">
<?
- $dbh = pg_pconnect ("kuolema", "5432", "web")
+ $dbh = pg_pconnect ("<dbhost>", "<dbport>", "<dbname>")
or die("Unable to connect to SQL server");
- pg_exec ($dbh, "SET DateStyle = 'ISO'") or die("Datenbank-Abfrage!");
+ pg_exec ($dbh, "SET DateStyle = 'ISO'"); // ignore or die("Datenbank-Abfrage!");
if ($id > 0) {
$query = "SELECT * FROM news WHERE id = '$id'";
echo ereg_replace ("<newline>", "
", ereg_replace ("<newline><newline>","<p>", ereg_replace ("
", "<newline>", $row['body'])));
-
-
}
}
echo "<p><a href=\"shownews.php3\">Ältere Nachrichten</a><p>";
}
}
?>
-</font>
-<page-footer>
-</body>
-</html>
+</page>
# Local variables:
# mode: indented-text