
email you reports
By:
jmyeom on Jan 12th, 2012 | syntax:
None | size: 1.19 KB | hits: 95 | expires: Never
UPDATED: 15/02/2012
fist, in your config, add this anywhere (i would say to make it look decent, add it under "Imageboard info")
$cf['KU_EMAIL'] = "email@axample.com"; // Enter the email you wish for reports to be emailed to, leave blank if you do not wish to be emailed
in: inc/classes/board-post.class.php
find: function Report() { (its right at the bottom of the page :P)
before: return $tc_db->Execute(blahblahblahblahbnlah
(note, put it before this line, you must put it before this line or it will not work!!!!!!!!!!!!!!!!!!!!!!}
put this:
if(KU_EMAIL != ""){
$reportmsg = '
<html>
<head>
<title>Post reported at '.KU_WEBPATH.'</title>
</head>
<body>
<table>
<tr>
<th>Board</th><th>Postid</th><th>When</th><th>Reason</th>
</tr>
<tr>
<th>'.$tc_db->qstr($this->board['name']).'</th><th>'.$tc_db->qstr($this->post['id']).'</th><th>'.time().'</th><th>'.$tc_db->qstr($_POST['reportreason']).'</th>
</tr>
</table>
</body>
</html>
';
$headers .= "Content-type: text/html\r\n";
mail(KU_EMAIL, 'Post reported at '.KU_WEBPATH, $reportmsg, $headers);
}