|
|
|
| в этом куске кода происходит ошибка
if ( isset( $_SESSION['valid_user'] ) && ( !defined( "ALLOW_PANEL" ) && ALLOW_PANEL ) && empty( $_obfuscate_artem3 ) )
{
/*do
{
if ( !$_obfuscate_artem4 )
{
break;
}
else
{
echo "\t\r\n\t<div id=\"tempc_layer\">\r\n\t\t<div style=\"float: left; margin-left: 20px;\">\r\n\t\t";
if ( defined( "CURRENT_STRUCTURE_ID" ) )
{
echo "\t\t\t<a href=\"/admin/structure/structure.php?admin_forms_id=82&operation=edit_node&check_0_";
echo CURRENT_STRUCTURE_ID;
echo "=1\" target=\"_blank\"><img src=\"/tempcfiles/images/edit.gif\" style=\"margin-bottom: -3px\" border=\"0\" alt=\"Редактировать\" title=\"Редактировать\" /></a>\r\n\t\t\t";
}
echo "\t\t<span style=\"padding: 0px 7px 0px 7px; color:#CAC79D\">|</span>\r\n\t\t\r\n\t\t<a href=\"/admin/\" target=\"_blank\"><img src=\"/tempcfiles/images/system.gif\" style=\"margin-bottom: -3px\" border=\"0\" alt=\"Администрировать\" title=\"Администрировать\" /></a>\r\n\t\t\t\r\n\t\t<span style=\"padding: 0px 7px 0px 7px; color:#CAC79D\">|</span>\r\n\t\t\t\r\n\t\t<a href=\"javascript:void(0)\" onclick=\"SlideWindow('div_tempc_debug')\"><img src=\"/tempcfiles/images/chart_bar.gif\" style=\"margin-bottom: -3px\" border=\"0\" width=\"16\" height=\"16\" title=\"Отладочная информация\" alt=\"Отладочная информация\" /></a>\r\n\t\t";
if ( to_bool( $_SESSION['tempc_SHOW_XML'] ) )
{
$_obfuscate_artem35 = "xsl.gif";
$_obfuscate_artem2 = "Скрыть XML";
$_obfuscate_artem36 = "?tempc_action=HIDE_XML";
}
else
{
$_obfuscate_artem35 = "xsl.gif";
$_obfuscate_artem2 = "Отобразить XML";
$_obfuscate_artem36 = "?tempc_action=SHOW_XML";
}
echo "\t\t\r\n\t\t<span style=\"padding: 0px 7px 0px 7px; color:#CAC79D\">|</span>\r\n\t\r\n\t\t<a href=\"";
echo $_obfuscate_artem36;
echo "\" title=\"";
echo $_obfuscate_artem2;
echo "\"><img src=\"/tempcfiles/images/";
echo $_obfuscate_artem35;
echo "\" style=\"margin-bottom: -3px\" border=\"0\" width=\"16\" height=\"16\" /></a>\r\n\t\t\r\n\t\t</div>\r\n\t\t\r\n\t\t<div style=\"float: right; margin-right: 30px\">\r\n\t\t<img src=\"";
echo isset( $_SESSION['is_superuser'] ) && $_SESSION['is_superuser'] == 1 ? "/tempcfiles/images/superuser.gif" : "/tempcfiles/images/user.gif";
echo "\" style=\"margin-bottom: -3px\" border=\"0\" width=\"16\" height=\"16\" />\r\n\t\t";
echo $_SESSION['valid_user'];
echo "\t\t<a href=\"/admin/logout.php\"><img src=\"/admin/images/exit.gif\" style=\"margin-bottom: -3px; margin-left: 10px\" border=\"0\" width=\"16\" height=\"16\" /></a>\r\n\t\t</div>\r\n\t</div>\r\n\r\n\t<script src=\"/tempcfiles/main.js\" type=\"text/javascript\"></script>\r\n\t<link rel=\"stylesheet\" type=\"text/css\" href=\"/tempcfiles/style.css\" />\r\n\t";
if ( true )
{
$_obfuscate_artem37 = $_obfuscate_artem5->getmicrotime( );
$_obfuscate_artem38 = $_obfuscate_artem37 - $BeginTime;
echo "\t\t<div id=\"div_tempc_debug\">\r\n\t\t\t<div id=\"subdiv\">\r\n\t\t\tВремя выполнения: <strong>";
echo sprintf( "%.3f", $_obfuscate_artem38 );
echo " с</strong>, из них\r\n\t\t\t<ul>\r\n\t\t\t<li>время инициализации необходимых модулей: <strong>";
echo sprintf( "%.3f", to_str( $MTime ) );
echo " с</strong>;\r\n\t\t\t";
if ( isset( $PTime ) )
{
echo "\t\t\t\t<li>время генерации содержания страницы: <strong>";
echo sprintf( "%.3f", to_str( $PTime ) );
echo " с</strong>;\r\n\t\t\t\t";
}
echo "\t\r\n\t\t\t<li>время соединения с СУБД: <strong>";
echo sprintf( "%.3f", to_str( $DB_CONNECT_TIME ) );
echo " с</strong>;\r\n\t\t\t<li>время выбора БД: <strong>";
echo sprintf( "%.3f", to_str( $DB_SELECT_TIME ) );
echo " с</strong>;\r\n\t\t\t<li>время выполнения запросов: <strong>";
echo sprintf( "%.3f", to_str( $SQL_time ) );
echo " с</strong>.\r\n\t\t\t</ul>\r\n\t\t\t";
if ( function_exists( "memory_get_usage" ) && substr( PHP_OS, 0, 3 ) != "WIN" )
{
echo "\t\t\t\tИспользовано памяти: <strong>";
echo sprintf( "%.2f Мб", memory_get_usage( ) / 1048576 );
echo "</strong>\r\n\t\t\t\t<br>\r\n\t\t\t\t";
}
echo "\t\r\n\t\t\tКоличество запросов: <strong>";
echo to_int( $total_query );
echo "</strong>.\r\n\t\t\t<br>Компрессия: <strong>";
echo defined( "COMPRESSION_BEGIN" ) ? "Включена" : "Отключена";
echo "</strong>.\r\n\t\t\t<br>Кэширование: <strong>";
echo defined( "CACHE_INSTALL" ) ? "Включено" : "Отключено";
echo "</strong>.\r\n\t\r\n\t\t\t";
if ( defined( "CACHE_INSTALL" ) )
{
echo "\t\t\t\t<ul>\r\n\t\t\t\t<li>время записи в кэш: <strong>";
echo sprintf( "%.3f", to_str( $CACHE_INSERT_TIME ) );
echo " с</strong>;\r\n\t\t\t\t<li>запросов на запись: <strong>";
echo to_int( $CACHE_INSERT_COUNT );
echo "</strong>;\r\n\t\t\t\t<li>время чтения из кэш: <strong>";
echo sprintf( "%.3f", to_str( $CACHE_GET_TIME ) );
echo " с</strong>;\r\n\t\t\t\t<li>запросов на чтение: <strong>";
echo to_int( $CACHE_GET_COUNT );
echo "</strong>.\r\n\t\t\t\t</ul>\r\n\t\t\t\t";
}
echo "\t\t\t</div>\r\n\t\t</div>\r\n\t\t\r\n\t\t<script type=\"text/javascript\">\r\n\t\tCreateWindow(\"div_tempc_debug\", \"Отладочная информация\", '400px', '220px');\r\n\t\t</script>\r\n\t\t";
}
echo "\t\r\n\t<style type=\"text/css\">\r\n\t\tbody\r\n\t\t{\r\n\t\t\tmargin-top: 35px;\r\n\t\t}\r\n\t</style>\r\n\t";
}
}*/
//////////////////////////////////////
if ( !$_obfuscate_artem4 && isset( $_SESSION['valid_user'] ) && ( defined( "ALLOW_PANEL" ) && !ALLOW_PANEL ) || ( !defined( "INTEGRATION" ) && !( INTEGRATION == 0 ) && !( to_str( $_SERVER['REQUEST_URI'] ) == "/" ) && !isset( $_obfuscate_artem34 ) ) )
{
break;
}
echo "\t\t<script language=\"javascript\" type=\"text/javascript\">\r\n\t\tif (document.all && !window.opera)\r\n\t\t{\r\n\t\t\tif (document.getElementById('tempc_layer'))\r\n\t\t\t{\r\n\t\t\t\tdocument.getElementById('tempc_layer').style.position=\"absolute\";\r\n\t\t\t}\r\n\r\n\t\t\tif (document.getElementById('tempc_licence'))\r\n\t\t\t{\r\n\t\t\t\tdocument.getElementById('tempc_licence').style.position=\"absolute\";\r\n\t\t\t}\r\n\r\n\t\t\twindow.onscroll=function()\r\n\t\t\t{\r\n\t\t\t\tif (document.getElementById('tempc_layer'))\r\n\t\t\t\t{\r\n\t\t\t\t\tdocument.getElementById('tempc_layer').style.top = document.documentElement.scrollTop;\r\n\t\t\t\t}\r\n\r\n\t\t\t\tif (document.getElementById('tempc_licence'))\r\n\t\t\t\t{\r\n\t\t\t\t\tdocument.getElementById('tempc_licence').style.top = document.documentElement.scrollTop;\r\n\t\t\t\t}\r\n\t\t\t};\r\n\t\t\twindow.onscroll();\r\n\t\t}\r\n\t\telse\r\n\t\t{\r\n\t\t\tif (document.getElementById('tempc_layer'))\r\n\t\t\t{\r\n\t\t\t\tdocument.getElementById('tempc_layer').style.position=\"fixed\";\r\n\t\t\t\tdocument.getElementById('tempc_layer').style.top=0;\r\n\t\t\t}\r\n\t\t\tif (document.getElementById('tempc_licence'))\r\n\t\t\t{\r\n\t\t\t\tdocument.getElementById('tempc_licence').style.position=\"fixed\";\r\n\t\t\t\tdocument.getElementById('tempc_licence').style.top=0;\r\n\t\t\t}\r\n\t\t}\r\n\t\t</script>\r\n\t\t";
}
while ( 0 );
|
Если убрать коменты тогда выдает ошибку
Parse error: syntax error, unexpected T_IF, expecting T_WHILE in Z:\home\localhost\www\mytest\index.de.php on line 298
298 строка
if ( !$_obfuscate_artem4 && isset( $_SESSION['valid_user'] ) && ( defined( "ALLOW_PANEL" ) && !ALLOW_PANEL ) || ( !defined( "INTEGRATION" ) && !( INTEGRATION == 0 ) && !( to_str( $_SERVER['REQUEST_URI'] ) == "/" ) && !isset( $_obfuscate_artem34 ) ) )
|
Помгите плиз | |
|
|
|
|
|
|
|
для: himera7
(11.10.2008 в 15:07)
| | синтаксис оператора do ... while представляете?
где часть while? | |
|
|
|