AdminReport.php
changeset 2 e4a8a8e1a50d
parent 1 13ac3d9d47b2
equal deleted inserted replaced
1:13ac3d9d47b2 2:e4a8a8e1a50d
    69 		
    69 		
    70 		if ( empty($errors) )
    70 		if ( empty($errors) )
    71 		{
    71 		{
    72 			$email = getConfig('contact_email');
    72 			$email = getConfig('contact_email');
    73 			
    73 			
    74 			if ( !is_array($result = arp_send_mail($email, "[{$_SERVER['HTTP_HOST']}] Website bug report", "Sent from IP: {$_SERVER['REMOTE_ADDR']}\n\n---------------------------\n$comment")) )
    74 			list($pid, $ns) = RenderMan::strToPageID($page);
       
    75 			$pageurl = makeUrlComplete($ns, $pid);
       
    76 			if ( !is_array($result = arp_send_mail($email, "[{$_SERVER['HTTP_HOST']}] Website bug report", "Sent from IP: {$_SERVER['REMOTE_ADDR']}\nPage: $pageurl\n\n---------------------------\n$comment")) )
    75 			{
    77 			{
    76 				redirect(makeUrl($page), 'Report sent', 'Thank you, your report has been sent. Redirecting you back to the page...', 5);
    78 				redirect(makeUrl($page), 'Report sent', 'Thank you, your report has been sent. Redirecting you back to the page...', 5);
    77 			}
    79 			}
    78 			else
    80 			else
    79 			{
    81 			{