AND gbo_org_id = ' . $gCurrentOrganization->getValue('org_id') . '
                    AND gbo_ip_address = \'' . $guestbook->getValue('gbo_ip_adress') . '\'';
         $statement = $gDb->query($sql);
         $row = $statement->fetch();
         if ($row[0] > 0) {
             // Wenn dies der Fall ist, gibt es natuerlich keinen Gaestebucheintrag...
             $gMessage->show($gL10n->get('GBO_FLOODING_PROTECTION', $gPreferences['flooding_protection_time']));
         }
     }
 }
 // Bei Moderation wird die Nachricht zunächst nicht veröffentlicht
 if ($gPreferences['enable_guestbook_moderation'] == 1 && !$gValidLogin || $gPreferences['enable_guestbook_moderation'] == 2 && !$gCurrentUser->editGuestbookRight()) {
     $guestbook->setValue('gbo_locked', '1');
 }
 // Daten in Datenbank schreiben
 $return_code = $guestbook->save();
 if ($return_code < 0) {
     $gMessage->show($gL10n->get('SYS_NO_RIGHTS'));
 }
 if ($return_code == 0) {
     // Benachrichtigungs-Email für neue Einträge
     if (!$gValidLogin) {
         $gbo_name = $_POST['gbo_name'];
         $gbo_email = $_POST['gbo_email'];
         $gbo_text = $_POST['gbo_text'];
     } else {
         $gbo_name = $gCurrentUser->getValue('FIRST_NAME') . ' ' . $gCurrentUser->getValue('LAST_NAME');
         $gbo_email = $gCurrentUser->getValue('EMAIL');
         $gbo_text = $_POST['gbo_text'];
     }
     $sender_name = $gbo_name;