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:
if you do not have the pic it is below. name it mail.gif and upload it to your /images/admin/ folder
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