mirror of
https://github.com/Shadowss/TravianZ.git
synced 2026-08-16 08:11:00 +00:00
feat: forum post notifications into mailbox
This commit is contained in:
@@ -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>
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user