Platon Technologies
not logged in Login Registration
EnglishSlovak
open source software development celebrating 10 years of open source development! Thursday, March 28, 2024

File: [Platon] / mylist / backend / receiver / response.php (download)

Revision 1.6, Sat May 7 14:09:01 2005 UTC (18 years, 10 months ago) by majo


Changes since 1.5: +1 -1 lines

*** empty log message ***

<?php


class CResponse {

    var $type;
    var $body;

    function setType($params)
    {    
        $this->type = $_type;
        $this->body  = "The message with subject '".$params['subject']."' you have sent to mailinglist '".$params['list_name']."'  has been rejected.\n\n";
        
        if ($params['type'] == "MSG_FILESIZE")
        {
            $this->body .= "Maximum message size exceeded.\n";
            $this->body .= "Maximal allowed size: ".$params['max_size'];
            $this->body .= "\nSize of your message: ".$params['msg_size']."\n\n";
        } else if ($params['type'] == "SENDER_DENY")
        {
            $this->body .= "You don't have permission to post messages. You're on sender's deny list.";
        } else if ($params['type'] == "SENDER_NOT_ALLOWED")
        {
            $this->body .= "You don't have permission to post messages. Only privileged users may post messages to this list.";
        } else if ($params['type'] == "SENDER_NOT_MEMBER")
        {
            $this->body .= "You don't have permission to post messages. Only members of this list may post messages.";
        }
                
    }

    function send($to)
    {
        global $admin_email;
        $from = "From: ".$admin_email;
        @mail($to, "Message rejected", $this->body, $from);
    }

}

?>

Platon Group <platon@platon.org> http://platon.org/
Copyright © 2002-2006 Platon Group
Site powered by Metafox CMS
Go to Top