..or more modules you must have seen the iframes used for realtime result display. In this tutorial I'm going to show you how to insert them into your module and how they..
<?php
/*
Sends an mail with a notification message.
PARAMETERS:
$sEmail: email to send the notification to
$aData: scan result in array format
- $aData['date']: timestamp
- $aData['keyword']: keyword to search for
- $aData['result']: result of scan
RETURNS:
VOID: just sends an email
*/
function TemplateEmail($sEmail,$aData){
$_ESUB = "Scan results for THC_SS session";
$_EBODY = "On ".date($_CONTEXT['time_pattern'].' H:i:s',$aData['date'])." a scan for ".$aData['keyword']." has returned the following results:\n";
$_EBODY .= $aData['result'];
mail($sEmail,$_ESUB,$_EBODY);
return(true);
}
?>