if ($tmpGame['oficial'] == "1") $oficial = $MSG_LANG["official"]; else $oficial = $MSG_LANG["notofficial"]; echo "<td>".$oficial."</td>"; if ($tmpGame['oficial'] == "1"){ $xpw = getXPW($ratingW,$ratingL,getPV($id)); $xpl = getXPL($ratingL,$ratingW,getPV($id)); }else{ $xpl=0; $xpw=0; } $dificuldade = getDifficult($_SESSION['playerID'],$id); echo "<td>$dificuldade</td>\n"; echo "<td><i>+$xpw / -$xpl</i></td>\n"; /* Response */ echo ("</td><td align='center'>"); echo ("<input type='button' value='".$MSG_LANG["accept"]."' onclick=\"sendResponse('accepted', '".$tmpFrom."', ".$tmpGame['gameID'].")\">"); echo ("<input type='button' value='".$MSG_LANG["reject"]."' onclick=\"sendResponse('declined', '".$tmpFrom."', ".$tmpGame['gameID'].")\">"); echo("</td></tr>\n"); } echo '</table> <input type="hidden" name="response" value=""> <input type="hidden" name="messageFrom" value=""> <input type="hidden" name="gameID" value="">
$total = $vitorias+$derrotas+$empates; $botlimit = $ativos+$invites; $p = mysql_query("SELECT * from players where playerID='".$_GET['cod']."'"); $row = mysql_fetch_array($p); $t2 = mysql_query("select * from team_members where fk_player='".$_GET['cod']."' and level>'0'"); $rt = mysql_fetch_array($t2); $rt2= mysql_query("SELECT name from team WHERE teamID='$rt[fk_team]'"); $rtn = mysql_fetch_array($rt2); $teamName =$rtn['name']; $nivel = getPlayerLevel($_GET['cod']); $PV = getPV($_GET['cod']); $mylevel = getPlayerLevel($_SESSION['playerID']); $dificuldade = getDifficult($_SESSION['playerID'],$_GET['cod']); if ($row['playerID'] == $_SESSION['playerID']) $isme=1; else $isme=0; echo " <tr><td width='20%' style='text-align:left'><B>".$MSG_LANG["name"]."</td><td style='text-align:left' width=50%>$row[firstName]</td><td valign='center' rowspan='17' width=30%>"; show_avatar($row['playerID']); echo "</td></tr>"; echo " <tr><td width='20%' style='text-align:left'><B>".$MSG_LANG["bio"]."</td><td style='text-align:left' width=50%>$row[bio]</td>"; echo " <tr><td width='20%' style='text-align:left'><B>".$MSG_LANG["localization"]."</td><td style='text-align:left' width=50%>$row[cidade], $row[uf] - $row[pais]</td></tr> <tr><td width='20%' style='text-align:left'><B>".$MSG_LANG["gender"]."</td><td style='text-align:left' width=50%>".$gender[$row[sexo]]."</td></tr> ";