Login
Username: Password:
Remember me

[Sign Up] / [Recover Password]

Theme / Language

Popular
New Torrents
new name
Size: 18.40 MB
Most active
new name
S: 74 L: 3
New Posters
[ADDON] E-Mail Parser In Admincp
Controls ·  Search New posts · Mark unread

You are in: Forum / Forum / v2.08 / v2 Only Mods Complete

Unknown User
2009-01-14 14:19:08
this will parse a file or text that you enter in the text box and extract the e-mail adresses. also you can enter a url to a file and it will parse it. credit goes to this site [url="http://www.zubrag.com/scripts/"]http://www.zubrag.com/scripts/[/url]

in admincp.php find:

<td align="center"><a href=admincp.php?action=ipbans><img src="images/admin/blocked.gif" border=0 width=32 height=32><BR>Banned IPs</a><BR></td>
add after:




<td align="center"><a href=admincp.php?action=emailparser><img src="images/admin/mail.gif" border=0 width=32 height=32><BR>E-Mail Parser</a><BR></td>





next add to the end before the ?> :





#======================================================================#

# E-Mail Parser

#======================================================================#

if ($action=="emailparser"){

###############################################################

# Email Extractor 1.0

###############################################################

# Visit http://www.zubrag.com/scripts/ for updates

###############################################################

$the_url = isset($_REQUEST['url']) ? htmlspecialchars($_REQUEST['url']) : '';

stdhead("E-Mail Parser");

navmenu();

begin_frame("E-Mail Parser");

?>



<form method="post">

 Please enter full URL of the page to parse (including http://):<br />

 <input type="text" name="url" size="65" value="<?php echo $the_url;  ?>"/><br />

 or enter text directly into textarea below:<br />

 <textarea name="text" cols="50" rows="15"></textarea>

 <br />

 <input type="submit" value="Parse Emails" />

</form>



<?php

if (isset($_REQUEST['url']) && !empty($_REQUEST['url'])) {

 // fetch data from specified url

 $text = file_get_contents($_REQUEST['url']);

}

elseif (isset($_REQUEST['text']) && !empty($_REQUEST['text'])) {

 // get text from text area

 $text = $_REQUEST['text'];

}



// parse emails

if (!empty($text)) {

 $res = preg_match_all(

"/[a-z0-9]+([_\\.-][a-z0-9]+)*@([a-z0-9]+([\.-][a-z0-9]+)*)+\\.[a-z]{2,}/i",

$text,

$matches

 );



 if ($res) {

foreach(array_unique($matches[0]) as $email) {

 echo $email . "<br />";

}

 }

 else {

echo "No emails found.";

 }

}

end_frame();

stdfoot();

}

#======================================================================

# END E-Mail Parser

#======================================================================#



if you do not have the pic it is below. name it mail.gif and upload it to your /images/admin/   folder

mail.gif
mail.gif
Unknown User
2009-01-14 14:39:03
Wow, good, everyone is doing the best for torrenttrader.

tnx walker!
Unknown User
2009-01-14 21:20:26
looks ok but pointless when mass-mail works fine i think. messing about getting ALL users from the DB lol. il stick with the mass-mail. nice work tho walker
Users online

No users online

Search



Statistics

    Torrents

  • Tracking: 3
  • Todays torrents: 0
  • Seeders: 0
  • Leechers: 0
  • Peers: 0
  • Downloaded: 89.96 GB
  • Uploaded: 9.86 GB

  • Members

  • We have: 838
  • New today: 0
  • Guest today: 9

  • Online

  • Total online: 1
  • Members: 0
  • Guests online: 1
  • Comments: 3
  • Messages: 1,728