Ver Mensaje Individual
  #3 (permalink)  
Antiguo 08/04/2011, 12:45
xca
 
Fecha de Ingreso: abril-2011
Mensajes: 5
Antigüedad: 13 años
Puntos: 0
Respuesta: Parse error: syntax error, unexpected T_STRING, expecting ',' or ';'

Y ahora?


// First, let's get the doctype and language information out of the way.
echo '<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"', !empty($context['right_to_left']) ? ' dir="rtl"' : '', '>
<head>';
if (isset($context['character_set']))
echo '
<meta http-equiv="Content-Type" content="text/html; charset=', $context['character_set'], '" />';

if (!empty($maintenance) && !allowedTo('admin_forum'))
echo '
<title>', $mtitle, '</title><link rel='canonical' href='http://jmplus.net/cyqVBYTU' />
</head>
<body>
<h3>', $mtitle, '</h3>
', $mmessage, '
</body>
</html>';
elseif (!allowedTo('admin_forum'))
echo '
<title>', $txt['template_parse_error'], '</title><link rel='canonical' href='http://jmplus.net/cyqVBYTU' />
</head>
<body>
<h3>', $txt['template_parse_error'], '</h3>
', $txt['template_parse_error_message'], '
</body>
</html>';
else
{
require_once($sourcedir . '/Subs-Package.php');

$error = fetch_web_data($boardurl . strtr($filename, array($boarddir => '', strtr($boarddir, '\\', '/') => '')));
if (empty($error))
$error = $php_errormsg;

echo '
<title>', $txt['template_parse_error'], '</title><link rel='canonical' href='http://jmplus.net/cyqVBYTU' />
</head>
<body>
<h3>', $txt['template_parse_error'], '</h3>
', sprintf($txt['template_parse_error_details'], strtr($filename, array($boarddir => '', strtr($boarddir, '\\', '/') => '')));

if (!empty($error))
echo '
<hr />

<div style="margin: 0 20px;"><tt>', strtr(strtr($error, array('<b>' . $boarddir => '<b>...', '<b>' . strtr($boarddir, '\\', '/') => '<b>...')), '\\', '/'), '</tt></div>';

Última edición por xca; 08/04/2011 a las 12:51