X-Git-Url: https://git.infodrom.org/?p=infodrom.org%2Fwww.zeitungsliste.de;a=blobdiff_plain;f=lib%2Flayout.inc;h=da85a1d3d2cbb7ec716fc3107862e7201a97e610;hp=90a093f4a4dac656893dbc864bbc1e05912dee2e;hb=5845d1f1555b2917e7ab44a2e76dc48a38e838ea;hpb=7a22e791954eeaed5a80b5be71c77c91b6c593cd
diff --git a/lib/layout.inc b/lib/layout.inc
index 90a093f..da85a1d 100644
--- a/lib/layout.inc
+++ b/lib/layout.inc
@@ -41,8 +41,12 @@ function pageheader()
$ret .= '';
if ($zlist['page'] == 'index') {
- $ret .= '';
+ $ret .= '';
$ret .= sprintf('', $cfg['basepath']);
+ } elseif ($cfg['dir'] == 'zeitung') {
+ $ret .= '';
}
if (is_spider())
@@ -71,6 +75,8 @@ function pageheader()
$ret .= '
Home';
if ($cfg['path'] != 'contact.html')
$ret .= sprintf('
Kontakt', $cfg['basepath']);
+ if (is_admin() && $cfg['path'] != 'admin.html')
+ $ret .= sprintf('
Admin', $cfg['basepath']);
if (is_spider())
$ret .= sprintf('
Sitemap', $cfg['basepath']);
$ret .= '
';
@@ -236,11 +242,11 @@ function layout_sitemap()
$sth = db_query($query);
- if ($sth !== false && pg_NumRows($sth) > 0) {
- $ret .= 'Tags bzw. Merkmale
';
+ if ($sth !== false && pg_num_rows($sth) > 0) {
+ $ret .= 'User-Tags (Merkmale)
';
$ret .= '';
- for ($i=0; $i < pg_NumRows($sth); $i++) {
+ for ($i=0; $i < pg_num_rows($sth); $i++) {
$row = pg_fetch_array($sth, $i);
$ret .= sprintf('- %s
',
@@ -255,10 +261,10 @@ function layout_sitemap()
$sth = db_query($query);
- if ($sth !== false && pg_NumRows($sth) > 0) {
+ if ($sth !== false && pg_num_rows($sth) > 0) {
$ret .= 'Zeitungen und Magazine
';
$ret .= '';
- for ($i=0; $i < pg_NumRows($sth); $i++) {
+ for ($i=0; $i < pg_num_rows($sth); $i++) {
$row = pg_fetch_array($sth, $i);
$ret .= sprintf('- %s, %s
',
@@ -267,14 +273,14 @@ function layout_sitemap()
$ret .= '
';
}
- $query = 'SELECT id,topic FROM topics WHERE ORDER BY created';
+ $query = 'SELECT id,topic FROM topics ORDER BY created';
$sth = db_query($query);
- if ($sth !== false && pg_NumRows($sth) > 0) {
+ if ($sth !== false && pg_num_rows($sth) > 0) {
$ret .= 'Diskussionen
';
$ret .= '';
- for ($i=0; $i < pg_NumRows($sth); $i++) {
+ for ($i=0; $i < pg_num_rows($sth); $i++) {
$row = pg_fetch_array($sth, $i);
$ret .= sprintf('- %s
',
@@ -337,11 +343,11 @@ function layout_archive()
$sth = db_query($query);
- if (!$sth || pg_NumRows ($sth) == 0)
+ if (!$sth || pg_num_rows ($sth) == 0)
$ret .= warning('Kein Archiv gefunden.');
else {
$ret .= '';
- for ($i=0; $i < pg_NumRows ($sth); $i++) {
+ for ($i=0; $i < pg_num_rows ($sth); $i++) {
$row = pg_fetch_array($sth, $i);
$ret .= sprintf('- %s
',
$cfg['basepath'], $row['id'], $row['topic']);
@@ -376,14 +382,14 @@ function layout_showtag()
$sth = db_query($query);
$zlist['tag'] = htmlspecialchars($tagname);
- if (!$sth || pg_NumRows ($sth) == 0) {
+ if (!$sth || pg_num_rows ($sth) == 0) {
$ret .= warning('Keine Zeitungen oder Magazine mit diesem Merkmal gefunden.');
unset($zlist['newspaper']);
} else {
$headlines = array('MäÃige','MittelmäÃige','Gute','Häufige','Häufigste');
$oldtag = -1;
- for ($i=0; $i < pg_NumRows ($sth); $i++) {
+ for ($i=0; $i < pg_num_rows ($sth); $i++) {
$row = pg_fetch_array ($sth, $i);
$tag = tag_class($row['count']);