PageRenderTime 36ms CodeModel.GetById 9ms RepoModel.GetById 0ms app.codeStats 0ms

/html/pages/report/bbcode.php

https://github.com/graywh/utstats
PHP | 420 lines | 308 code | 76 blank | 36 comment | 34 complexity | ccb7719a1e719f0b07cd6dbadab1241f MD5 | raw file
  1. <?php
  2. echo'<textarea rows="50" name="cbrep" cols="75">';
  3. $id = $_GET[id];
  4. $sql_s = small_query("SELECT mapfile, gametime FROM uts_match WHERE id = '$id'");
  5. $map = str_replace(".unr", "", "$sql_s[mapfile]");
  6. $mappic = strtolower("images/maps/".$map.".jpg");
  7. $actgamelength = $sql_s[gametime];
  8. // Lets work out what kind of game this was from the scores
  9. $q_score = small_query("SELECT t0score, t1score FROM uts_match WHERE id = $id");
  10. $t0score = $q_score[t0score];
  11. $t1score = $q_score[t1score];
  12. $teama = "Red Team";
  13. $teamb = "Blue Team";
  14. IF ($t0score > $t1score) {
  15. $twin = 0;
  16. $twin_team = $teama;
  17. $twin_score = $t0score;
  18. $tlose = 1;
  19. $tlose_team = $teamb;
  20. $tdraw = "0";
  21. $tdiff = $t0score+$t1score;
  22. IF ($tdiff <= 3) {
  23. $reptype = "low";
  24. } elseIF ($tdiff >= 9) {
  25. $reptype = "high";
  26. } else {
  27. $reptype = "medium";
  28. }
  29. } elseIF ($t0score < $t1score) {
  30. $twin = 1;
  31. $twin_team = $teamb;
  32. $twin_score = $t1score;
  33. $tlose = 0;
  34. $tlose_team = $teama;
  35. $tdraw = "0";
  36. $tdiff = $t1score+$t0score;
  37. IF ($tdiff <= 2) {
  38. $reptype = "low";
  39. } elseIF ($tdiff >= 9) {
  40. $reptype = "high";
  41. } else {
  42. $reptype = "medium";
  43. }
  44. } else {
  45. $twin = "0";
  46. $tlose = "1";
  47. $tdraw = "1";
  48. $tdiff = $t1score+$t0score;
  49. $twin_team = $teama;;
  50. $tlose_team = $teamb;
  51. IF ($tdiff <= 4) {
  52. $reptype = "low";
  53. } elseIF ($tdiff >= 10) {
  54. $reptype = "high";
  55. } else {
  56. $reptype = "medium";
  57. }
  58. }
  59. // Queries used within the report
  60. // First blood
  61. $q_fblood = small_query("SELECT firstblood FROM uts_match WHERE id = $id");
  62. // Player id of first blood
  63. $t_fblood = small_query("SELECT name FROM uts_pinfo WHERE id = '".$q_fblood[firstblood]."'");
  64. $t_fbloodid = small_query("SELECT id FROM uts_player WHERE pid = '".$q_fblood[firstblood]."' AND matchid = $id");
  65. $r_fbloodid = $t_fbloodid[id];
  66. $r_fbloodname = $t_fblood[name];
  67. // Belt count
  68. $q_t0bcount = small_query("SELECT SUM(pu_belt) AS bcount FROM uts_player WHERE matchid = $id AND team = 0 AND pu_belt >0");
  69. $q_t1bcount = small_query("SELECT SUM(pu_belt) AS bcount FROM uts_player WHERE matchid = $id AND team = 1 AND pu_belt >0");
  70. // Amp count
  71. $q_t0acount = small_query("SELECT SUM(pu_amp) AS acount FROM uts_player WHERE matchid = $id AND team = 0 AND pu_amp >0");
  72. $q_t1acount = small_query("SELECT SUM(pu_amp) AS acount FROM uts_player WHERE matchid = $id AND team = 1 AND pu_amp >0");
  73. // Cap count
  74. $q_capsa = small_query("SELECT pi.name, SUM(p.flag_capture) AS flag_caps FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = 0 AND flag_capture >= 1 GROUP BY name");
  75. $q_capsb = small_query("SELECT pi.name, SUM(p.flag_capture) AS flag_caps FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = 1 AND flag_capture >= 1 GROUP BY name");
  76. // Most Flag Grabs (W)
  77. $q_topgrab = small_query("SELECT p.id, pi.name, p.flag_taken FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = $twin ORDER BY flag_taken DESC LIMIT 0,1");
  78. $r_topgrabid = $q_topgrab[id];
  79. $r_topgrabname = $q_topgrab[name];
  80. // Most Flag Grabs (L)
  81. $q_topgrabl = small_query("SELECT p.id, pi.name, p.flag_taken FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = $tlose ORDER BY flag_taken DESC LIMIT 0,1");
  82. $r_topgrabidl = $q_topgrabl[id];
  83. $r_topgrabnamel = $q_topgrabl[name];
  84. // Most Flag Grabs (D)
  85. $q_topgrabd = small_query("SELECT p.id, pi.name, p.flag_taken, team FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id ORDER BY flag_taken DESC LIMIT 0,1");
  86. $r_topgrabidd = $q_topgrabd[id];
  87. $r_topgrabnamed = $q_topgrabd[name];
  88. IF ($redteam == $q_topgrabd[team]) {
  89. $r_topgrabteamd = $warinfo[0][2];
  90. $r_topgrabteamdid = $warinfo[0][1];
  91. } else {
  92. $r_topgrabteamd = $warinfo[1][2];
  93. $r_topgrabteamdid = $warinfo[1][1];
  94. }
  95. // Most Flag Covers (W)
  96. $q_topcover = small_query("SELECT p.id, pi.name, p.flag_cover FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = $twin ORDER BY flag_cover DESC LIMIT 0,1");
  97. $r_topcoverid = $q_topcover[id];
  98. $r_topcovername = $q_topcover[name];
  99. // Most Flag Covers (L)
  100. $q_topcoverl = small_query("SELECT p.id, pi.name, p.flag_cover FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = $tlose ORDER BY flag_cover DESC LIMIT 0,1");
  101. $r_topcoverlid = $q_topcoverl[id];
  102. $r_topcoverlname = $q_topcoverl[name];
  103. // Most Flag Covers (R)
  104. $q_topcoverr = small_query("SELECT p.id, pi.name, p.flag_cover FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = 0 ORDER BY flag_cover DESC LIMIT 0,1");
  105. $r_topcoverrid = $q_topcoverr[id];
  106. $r_topcoverrname = $q_topcoverr[name];
  107. // Most Flag Covers (B)
  108. $q_topcoverb = small_query("SELECT p.id, pi.name, p.flag_cover FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = 1 ORDER BY flag_cover DESC LIMIT 0,1");
  109. $r_topcoverbid = $q_topcoverb[id];
  110. $r_topcoverbname = $q_topcoverb[name];
  111. // Most Flag Assists (D)
  112. $q_topassistd = small_query("SELECT p.id, pi.name, p.flag_assist, team FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id ORDER BY flag_cover DESC LIMIT 0,1");
  113. $r_topassistdid = $q_topassistd[id];
  114. $r_topassistdname = $q_topassistd[name];
  115. IF ($q_topassistd[team] == $redteam) {
  116. $r_topassistdteam = $teamb;
  117. } else {
  118. $r_topassistdteam = $teama;
  119. }
  120. // Most Flag Seals (W)
  121. $q_topseal = small_query("SELECT p.id, pi.name, p.flag_seal FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = $twin ORDER BY flag_seal DESC LIMIT 0,1");
  122. $r_topsealid = $q_topseal[id];
  123. $r_topsealname = $q_topseal[name];
  124. // Most Flag Seals (L)
  125. $q_topseall = small_query("SELECT p.id, pi.name, p.flag_seal FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = $tlose ORDER BY flag_seal DESC LIMIT 0,1");
  126. $r_topseallid = $q_topseall[id];
  127. $r_topseallname = $q_topseall[name];
  128. // Top Capper (W)
  129. $q_topcap = small_query("SELECT p.id, pi.name, p.flag_capture FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = $twin ORDER BY flag_capture DESC LIMIT 0,1");
  130. $r_topcapid = $q_topcap[id];
  131. $r_topcapname = $q_topcap[name];
  132. // Top Capper (D)
  133. $q_topcapd = small_query("SELECT p.id, pi.name, p.flag_capture FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id ORDER BY flag_capture DESC LIMIT 0,1");
  134. $r_topcapdid = $q_topcap[id];
  135. $r_topcapdname = $q_topcap[name];
  136. // Most Flag Kills (L)
  137. $q_topdefl = small_query("SELECT p.id, pi.name, p.flag_kill FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = $tlose ORDER BY flag_kill DESC LIMIT 0,1");
  138. $r_topdeflid = $q_topdefl[id];
  139. $r_topdeflname = $q_topdefl[name];
  140. // Most Flag Kills (W)
  141. $q_topfkill = small_query("SELECT p.id, pi.name, p.flag_kill FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = $twin ORDER BY flag_kill DESC LIMIT 0,1");
  142. $r_topfkillid = $q_topfkill[id];
  143. $r_topfkillname = $q_topfkill[name];
  144. // 2nd Most Flag Kills (W)
  145. $q_topfkill2 = small_query("SELECT p.id, pi.name, p.flag_kill FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = $twin ORDER BY flag_kill DESC LIMIT 1,1");
  146. $r_topfkillid2 = $q_topfkill2[id];
  147. $r_topfkillname2 = $q_topfkill2[name];
  148. // Most Frags (D)
  149. $q_topfrag = small_query("SELECT p.id, pi.name, p.frags FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id ORDER BY frags DESC LIMIT 0,1");
  150. $r_topfragid = $q_topfrag[id];
  151. $r_topfragname = $q_topfrag[name];
  152. // Most Frags (W)
  153. $q_topfragw = small_query("SELECT p.id, pi.name, p.frags FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = $twin ORDER BY frags DESC LIMIT 0,1");
  154. $r_topfragwid = $q_topfkill2[id];
  155. $r_topfragwname = $q_topfkill2[name];
  156. // Most Deaths (L)
  157. $q_topdeath = small_query("SELECT p.id, pi.name, p.deaths FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = $tlose ORDER BY deaths DESC LIMIT 0,1");
  158. $r_topdeathid = $q_topdeath[id];
  159. $r_topdeathname = $q_topdeath[name];
  160. // Player of the Match
  161. $q_topstats = small_query("SELECT p.id, pi.name, p.rank AS prank FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id GROUP BY id, name ORDER BY prank DESC LIMIT 0,1");
  162. $r_topstatsid = $q_topstats[id];
  163. $r_topstatsname = $q_topstats[name];
  164. // Write the top of the report (non game specific)
  165. //Player List for Red Team
  166. echo'[b]'.$teama.' Lineup[/b]
  167. ';
  168. $sql_rplayer = "SELECT p.id, pi.name FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = 0 ORDER BY pi.name ASC";
  169. $q_rplayer = mysql_query($sql_rplayer);
  170. while ($r_rplayer = mysql_fetch_array($q_rplayer)) {
  171. echo''.$r_rplayer[name].'
  172. ';
  173. }
  174. //Player List for Blue Team
  175. echo'
  176. [b]'.$teamb.' Lineup[/b]
  177. ';
  178. $sql_bplayer = "SELECT p.id, pi.name FROM uts_player AS p, uts_pinfo AS pi WHERE p.pid = pi.id AND matchid = $id AND team = 1 ORDER BY pi.name ASC";
  179. $q_bplayer = mysql_query($sql_bplayer);
  180. while ($r_bplayer = mysql_fetch_array($q_bplayer)) {
  181. echo''.$r_bplayer[name].'
  182. ';
  183. }
  184. // Firstblood and Pickup stats
  185. echo '
  186. [b]Statistics[/b]
  187. First Blood: '.$r_fbloodname.'
  188. '.$teama.' Belts: '.$q_t0bcount[bcount].'
  189. '.$teamb.' Belts: '.$q_t1bcount[bcount].'
  190. '.$teama.' Amps: '.$q_t0acount[acount].'
  191. '.$teamb.' Amps: '.$q_t1acount[acount].'
  192. [b]Match Report[/b]
  193. ';
  194. // Low Scores and a Draw
  195. IF ($reptype == "low" && $tdraw == 1) {
  196. echo'Neither team were better this map, scorline is proof of this.
  197. [cl]'.$r_topgrabteamdid.','.$r_topgrabteamd.'[/cl] had the most chances to cap with '.$r_topgrabnamed.' taking the flag '.$q_topgrabd[flag_taken].' times, but unfortuantely couldnt cap as many as he took.
  198. Big credit to both teams defences; ';
  199. IF ($q_topdefl[flag_kill] >= $q_topfkill[flag_kill]) {
  200. echo ''.$r_topdeflname.' defended the flag and got '.$q_topdefl[flag_kill].' flagkills while '.$r_topfkillname.' also had a pretty nice defensive game killing '.$q_topfkill[flag_kill].' flag carriers.
  201. ';
  202. } else {
  203. echo ''.$r_topfkillname.' defended the flag and got '.$q_topfkill[flag_kill].' flagkills while '.$r_topdeflname.' also had a pretty nice defensive game killing '.$q_topdefl[flag_kill].' flag carriers.
  204. ';
  205. }
  206. echo'Seems the attackers had a frustrating game on this map, credit to ';
  207. IF ($q_topcover[flag_cover] >= $q_topcoverl[flag_cover]) {
  208. echo ''.$r_topcovername.' for covering his flag carrier '.$q_topcover[flag_cover].' times and also '.$r_topcoverlname.' for covering '.$q_topcoverl[flag_cover].' times.
  209. ';
  210. } else {
  211. echo ''.$r_topcoverlname.' for covering his flag carrier '.$q_topcoverl[flag_cover].' times and also '.$r_topcovername.' for covering '.$q_topcover[flag_cover].' times.
  212. ';
  213. }
  214. echo'Well done '.$r_topfragname.' for ensuring a tight scoreline with '.$q_topfrag[frags].' frags.
  215. If this map would be played again between these two clans, we might see a change of strategy in the attacking play, but the defenders were strong on both sides this time.
  216. Good game.
  217. Stats player of the map was '.$r_topstatsname.' with '.$q_topstats[prank].' stat points.
  218. Well played both teams.';
  219. }
  220. // Medium Scores and a Draw
  221. IF ($reptype == "medium" && $tdraw == 1) {
  222. echo'An excitingly close game with neither side having the upper hand.
  223. Both clans teamplay was about even and the result shows that it could have easily gone either way.
  224. Capping opportunities came along time after time, with [cl]'.$r_topgrabid.','.$r_topgrabname.'[/cl] taking the flag '.$q_topgrab[flag_taken].' times and at the other end [cl]'.$r_topgrabidl.','.$r_topgrabnamel.'[/cl] taking the flag '.$q_topgrabl[flag_taken].' times.
  225. Help was at hand for the flag runners with '.$teama.'\'s '.$r_topcoverrname.' covering '.$q_topcoverr[flag_cover].' times and '.$r_topcoverbname.' covering '.$q_topcoverb[flag_cover].' times for '.$teamb.'.
  226. Big credit to both teams defences; ';
  227. IF ($q_topdefl[flag_kill] >= $q_topfkill[flag_kill]) {
  228. echo ''.$r_topdeflname.' defended the flag and got '.$q_topdefl[flag_kill].' flagkills while '.$r_topfkillname.' also had a pretty nice defensive game killing '.$q_topfkill[flag_kill].' flag carriers.
  229. ';
  230. } else {
  231. echo ''.$r_topfkillname.' defended the flag and got '.$q_topfkill[flag_kill].' flagkills while '.$r_topdeflname.' also had a pretty nice defensive game killing '.$q_topdefl[flag_kill].' flag carriers.
  232. ';
  233. }
  234. echo'Both teams showed great teamplay and skill and the scoreline represents this.
  235. Two even lineups for this map.
  236. Well done '.$r_topfragname.' who had '.$q_topfrag[frags].' frags.
  237. Good game.
  238. Stats player of the map was '.$r_topstatsname.' with '.$q_topstats[prank].' stat points.
  239. Well played both teams.';
  240. }
  241. // High Scores and a Draw
  242. IF ($reptype == "high" && $tdraw == 1) {
  243. echo'A very very exciting, close CTF game Im sure both clans will agree.
  244. This high scoring draw proves that '.$teama.' and '.$teamb.' were evenly matched on this map.
  245. Teamplay and strategy enabled both teams to cap quite a few times.
  246. Well done to both teams attackers especially '.$r_topcapdname.' who capped '.$q_topcapd[flag_capture].' times.
  247. Capping opportunities came along time after time, with [cl]'.$r_topgrabid.','.$r_topgrabname.'[/cl] taking the flag '.$q_topgrab[flag_taken].' times and at the other end [cl]'.$r_topgrabidl.','.$r_topgrabnamel.'[/cl] taking the flag '.$q_topgrabl[flag_taken].' times.
  248. Help was at hand for the flag runners with '.$teama.'\'s '.$r_topcoverrname.' covering '.$q_topcoverr[flag_cover].' times and '.$r_topcoverbname.' covering '.$q_topcoverb[flag_cover].' times for '.$teamb.'.
  249. Although the defenders probably didnt have as good a game as the attackers on this map, credit should be awarded to ';
  250. IF ($q_topdefl[flag_kill] >= $q_topfkill[flag_kill]) {
  251. echo ''.$r_topdeflname.' for killing '.$q_topdefl[flag_kill].' flag carriers and also to ';
  252. } else {
  253. echo ''.$r_topfkillname.' for killing '.$q_topfkill[flag_kill].' flag carriers and also to ';
  254. }
  255. IF ($q_topseall[flag_seal] >= $q_topseal[flag_seal]) {
  256. echo ''.$r_topseallname.' for sealing the base '.$q_topseall[flag_seal].' times for his flag carrier to cap.
  257. <br >';
  258. } else {
  259. echo ''.$r_topsealname.' for sealing the base '.$q_topseal[flag_seal].' times for his flag carrier to cap.
  260. <br >';
  261. }
  262. echo' '.$r_topassistdname.' helped '.$r_topassistdteam.' get as many caps as they did by assisting '.$q_topassistd[flag_assist].' times in their caps.
  263. This shows great teamplay and cover, well played.
  264. Both teams showed great teamplay and skill and the scoreline represents this.
  265. Well done '.$r_topfragname.' who had '.$q_topfrag[frags].' frags.
  266. Good game.
  267. Stats player of the map was '.$r_topstatsname.' with '.$q_topstats[prank].' stat points.
  268. Well played both teams.';
  269. }
  270. // Low Scores and not a Draw
  271. IF ($reptype == "low" && $tdraw == 0) {
  272. echo 'Not very many caps in this close game, but '.$twin_team.' emerge victorious.
  273. Big credit to both teams defences; ';
  274. IF ($q_topdefl[flag_kill] >= $q_topfkill[flag_kill]) {
  275. echo ''.$r_topdeflname.' defended the flag and got '.$q_topdefl[flag_kill].' flagkills while '.$r_topfkillname.' also had a pretty nice defensive game killing '.$q_topfkill[flag_kill].' flag carriers.
  276. ';
  277. } else {
  278. echo ''.$r_topfkillname.' defended the flag and got '.$q_topfkill[flag_kill].' flagkills while '.$r_topdeflname.' also had a pretty nice defensive game killing '.$q_topdefl[flag_kill].' flag carriers.
  279. ';
  280. }
  281. echo 'Seems the attackers had a frustrating game on this map, especially [cl]'.$r_topgrabidl.','.$r_topgrabnamel.'[/cl] who took the flag '.$q_topgrabl[flag_taken].' and still lost the game :(
  282. Suportive play was made by '.$r_topcoverlname.' having '.$q_topcoverl[flag_cover].' covers, but even with covering play, the majority of the flags got returned and the game ended with '.$tlose_team.' losing out.
  283. Well done to '.$r_topcapname.' for capping '.$q_topcap[flag_capture].'.
  284. On other days the outcome could have been different.
  285. Good game and congratulations '.$twin_team.'.
  286. Stats player of the map was '.$r_topstatsname.' with '.$q_topstats[prank].' stat points.
  287. Well played both teams.';
  288. }
  289. // Medium Scores and not a Draw
  290. IF ($reptype == "medium" && $tdraw == 0) {
  291. echo 'A nice game of Capture the Flag took place this map with both teams trying hard to get flags back but only occasionally succeeding.
  292. '.$twin_team.' however managed to succesfully cap more than '.$tlose_team.' with big help from '.$r_topcapname.' who capped '.$q_topcap[flag_capture].'.
  293. '.$r_topgrabname.' made it hard for the '.$tlose_team.' defenders taking the flag a total of '.$q_topgrab[flag_taken].' times.
  294. Not to say that the defence was bad at all, '.$r_topdeflname.' got '.$q_topdefl[flag_kill].' flag kills and this made attacking hard work for '.$twin_team.'.
  295. Sealing off the base for '.$twin_team.' was some nice defence including '.$r_topsealname.' who sealed the base '.$q_topseal[flag_seal].' times.
  296. Covering the flag carrier for '.$twin_team.' mostly was '.$r_topcovername.' with '.$q_topcover[flag_cover].' covers.
  297. Attacking in vain at the other end of the map was '.$r_topgrabnamel.' who managed to take the '.$twin_team.' flag '.$q_topgrabl[flag_taken].' times, but unfortunately was unable to match the '.$twin_score.' caps made by '.$twin_team.'.
  298. '.$r_topgrabnamel.' was also up against some heavy defence including '.$r_topfkillname.' with '.$q_topfkill[flag_kill].' flag kills and '.$r_topfkillname2.' with '.$q_topfkill2[flag_kill].' flag kills.
  299. Good game and congratulations '.$twin_team.'.
  300. Stats player of the map was '.$r_topstatsname.' with '.$q_topstats[prank].' stat points.
  301. Well played both teams.';
  302. }
  303. // High Scores and not a Draw
  304. IF ($reptype == "high" && $tdraw == 0) {
  305. echo ''.$twin_team.' were victorious thanks to some nice capping by '.$r_topcapname.' who capped '.$q_topcap[flag_capture].' and '.$r_topgrabname.' who took the flag'.$q_topgrab[flag_taken].' times.
  306. '.$r_topcapname.' probably could not have done it without the help of '.$r_topcovername.' who had '.$q_topcover[flag_cover].' covers and '.$r_topsealname.' for sealing the base off '.$q_topseal[flag_seal].' times.
  307. Although the '.$tlose_team.' defenders played well, the '.$q_topdefl[flag_kill].' flag kills by '.$r_topdeflname.' was just not enough to stop the '.$twin_team.' attackers succeeding.
  308. Extra Credit should be given to '.$r_topfragwname.' for getting '.$q_topwfrag[frags].' frags.
  309. Some sympathy should be given to '.$r_topdeathname.' who died a whopping '.$q_topdeath[deaths].' times - unlucky!.
  310. All in all, this was a great attacking game for '.$twin_team.', but all players deserve credit for playing well.
  311. Good game and congratulations '.$twin_team.'.
  312. Stats player of the map was '.$r_topstatsname.' with '.$q_topstats[prank].' stat points.';
  313. }
  314. echo'
  315. This report was created with UTStats from the following game:
  316. [url]http://'.$oururl.'?p=match&mid='.$id.'[/url]
  317. </textarea>';
  318. ?>