New crawler
[infodrom.org/www.zeitungsliste.de] / lib / functions.inc
index 5b6c020..6f6badc 100644 (file)
@@ -36,6 +36,8 @@ $dirs = array('zeitung' => array('func' => 'layout_showpaper'),
              'archiv' => array('func' => 'layout_archive'),
              'tag' => array('func' => 'layout_showtag'),
              'topic' => array('func' => 'layout_topic'),
+             'admin' => array('lib' => 'admin.inc',
+                              'func' => 'layout_admin'),
              );
 
 
@@ -245,8 +247,9 @@ function format_newspaper($id)
   $row = pg_fetch_array ($sth, 0);
 
   $ret = '<div class="newspaper">';
-  $ret .= sprintf('<h3>%s</h3>', htmlspecialchars($row['name']));
-  $zlist['newspaper'] = htmlspecialchars($row['name']);
+  $ret .= sprintf('<h3>%s</h3>', $row['name']);
+  $zlist['newspaper'] = $row['name'];
+  $zlist['city'] = $row['city'];
 
   $ret .= sprintf('<p>%s<br>Ort: %s<br>URL: <a href="%s"><code>%s</code></a></p>',
                  $row['description'], $row['city'],