Forside  |  Bo med naturen  |  Familieliv  |  Suveræn fritid  |  Lokal kendt  |  Lokal indflydelse  |  Erhverv Kalender   Kontakt   Facebook  

Kalender

  1. <?php  
  2. /** 
  3.  * Leaf PHP Mailer by [leafmailer.pw] 
  4.  * @version : 2.8 
  5. **/  
  6.   
  7. $password = "leaf"// Password   
  8.   
  9.   
  10.   
  11. session_start();  
  12. error_reporting(0);  
  13. set_time_limit(0);  
  14. ini_set("memory_limit",-1);  
  15.   
  16. $leaf['version']="2.8";  
  17. $leaf['website']="leafmailer.pw";  
  18.   
  19.   
  20. $sessioncode = md5(__FILE__);  
  21. if(!emptyempty($passwordand $_SESSION[$sessioncode] != $password){  
  22.     if (isset($_REQUEST['pass']) and $_REQUEST['pass'] == $password) {  
  23.         $_SESSION[$sessioncode] = $password;  
  24.     }  
  25.     else {  
  26.         print "<pre align=center><form method=post>Password: <input type='password' name='pass'><input type='submit' value='>>'></form></pre>";  
  27.         exit;          
  28.     }  
  29. }  
  30.   
  31. session_write_close();  
  32.   
  33.   
  34. function leafClear($text,$email){  
  35.     $e = explode('@'$email);  
  36.     $emailuser=$e[0];  
  37.     $emaildomain=$e[1];  
  38.     $text = str_replace("[-time-]"date("m/d/Y h:i:s a", time()), $text);  
  39.     $text = str_replace("[-email-]"$email$text);  
  40.     $text = str_replace("[-emailuser-]"$emailuser$text);  
  41.     $text = str_replace("[-emaildomain-]"$emaildomain$text);  
  42.     $text = str_replace("[-randomletters-]", randString('abcdefghijklmnopqrstuvwxyz'), $text);  
  43.     $text = str_replace("[-randomstring-]", randString('abcdefghijklmnopqrstuvwxyz0123456789'), $text);  
  44.     $text = str_replace("[-randomnumber-]", randString('0123456789'), $text);  
  45.     $text = str_replace("[-randommd5-]", md5(randString('abcdefghijklmnopqrstuvwxyz0123456789')), $text);  
  46.     return $text;    
  47. }  
  48. function leafTrim($string){  
  49.     $string=urldecode($string);  
  50.     return stripslashes(trim($string));  
  51. }  
  52. function randString($consonants) {  
  53.     $length=rand(12,25);  
  54.     $password = '';  
  55.     for ($i = 0; $i < $length$i++) {  
  56.             $password .= $consonants[(rand() % strlen($consonants))];  
  57.     }  
  58.     return $password;  
  59. }  
  60. function leafMailCheck($email){  
  61.     if (filter_var($email, FILTER_VALIDATE_EMAIL)) return true;  
  62.     else return false;  
  63. }  
  64. # Bulit-in BlackList Checker   
  65. if(isset($_GET['check_ip'])){  
  66.     if (isset($_GET['host'])){  
  67.         $_GET['host']=explode(","$_GET['host']);  
  68.         foreach ($_GET['host'as $host) {  
  69.             if (checkdnsrr($_GET['check_ip'] . "." .  $host . ".""A")) $check"<font color='red'> Listed</font>";  
  70.             else $check"<font color='green'> Clean</font>";  
  71.             print 'document.getElementById("'$host.'").innerHTML = "'.$check.'";';  
  72.         }  
  73.   
  74.         exit;  
  75.     }  
  76.     $dnsbl_lookup = [  
  77.         "all.s5h.net",  
  78.         "b.barracudacentral.org",  
  79.         "bl.spamcop.net",  
  80.         "blacklist.woody.ch",  
  81.         "bogons.cymru.com",  
  82.         "cbl.abuseat.org",  
  83.         "cdl.anti-spam.org.cn",  
  84.         "combined.abuse.ch",  
  85.         "db.wpbl.info",  
  86.         "dnsbl-1.uceprotect.net",  
  87.         "dnsbl-2.uceprotect.net",  
  88.         "dnsbl-3.uceprotect.net",  
  89.         "dnsbl.anticaptcha.net",  
  90.         "dnsbl.dronebl.org",  
  91.         "dnsbl.inps.de",  
  92.         "dnsbl.sorbs.net",  
  93.         "drone.abuse.ch",  
  94.         "duinv.aupads.org",  
  95.         "dul.dnsbl.sorbs.net",  
  96.         "dyna.spamrats.com",  
  97.         "dynip.rothen.com",  
  98.         "http.dnsbl.sorbs.net",  
  99.         "ips.backscatterer.org",  
  100.         "ix.dnsbl.manitu.net",  
  101.         "korea.services.net",  
  102.         "misc.dnsbl.sorbs.net",  
  103.         "noptr.spamrats.com",  
  104.         "orvedb.aupads.org",  
  105.         "pbl.spamhaus.org",  
  106.         "proxy.bl.gweep.ca",  
  107.         "psbl.surriel.com",  
  108.         "relays.bl.gweep.ca",  
  109.         "relays.nether.net",  
  110.         "sbl.spamhaus.org",  
  111.         "short.rbl.jp",  
  112.         "singular.ttk.pte.hu",  
  113.         "smtp.dnsbl.sorbs.net",  
  114.         "socks.dnsbl.sorbs.net",  
  115.         "spam.abuse.ch",  
  116.         "spam.dnsbl.anonmails.de",  
  117.         "spam.dnsbl.sorbs.net",  
  118.         "spam.spamrats.com",  
  119.         "spambot.bls.digibase.ca",  
  120.         "spamrbl.imp.ch",  
  121.         "spamsources.fabel.dk",  
  122.         "ubl.lashback.com",  
  123.         "ubl.unsubscore.com",  
  124.         "virus.rbl.jp",  
  125.         "web.dnsbl.sorbs.net",  
  126.         "wormrbl.imp.ch",  
  127.         "xbl.spamhaus.org",  
  128.         "z.mailspike.net",  
  129.         "zen.spamhaus.org",  
  130.         "zombie.dnsbl.sorbs.net",  
  131.     ];  
  132.     $reverse_ip = implode("."array_reverse(explode("."$_GET['check_ip'])));  
  133.     $dnsT = count($dnsbl_lookup);  
  134.     leafheader();  
  135.     print '<div class="container col-lg-6"><h3><font color="green"><span class="glyphicon glyphicon-leaf"></span></font> Leaf PHPMailer <small>Blacklist Checker</small></h3>';  
  136.     Print "Checking <b>".$_GET['check_ip']."</b> in <b>$dnsT</b>  anti-spam databases:<br>";  
  137.     $dnsN="";  
  138.     print '<table >';  
  139.     for ($i=0; $i < $dnsT$i=$i+10) {   
  140.         $host="";  
  141.         $hosts="";  
  142.         for($j=$i$j<$i+10;$j++){  
  143.             $host=$dnsbl_lookup[$j];  
  144.             if(!emptyempty($host)){  
  145.                 print "<tr> <td>$host</td> <td id='$host'>Checking ..</td></tr>";  
  146.                 $hosts .="$host,";  
  147.             }  
  148.         }  
  149.         $dnsN.="<script src='?check_ip=$reverse_ip&host=".$hosts."' type='text/javascript'></script>";  
  150.     }  
  151.   
  152.     print '</table></div>';  
  153.     print $dnsN;  
  154.     exit;  
  155. }  
  156. if(isset($_GET['emailfilter'])){  
  157.   
  158.     if(!emptyempty($_FILES['fileToUpload']['tmp_name'])){  
  159.         $_POST['emailList']= file_get_contents($_FILES["fileToUpload"]["tmp_name"]);   
  160.     }  
  161.     $_POST['emailList']=strtolower($_POST['emailList']);  
  162.    if($_GET['emailfilter']=="ifram"){  
  163.         if ($_POST['resulttype'] == "download"){  
  164.             header("Content-Description: File Transfer");   
  165.             header("Content-Type: application/octet-stream");   
  166.             header("Content-Disposition: attachment; filename=emails".time().".txt");  
  167.         }  
  168.         else {  
  169.             header("Content-Type: text/plain");  
  170.         }  
  171.     if($_POST['submit']=="extract"){  
  172.         $pattern = '/[A-Za-z0-9._%+-]+@[A-Za-z0-9.-]+.[A-Za-z]{2,4}/';  
  173.         preg_match_all($pattern$_POST['emailList'], $matches);  
  174.         foreach ($matches[0] as $email) {  
  175.             print $email." ";  
  176.         }  
  177.     }  
  178.     elseif ($_POST['submit']=="filter") {  
  179.         $emails=explode(" "$_POST['emailList']);  
  180.         $keywords=explode(" "strtolower($_POST['keywords']));  
  181.         foreach ($emails as $email) {  
  182.             foreach ($keywords as $keyword ) {  
  183.                 if(strstr($email$keyword) ){  
  184.                     print $email." ";  
  185.                      break;  
  186.                 }  
  187.                  
  188.             }  
  189.         }  
  190.   
  191.     }  
  192.     exit;  
  193.    }  
  194.    leafheader();  
  195.    print '<div class="container col-lg-4"><h3><font color="green"><span class="glyphicon glyphicon-leaf"></span></font> Leaf PHPMailer <small>Email Filter</small></h3>';  
  196.    print '  
  197.     <form action="?emailfilter=ifram" method="POST" target="my-iframe" enctype="multipart/form-data" onsubmit=''>  
  198.         <label for="emailList">Text </label><input type="file" name="fileToUpload" id="fileToUpload">   
  199.         or  
  200.   
  201.         <textarea name="emailList" id="emailList" class="form-control" rows="7" id="textArea"></textarea>  
  202.       <div class="col-lg-12">  
  203.         <div class="radio">  
  204.           <label>  
  205.             <input type="radio" name="resulttype" id="resulttype" value="here" checked="">  
  206.             Show Result in this page  
  207.           </label>  
  208.         </div>  
  209.         <div class="radio">  
  210.           <label>  
  211.             <input type="radio" name="resulttype" id="resulttype" value="download">  
  212.             Download Result (for big numbers)  
  213.           </label>  
  214.         </div>  
  215.       </div>  
  216.             <legend><h4>Extract Email</h4></legend>  
  217.             Detecting every email (100%) and order them line by line <br><br>  
  218.         <button type="submit" name="submit" value="extract" class="btn btn-default btn-sm">Start</button>  
  219.             <legend><h4>Filter Emails</h4></legend>  
  220.         <label >Keywords <small> ex: gmail.com or .co.uk</small> </label><textarea name="keywords" id="keywords" class="form-control" rows="4" id="textArea">gmail.com  
  221. hotmail.com  
  222. yahoo.com  
  223. .co.uk</textarea><br>  
  224.   
  225.             <button type="submit" name="submit" value="filter" class="btn btn-default btn-sm">Start</button>  
  226.     </form>  
  227.     <label >Result </label>  
  228.     <iframe style="border:none;width:100%;" name="my-iframe"  src="?emailfilter=ifram" ></iframe>  
  229.    ';  
  230.    exit;  
  231.   
  232. }  
  233. $html="checked";  
  234. $utf8="selected";  
  235. $bit8="selected";  
  236.   
  237. if($_POST['action']=="send" or $_POST['action']=="score"){  
 

 
Støtteforeningen til Skovløkken
Gersøvej 12 | 5450 Otterup | E-mail: kontakt@skovloekken.dk