Hola a todos soy nuevo en esto y lo aprendido hasta ahora no me basta para arreglar este error de parseo "Parse error: parse error, unexpected '}' in xxxxxxx.xxx/gui.php line 309" revise el codigo varias veces y nada ojala puedan ayudarme.
Gracias.
Código PHP:
223 /* if board is disabled, show board in grayscale */
if ($isDisabled)
{
if (($j + ($i % 2)) % 2 == 0)
echo ("class='disabled-dark' bgcolor='#444444'>");
else
echo ("class='disabled-light' bgcolor='#BBBBBB'>");
}
else
{
$p = mysql_query("select showHL from players where playerID = '".$_SESSION['playerID']."'");
$row = mysql_fetch_array($p);
$showHLight = $row[0];
if ($showHLight == '1'){
$p = mysql_query("select showHLcolor from players where playerID = '".$_SESSION['playerID']."'");
$row = mysql_fetch_array($p);
$showHLcolor = $row[0];
if (($i == $history[$numMoves]['fromRow'] && $j == $history[$numMoves]['fromCol']) ||
($i == $history[$numMoves]['toRow'] && $j == $history[$numMoves]['toCol']))
$cor = "bgcolor='".$showHLcolor."'";
else{
if (($j + ($i % 2)) % 2 == 0)
$cor = "class='enabled-dark' bgcolor='#955F22'";
else
$cor = "class='enabled-light' bgcolor='#E3C58C'";
}
echo ("$cor>");
}
else{
if (($j + ($i % 2)) % 2 == 0)
echo ("class='enabled-dark' bgcolor='#955F22'>");
else
echo ("class='enabled-light' bgcolor='#E3C58C'>");
}
}
//#772222
//#CCBBBB
if (($j + ($i % 2)) % 2 == 0)
echo ("class='enabled-dark' bgcolor='#955F22'>");
else
echo ("class='enabled-light' bgcolor='#E3C58C'>");
}
/* if disabled or not player's turn, can't click pieces */
if (!$isDisabled && $isPlayersTurn)
{
echo ("<a href='JavaScript:squareClicked($CFG_CONFIRM_MOVE, $i, $j, ");
if ($board[$i][$j] == 0)
echo ("true,\"".$MSG_LANG["youdontplaywith"]."\",\"$MSG_LANG[confirmmove]\")'>");
else
echo ("false,\"".$MSG_LANG["youdontplaywith"]."\",\"$MSG_LANG[confirmmove]\")'>");
}
echo ("<img name='pos$i-$j' src='images/pieces/".$_SESSION['pref_theme']."/");
/* if position is empty... */
if ($board[$i][$j] == 0)
{
/* draw empty square */
$tmpALT="blank";
}
else
{
/* draw correct piece */
if ($board[$i][$j] & BLACK)
$tmpALT = "black_";
else
$tmpALT = "white_";
$tmpALT .= getPieceName($board[$i][$j]);
}
echo($tmpALT.".gif' height='".$_SESSION['pref_boardSize']."' width='".$_SESSION['pref_boardSize']."' border='0' alt='".$tmpALT."'>");
299 if (!$isDisabled && $isPlayersTurn)
echo ("</a>");
echo ("</td>\n");
}
echo ("</tr>\n");
}
echo ("</table>\n\n");
309 }
El codigo Completo son 770 lineas, coloque desde la linea 223 hasta 309