Tengo un problema con mi página web. Es el siguiente:
Parse error: syntax error, unexpected $end in /home/quilmes/domains/winionlin.com.ar/public_html/indexC.php on line 339
Código PHP:
<?
$seccion="inicial";
include("arriba.php");
//$query = "select * from selecciones where 1=2";
//$linkForo=mysql_connect($server,$user,$contra);
mysql_select_db($base_foro,$link);
ORDER BY post_time DESC
LIMIT 0 , 20";
$queryPost = mysql_query($query,$link);
//$link=mysql_connect($server,$user,$contra);
mysql_select_db($base,$link);
$cantidad = 2;
$resultPart=mysql_query($queryPart,$link);
for($i=0;$i<$cantidad;$i++)
{
$consola[$i] = $rowSel["consola"] == 1 ? "WE2013" : "PC";
if($clase[$i][0]==1)
{
$ancho[$i][0]=15;
$alto[$i][0]=15;
}
else
{
$ancho[$i][0]=20;
$alto[$i][0]=13;
}
if($clase[$i][1]==1)
{
$ancho[$i][1]=15;
$alto[$i][1]=15;
}
else
{
$ancho[$i][1]=20;
$alto[$i][1]=13;
}
}
?>
<style type="text/css">
<!--
.Estilo1 {color: #000000}
html{
overflow-y:scroll;
}
-->
</style>
<?php $h=0;?>
<center>
<h3><?php echo $traductorInicioI[$idioma][$h];$h++?></h3>
</center>
<table align="center">
<tr>
<td colspan="3" align="center">
<img src="images/terrapass.jpg" width="15" height="15" align="absmiddle" />
<span class="tituloNot"><?php echo $traductorInicioI[$idioma][$h];$h++?></span>
</td>
</tr>
<tr>
<td align="center">
<table border="1" align="center">
<tr>
<td><img src="banderas/<?php echo $seleccion[0][0];?>.jpg" width="<?php echo $ancho[0][0];?>" height="<?php echo $alto[0][0];?>" /></td>
<td bgcolor="#F0F0F0" class="contNot"><?php echo $nomEquipo[0][0];?></td>
<td class="contNot"><?php echo $res[0][0];?></td>
<td><span style="font-family: Verdana; font-weight: bolder; font-size: 0.6em; color: Chocolate;"><?= $consola[0] ?></span></td>
<td><img src="banderas/<?php echo $seleccion[0][1];?>.jpg" width="<?php echo $ancho[0][1];?>" height="<?php echo $alto[0][1];?>" /></td>
<td bgcolor="#F0F0F0" class="contNot"><?php echo $nomEquipo[0][1];?></td>
<td class="contNot"><?php echo $res[0][1];?></td>
</tr>
</table>
</td>
<td></td>
<td>
<table border="1" align="center">
<tr>
<td><img src="banderas/<?php echo $seleccion[1][0];?>.jpg" width="<?php echo $ancho[1][0];?>" height="<?php echo $alto[1][0];?>" /></td>
<td bgcolor="#F0F0F0" class="contNot"><?php echo $nomEquipo[1][0];?></td>
<td class="contNot"><?php echo $res[1][0];?></td>
<td><span style="font-family: Verdana; font-weight: bolder; font-size: 0.6em; color: Chocolate;"><?= $consola[1] ?></span></td>
<td><img src="banderas/<?php echo $seleccion[1][1];?>.jpg" width="<?php echo $ancho[1][1];?>" height="<?php echo $alto[1][1];?>" /></td>
<td bgcolor="#F0F0F0" class="contNot"><?php echo $nomEquipo[1][1];?></td>
<td class="contNot"><?php echo $res[1][1];?></td>
</tr>
</table>
</td>
</tr>
</table>
<br>
<div align="left">
<img src="images/noticias.gif" width="15" height="15" />
<span class="tituloNot"><?php echo $traductorInicioI[$idioma][$h];$h++?></span>
<br>
<br>
<?php
while($rowNoticias=mysql_fetch_array($resultNoticias))
{?>
<img src="images/flechita.gif" width="9" height="9"> <span class="fechaNot"><?php echo $rowNoticias["fecha"];?></span>
<span class="contNot"><?php echo $rowNoticias["noticia"];if(trim($rowNoticias["fecha"])==date("d.m.y"))echo " <img src=\"images/hoy.gif\" width=\"20\" height=\"10\" align=\"baseline\" />";?> </span>
<br>
<?php }?>
<br>
<!--<center><a href="foro/index.php?board=10.0" target="_blank"><img src="images/forott0.png" border=0></a></center><br>
<center><a href="foro/index.php?board=15.0" target="_blank"><img src="images/mundial.jpg" border=0></a></center><br>
<center><a href="foro/index.php?board=49.0" target="_blank"><img src="images/master_league.jpg" border=0></a></center><br>
-->
<center><script id="sid0010000029633083158">(function() {function async_load(){s.id="cid0010000029633083158";s.src='http://st.chatango.com/js/gz/emb.js';s.style.cssText="width:655px;height:385px;";s.async=true;s.text='{"handle":"winionline","styles":{"a":"000000","b":100,"c":"0099CC","d":"666666","g":"0000FF","j":"333333","k":"999999","l":"CCCCCC","m":"FFFFFF","n":"00CC00","s":1}}';var ss = document.getElementsByTagName('script');for (var i=0, l=ss.length; i < l; i++){if (ss[i].id=='sid0010000029633083158'){ss[i].id +='_';ss[i].parentNode.insertBefore(s, ss[i]);break;}}}var s=document.createElement('script');if (s.async==undefined){if (window.addEventListener) {addEventListener('load',async_load,false);}else if (window.attachEvent) {attachEvent('onload',async_load);}}else {async_load();}})();</script></center>
<br>
<img src="images/varios.gif" width="11" height="8" align="baseline" /> <span class="tituloNot">ULTIMOS MENSAJES DEL FORO:</span>
<br> <br>
<?php
define('IN_PHPBB', true);
$phpbb_root_path = (defined('PHPBB_ROOT_PATH')) ? PHPBB_ROOT_PATH : './foro/';
$phpEx = substr(strrchr(__FILE__, '.'), 1);
include($phpbb_root_path . 'common.' . $phpEx);
include($phpbb_root_path . 'includes/bbcode.' . $phpEx);
include($phpbb_root_path . 'includes/functions_display.' . $phpEx);
// Start session management
$user->session_begin();
$auth->acl($user->data);
$user->setup('viewforum');
function create_where_clauses($gen_id, $type)
{
global $db, $auth;
$size_gen_id = sizeof($gen_id);
switch($type)
{
case 'forum':
$type = 'forum_id';
break;
case 'topic':
$type = 'topic_id';
break;
default:
trigger_error('No type defined');
}
$out_where = '';
if ($size_gen_id > 0)
{
// Get a list of all forums the user has permissions to read
$auth_f_read = array_keys($auth->acl_getf('f_read', true));
if ($type == 'topic_id')
{
$sql = 'SELECT topic_id FROM ' . TOPICS_TABLE . '
WHERE ' . $db->sql_in_set('topic_id', $gen_id) . '
AND ' . $db->sql_in_set('forum_id', $auth_f_read);
$result = $db->sql_query($sql);
while ($row = $db->sql_fetchrow($result))
{
// Create an array with all acceptable topic ids
$topic_id_list[] = $row['topic_id'];
}
unset($gen_id);
$gen_id = $topic_id_list;
$size_gen_id = sizeof($gen_id);
}
$j = 0;
for ($i = 0; $i < $size_gen_id; $i++)
{
$id_check = (int) $gen_id[$i]; // If the type is topic, all checks have been made and the query can start to be built if( $type == 'topic_id' ) { $out_where .= ($j == 0) ? 'WHERE ' . $type . ' = ' . $id_check . ' ' : 'OR ' . $type . ' = ' . $id_check . ' '; } // If the type is forum, do the check to make sure the user has read permissions else if( $type == 'forum_id' && $auth->acl_get('f_read', $id_check) )
{
$out_where .= ($j == 0) ? 'WHERE ' . $type . ' = ' . $id_check . ' ' : 'OR ' . $type . ' = ' . $id_check . ' ';
}
$j++;
}
}
if ($out_where == '' && $size_gen_id > 0)
{
trigger_error('A list of topics/forums has not been created');
}
return $out_where;
}
// Número de últimos posts a mostrar:
$search_limit = 12;
$posts_ary = array(
'SELECT' => 'p.*, t.*, u.username, u.user_colour',
'FROM' => array(
POSTS_TABLE => 'p',
),
'LEFT_JOIN' => array(
array(
'FROM' => array(USERS_TABLE => 'u'),
'ON' => 'u.user_id = p.poster_id'
),
array(
'FROM' => array(TOPICS_TABLE => 't'),
'ON' => 'p.topic_id = t.topic_id'
),
),
'WHERE' => $db->sql_in_set('t.forum_id', array_keys($auth->acl_getf('f_read', true))) . '
AND t.topic_status <> ' . ITEM_MOVED . '
AND t.topic_approved = 1',
'ORDER_BY' => 'p.post_id DESC',
);
$posts = $db->sql_build_query('SELECT', $posts_ary);
$posts_result = $db->sql_query_limit($posts, $search_limit);
while ($posts_row = $db->sql_fetchrow($posts_result))
{
$post_text = smiley_text($post_text);
echo "<b>*</b> <a href=\"$post_link\" target=\"_blank\">$topic_title </a> comentó $post_author - $post_date <br>";
}
?>
<?php
{
// ACCESO 2: users con acceso al Privado del foro:
/* Los Bohemio
BRAIN.EATERSXXX
ASR */
// ACCESO 3: Adminitradores con acceso limitado: Cordi y Piratas.
// ACCESO 4: Adminitradores con acceso total: Yorugua, Quilmes y Sampler.
// ACCESO 5: Moderadores: Taku y Chino.
// ACCESO distinto a los anteriores: usuarios no logueados.
if ( ($ACCESO == 2) || ($ACCESO == 3) || ($ACCESO == 4) || ($ACCESO == 5) )
{?>
<br>
<?}
else
{
if ( $rowPost["forum_name"]=="Administración" || $rowPost["forum_name"]=="Descarga Directa - Consolas"){ }
else
{?>
<br>
<?}
}
}
?>
<?php
include("abajo.php");
ob_end_flush();
?>
Les agradeceré de corazón su ayuda.
Saludos!