feat: forum post notifications into mailbox

This commit is contained in:
Martin Ambrus
2017-10-22 19:16:43 +02:00
parent 2fcaaa3ee8
commit a163206782
8 changed files with 57 additions and 17 deletions
+1
View File
@@ -11,6 +11,7 @@ foreach($topics as $arr) {
<input type="hidden" name="s" value="2">
<input type="hidden" name="pid" value="<?php echo $_GET['pid']; ?>">
<input type="hidden" name="tid" value="<?php echo $_GET['tid']; ?>">
<input type="hidden" name="fid2" value="<?php echo $_GET['fid2']; ?>">
<input type="hidden" name="newpost" value="1">
<input type="hidden" name="checkstr" value="c0d"><table cellpadding="1" cellspacing="1" id="new_post"><thead>
+2 -1
View File
@@ -136,6 +136,7 @@ if(isset($_POST['newtopic'])){
if(isset($_POST['newpost'])){
$text = $_POST['text'];
$tids = $_POST['tid'];
$fid2 = $_POST['fid2'];
$owner = $session->uid;
if($text != ""){
if(!preg_match('/\[message\]/',$text) && !preg_match('/\[\/message\]/',$text)){
@@ -194,7 +195,7 @@ if(isset($_POST['newpost'])){
}
}
$database->UpdatePostDate($tids);
$database->CreatPost($text,$tids,$owner,$alliance,$player,$coor,$report);
$database->CreatPost($text,$tids,$owner,$alliance,$player,$coor,$report,$fid2);
}
}
}