Announcement

Collapse
No announcement yet.

How do you stop geting E-Mail bombed?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • How do you stop geting E-Mail bombed?

    Is it possible to NOT get the error E-mails?? Would deleting this from db_mysql.php stop the E-mail bombs???

    PHP Code:
      function halt($msg) {
        
    $this->errdesc=mysql_error();
        
    $this->errno=mysql_errno();
        
    // prints warning message when there is an error
        
    global $technicalemail$bbuserinfo$scriptpath$HTTP_SERVER_VARS;

        if (
    $this->reporterror==1) {
          
    $message="Database error in " $this->appname $GLOBALS[templateversion]:\n\n$msg\n";
          
    $message.="mysql error: " $this->errdesc "\n\n";
          
    $message.="mysql error number: " $this->errno "\n\n";
          
    $message.="Date: ".date("l dS of F Y h:i:s A")."\n";
          
    $message.="Script: $GLOBALS[bburl]. (($scriptpath) ? $scriptpath $HTTP_SERVER_VARS['REQUEST_URI']) . "\n";
          
    $message.="Referer: ".$HTTP_SERVER_VARS['HTTP_REFERER']."\n";

          if (
    $technicalemail) {
            @
    mail ($technicalemail,$this->appshortname" Database error!",$message,"From: $technicalemail");
          }

          echo 
    "<html><head><title>$GLOBALS[bbtitle] Database Error</title><style>P,BODY{FONT-FAMILY:tahoma,arial,sans-serif;FONT-SIZE:11px;}</style><body>\n\n<!-- $message -->\n\n";

          echo 
    "</table></td></tr></table></form>\n<blockquote><p>&nbsp;</p><p><b>There seems to have been a slight problem with the $GLOBALS[bbtitle] database.</b><br>\n";
          echo 
    "Please try again by pressing the <a href=\"javascript:window.location=window.location;\">refresh</a> button in your browser.</p>";
          echo 
    "An E-Mail has been dispatched to our <a href=\"mailto:$technicalemail\">Technical Staff</a>, who you can also contact if the problem persists.</p>";
          echo 
    "<p>We apologise for any inconvenience.</p>";

          if (
    $bbuserinfo['usergroupid']==6) {
            echo 
    "<form><textarea rows=\"12\" cols=\"60\">".htmlspecialchars($message)."</textarea></form>";
          }

          echo 
    "</blockquote></body></head></html>";
          exit;
        }
      }

    Public Domain Content
    Amazon/Webmaster Services

  • #2
    Remove your email address from your admin/config.php file. Database error emails are sent to that address.

    Comment


    • #3
      Originally posted by Jakeman
      Remove your email address from your admin/config.php file. Database error emails are sent to that address.
      Would the E-mails still be created, and instead go to say [email protected] and then E-Mail bomb my server??!!!!
      Public Domain Content
      Amazon/Webmaster Services

      Comment


      • #4
        I honestly don't know. Maybe one of the other vB guys knows.

        Comment


        • #5
          if $technicalemail then the mail function isn't called.
          Scott MacVicar

          My Blog | Twitter

          Comment


          • #6
            Blarg! Got about 3,800 E-Mails in 30 minutes!! *Increasses mySQL connections allowed from I think 150, to 300.* Yes, having a real populer message board comes with a big price!!
            Public Domain Content
            Amazon/Webmaster Services

            Comment

            Loading...
            Working...
            X