New bots Xmarks and spbot
[infodrom.org/www.zeitungsliste.de] / lib / info.inc
index 4c868a2..5cfcaf4 100644 (file)
@@ -27,12 +27,12 @@ function info_new()
 
   $sth = db_query($query);
 
-  if (pg_NumRows ($sth) == 0)
+  if (pg_num_rows ($sth) == 0)
     return;
 
   $ret = '<h3>Neu aufgenommen</h3>';
   $ret .= '<p><ul>';
-  for ($n=0; $n < pg_NumRows ($sth); $n++) {
+  for ($n=0; $n < pg_num_rows ($sth); $n++) {
     $row = pg_fetch_array ($sth, $n);
     $ret .= sprintf('<li><a href="%szeitung/%d.html">%s</a></li>',
                    $cfg['basepath'], $row['id'], $row['name']);
@@ -53,12 +53,12 @@ function info_topten()
 
   $sth = db_query($query) or carp("info_topten");
 
-  if (pg_NumRows ($sth) == 0)
+  if (pg_num_rows ($sth) == 0)
     return;
 
   $ret = '<h3>Top 10</h3>';
   $ret .= '<p><ul>';
-  for ($n=0; $n < pg_NumRows ($sth); $n++) {
+  for ($n=0; $n < pg_num_rows ($sth); $n++) {
     $row = pg_fetch_array ($sth, $n);
     $ret .= sprintf('<li><a href="%szeitung/%d.html">%s</a></li>',
                    $cfg['basepath'], $row['zeitung'], $row['name']);
@@ -83,12 +83,12 @@ function info_hitlist()
 
   $sth = db_query($query) or carp("info_topten");
 
-  if (pg_NumRows ($sth) == 0)
+  if (pg_num_rows ($sth) == 0)
     return info_topten();
 
   $ret = '<h3>Favoriten</h3>';
   $ret .= '<p><ul>';
-  for ($n=0; $n < pg_NumRows ($sth); $n++) {
+  for ($n=0; $n < pg_num_rows ($sth); $n++) {
     $row = pg_fetch_array ($sth, $n);
     $ret .= sprintf('<li><a href="%szeitung/%d.html">%s</a></li>',
                    $cfg['basepath'], $row['zeitung'], $row['name']);
@@ -114,12 +114,12 @@ function info_tags()
 
   $sth = db_query($query);
 
-  if (pg_NumRows ($sth) == 0)
+  if (pg_num_rows ($sth) == 0)
     return;
 
   $ret = '<h3>Tags</h3>';
   $ret .= '<p class="tagcloud">';
-  for ($n=0; $n < pg_NumRows ($sth); $n++) {
+  for ($n=0; $n < pg_num_rows ($sth); $n++) {
     $row = pg_fetch_array ($sth, $n);
 
     $ret .= sprintf('<span class="tag%d"><a href="%stag/%s.html">%s</a></span> ',
@@ -151,12 +151,12 @@ function info_tagcloud()
 
   $sth = db_query($query);
 
-  if (pg_NumRows ($sth) == 0)
+  if (pg_num_rows ($sth) == 0)
     return info_tags();
 
   $ret = '<h3>Persönliche Tags</h3>';
   $ret .= '<p class="tagcloud">';
-  for ($n=0; $n < pg_NumRows ($sth); $n++) {
+  for ($n=0; $n < pg_num_rows ($sth); $n++) {
     $row = pg_fetch_array ($sth, $n);
 
     $ret .= sprintf('<span class="tag0"><a href="%stag/%s.html">%s</a></span> ',