New spiders
[infodrom.org/www.zeitungsliste.de] / lib / login.inc
index b59c96d..3c96839 100644 (file)
@@ -19,7 +19,7 @@ function account_exists($login)
   if ($sth === false)
     return true;
 
-  return pg_NumRows ($sth) > 0;
+  return pg_num_rows ($sth) > 0;
 }
 
 function is_valid_passwd ($nickname, $passwd)
@@ -145,7 +145,7 @@ function account_activate($code)
   if ($sth === false)
     return 'Es ist ein Datenbankfehler aufgetreten.';
 
-  if (pg_NumRows($sth) != 1)
+  if (pg_num_rows($sth) != 1)
     return 'Der angegebene Aktivierungscode ist ungültig!';
 
   db_query('BEGIN TRANSACTION');
@@ -182,6 +182,7 @@ function send_activation($email, $user, $code)
 
   $url = sprintf('%sactivate.html?code=%s', $cfg['home'], urlencode($code));
   $subject = 'Aktivierung Account Zeitungsliste';
+  $header = array('Bcc: ' . $cfg['mailto']);
 
   $body = sprintf('Willkommen %s!
 
@@ -194,7 +195,7 @@ Ihren Browser ein:
 
 ', $user, $url);
 
-  sendmail($email, '', $subject, $body);
+  sendmail($email, '', $subject, $body, $header);
 
   return true;
 }
@@ -208,7 +209,7 @@ function process_activate()
     } else {
       $ret = information('Ihr Account ist aktiviert.');
       $ret .= '<h3>Willkommen!</h3><p class="info">'.
-       'Sie werden automatisch zur <a href="login.html">Login-Seite</a> weitergeleitet. '.
+       'Sie werden automatisch zur <a href="login.html"><span style="color: red;">Login-Seite</span></a> weitergeleitet. '.
        'Bitte melden Sie sich dort an.</p>';
       $zlist['redirect'] = 'login.html';
     }
@@ -325,7 +326,7 @@ function checkpass($nickname, $passwd)
   if ($sth === false)
     return false;
 
-  if (pg_NumRows($sth) == 0)
+  if (pg_num_rows($sth) == 0)
     return false;
 
   $row = pg_fetch_array($sth, 0);
@@ -354,7 +355,7 @@ function login_user($nickname, $passwd)
   if ($sth === false)
     return false;
 
-  if (pg_NumRows($sth) == 0)
+  if (pg_num_rows($sth) == 0)
     return false;
 
   $row = pg_fetch_array($sth, 0);
@@ -405,7 +406,7 @@ function login_sendnew($nickname)
   if ($sth === false)
     return 'Es ist ein Datenbankfehler aufgetreten.';
 
-  if (pg_NumRows($sth) == 0)
+  if (pg_num_rows($sth) == 0)
     return 'Der angegebene Username ist im System nicht bekannt.';
 
   $row = pg_fetch_array($sth, 0);
@@ -515,13 +516,13 @@ function last_activity()
 
   $sth = db_query($query);
 
-  if ($sth === false || pg_NumRows($sth) == 0)
+  if ($sth === false || pg_num_rows($sth) == 0)
     return false;
 
   $ret = '<h3>Sie haben an folgenden Diskussionen teilgenommen</h3>';
   $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>',