<?php
$settings = array(
'site_username' => 'fsbiggsa',
'domain' => 'biggsandwren.com.au',
'to' => 'qads@mediatwo.com.au'
);
//do not edit below
$cmd = 'find /home/'.$settings['site_username'].'/public_html -type f -iname "*.php" -mmin -60';
exec($cmd, $list);
if(sizeof($list) > 0)
{
$msg = "Files modified or added in the last hour on ".$settings['domain'].":\n\n";
$msg .= implode($list, "\n");
emailWithPhpMailer($settings['to'], 'Security Alert - '.$settings['domain'], $msg, 'noreply@'.$settings['domain'], false);
}
?>