- 01
- 02
- 03
- 04
- 05
- 06
- 07
- 08
- 09
- 10
- 11
- 12
- 13
- 14
- 15
- 16
- 17
- 18
- 19
- 20
class PliggMailer{
var $subject = '';
var $body = '';
var $from = '';
var $to = '';
function PliggMailer($subj = '', $body = '', $from = '', $to = '', $cc = '', $bcc = ''){
if($subj != ''){$this->subject = $subj;}
if($body != ''){$this->body = $body;}
if($from != ''){$this->from = $from;}
if(!is_array($to)){$to[] = $to;}
if(count($to) == 0){$this->to = $to;}
if(!is_array($to)){$to[] = $to;}
if(count($to) == 0){$this->to = $to;}
if(!is_array($to)){$to[] = $to;}
if(count($to) == 0){$this->to = $to;}
}
guest 11.03.2009 14:55 # 0
Наверняка хотели сделать такую же байду, как с $to для $cc и $bcc, и просовокупили.
зато!