New spider
[infodrom.org/www.zeitungsliste.de] / lib / layout.inc
index 407655f..da85a1d 100644 (file)
@@ -44,6 +44,9 @@ function pageheader()
     $ret .= '<meta name="Keywords" content="Zeitung, Zeitungen, Liste, Zeitungsliste, Online-Zeitungen, Zeitungen im Web, Forum, Community, '.
       'Liste aller Zeitungen">';
     $ret .= sprintf('<link rel="alternate" type="application/rss+xml" title="Zeitungen" href="%szeitungen.rdf">', $cfg['basepath']);
+  } elseif ($cfg['dir'] == 'zeitung') {
+    $ret .= '<meta name="Keywords" content="Zeitung, Zeitungsliste, Online-Zeitung, Zeitung im Web, Forum, Community, '.
+      $zlist['newspaper'] . ', ' . $zlist['city'] . '">';
   }
 
   if (is_spider())
@@ -72,6 +75,8 @@ function pageheader()
   $ret .= '<div class="homestatus"><a href="'.$cfg['home'].'">Home</a>';
   if ($cfg['path'] != 'contact.html')
     $ret .= sprintf('&nbsp;&nbsp;&nbsp;<a href="%scontact.html">Kontakt</a>', $cfg['basepath']);
+  if (is_admin() && $cfg['path'] != 'admin.html')
+    $ret .= sprintf('&nbsp;&nbsp;&nbsp;<a href="%sadmin/index.html">Admin</a>', $cfg['basepath']);
   if (is_spider())
     $ret .= sprintf('&nbsp;&nbsp;&nbsp;<a href="%ssitemap.html">Sitemap</a>', $cfg['basepath']);
   $ret .= '</div>';
@@ -237,11 +242,11 @@ function layout_sitemap()
 
   $sth = db_query($query);
 
-  if ($sth !== false && pg_NumRows($sth) > 0) {
+  if ($sth !== false && pg_num_rows($sth) > 0) {
     $ret .= '<h3>User-Tags (Merkmale)</h3>';
     $ret .= '<ul class="gold">';
 
-    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('<li><a href="%stag/%s.html">%s</a></li>',
@@ -256,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 .= '<h3>Zeitungen und Magazine</h3>';
     $ret .= '<ul class="gold">';
-    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('<li><a href="%szeitung/%d.html">%s</a>, %s</li>',
@@ -272,10 +277,10 @@ function layout_sitemap()
 
   $sth = db_query($query);
 
-  if ($sth !== false && pg_NumRows($sth) > 0) {
+  if ($sth !== false && pg_num_rows($sth) > 0) {
     $ret .= '<h3>Diskussionen</h3>';
     $ret .= '<ul class="gold">';
-    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('<li><a href="%stopic/%d.html">%s</a></li>',
@@ -338,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 .= '<p><ul class="gold">';
-       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('<li><a href="%stopic/%d.html">%s</a></li>',
                          $cfg['basepath'], $row['id'], $row['topic']);
@@ -377,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']);