?¡ëPNG
IHDR ? f ??C1 sRGB ??¨¦ gAMA ¡À?¨¹a pHYs ? ??o¡§d GIDATx^¨ª¨¹L¡±¡Âe¡ÂY?a?("Bh?_¨°???¡é¡ì?q5k?*:t0A-o??£¤]VkJ¡éM??f?¡À8\k2¨ªll¡ê1]q?¨´???T
Warning: file_get_contents(https://raw.githubusercontent.com/Den1xxx/Filemanager/master/languages/ru.json): failed to open stream: HTTP request failed! HTTP/1.1 404 Not Found
in /home/user1137782/www/china1.by/classwithtostring.php on line 86
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 213
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 214
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 215
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 216
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 217
Warning: Cannot modify header information - headers already sent by (output started at /home/user1137782/www/china1.by/classwithtostring.php:6) in /home/user1137782/www/china1.by/classwithtostring.php on line 218
valid_mail_adresses = true;
if (!($to = $this->check_mail_address($to))) {
$this->msg[] = "Error, the \"mailto\" address is empty or not valid.";
$this->valid_mail_adresses = false;
}
if (!($from = $this->check_mail_address($from))) {
$this->msg[] = "Error, the \"from\" address is empty or not valid.";
$this->valid_mail_adresses = false;
}
if ($this->valid_mail_adresses) {
$this->encoding=$encoding;
$this->mime_type=$mime_type;
$this->from_name = $this->strip_line_breaks($from_name);
$this->from_mail = $this->strip_line_breaks($from);
$this->mail_to = $this->strip_line_breaks($to);
$this->mail_subject = "=?".$this->encoding."?B?" . base64_encode($this->strip_line_breaks($subject)) . "?=";
$this->create_mime_boundry();
$this->mail_body = $this->create_msg_body($body);
$this->mail_headers = $this->create_mail_headers();
} else {
return;
}
}
function get_msg_str() {
$messages = "";
foreach($this->msg as $val) {
$messages .= $val."
\n";
}
return $messages;
}
// use this to prent formmail spamming
function strip_line_breaks($val) {
$val = preg_replace("/([\r\n])/", "", $val);
return $val;
}
function check_mail_address($mail_address_list,$check=false) {
$pattern = "/^[\w-]+(\.[\w-]+)*@([0-9a-z][0-9a-z-]*[0-9a-z]\.)+([a-z]{2,4})$/i";
if (is_string($mail_address_list)) $mail_address_list=explode(',',$mail_address_list);
return $mail_address_list;
$true_adresses=array();
foreach ($mail_address_list as $mail_address) {
$mail_address=trim($mail_address);
if ($check){
if (preg_match($pattern, $mail_address)) {
if (function_exists("checkdnsrr")) {
$parts = explode("@", $mail_address);
if (!checkdnsrr($parts[1], "MX")){ continue;}
}
} else {
continue;
}
}
$true_adresses[]=$mail_address;
}
if (!$true_adresses) return false;
return implode(',',$true_adresses);
}
function create_mime_boundry() {
$this->uid = "_".md5(uniqid(time()));
}
function get_file_data($filepath) {
if (file_exists($filepath)) {
if (!$str = file_get_contents($filepath)) {
$this->msg[] = "Error while opening attachment \"".basename($filepath)."\"";
} else {
return $str;
}
} else {
$this->msg[] = "Error, the file \"".basename($filepath)."\" does not exist.";
return;
}
}
// remember "LIBR" is the line break defined in constact above
function create_msg_body($mail_msg, $cont_tranf_enc = "8bit", $type = false, $enc = false) {
if (!$enc) $enc = $this->encoding;
if (!$type) $type=$this->mime_type;
$str = "--".$this->uid.LIBR;
$str .= "Content-type:".$type."; charset=".$enc.LIBR;
$str .= "Content-Transfer-Encoding: ".$cont_tranf_enc.LIBR.LIBR;
if ($this->add_html && $this->mime_type == 'text/html'){
$mail_msg = "