|
10 | 10 | if(!empty($offenderReply)) |
11 | 11 | $container['PreviewOffender'] = $offenderReply; |
12 | 12 | $container['OffenderBanPoints'] = $_REQUEST['offenderBanPoints']; |
13 | | - |
| 13 | + |
14 | 14 | if(!empty($offendedReply)) |
15 | 15 | $container['PreviewOffended'] = $offendedReply; |
16 | 16 | $container['OffendedBanPoints'] = $_REQUEST['offendedBanPoints']; |
|
20 | 20 |
|
21 | 21 | if (isset($offenderReply) && $offenderReply != '') { |
22 | 22 | SmrPlayer::sendMessageFromAdmin($var['game_id'], $var['offender'], $offenderReply); |
23 | | - |
| 23 | + |
24 | 24 | //do we have points? |
25 | 25 | if ($_REQUEST['offenderBanPoints']) { |
26 | | - $reasonID = 7; |
27 | 26 | $suspicion = 'Inappropriate In-Game Message'; |
28 | 27 | $offenderAccount =& SmrAccount::getAccount($var['offender']); |
29 | | - $offenderAccount->addPoints($_REQUEST['offenderBanPoints'],$account,$reasonID,$suspicion); |
| 28 | + $offenderAccount->addPoints($_REQUEST['offenderBanPoints'],$account,7,$suspicion); |
30 | 29 | } |
31 | 30 | } |
32 | 31 | if (isset($_REQUEST['offendedReply'])) $offendedReply = $_REQUEST['offendedReply']; |
|
37 | 36 |
|
38 | 37 | //do we have points? |
39 | 38 | if ($_REQUEST['offendedBanPoints']) { |
40 | | - $reasonID = 7; |
41 | 39 | $suspicion = 'Inappropriate In-Game Message'; |
42 | 40 | $offenderAccount =& SmrAccount::getAccount($var['offended']); |
43 | | - $offenderAccount->addPoints($_REQUEST['offendedBanPoints'],$account,$reasonID,$suspicion); |
| 41 | + $offenderAccount->addPoints($_REQUEST['offendedBanPoints'],$account,7,$suspicion); |
44 | 42 | } |
45 | 43 | } |
46 | 44 | forward(create_container('skeleton.php', 'notify_view.php')); |
|
0 commit comments