Ребята всем привет выручайте как правильно в системной папке вставить код что бы не выдовало ошибку сервера
код дам ниже
Добавлено 05.01.14 в 14:14:28:
if ($user[\'up_panel\'] == 0)
{
echo \"<table style=\'width:100%\' cellspacing=\'0\' cellpadding=\'0\'><tbody><tr>\";
echo \"<td style=\'vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;\'>\";
echo \"<a href=\'/umenu.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'><img src=\'/images/start.png\'></a>\";
echo \"</td>\";
echo \"<td style=\'vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;\'>\";
if ($user[\'pol\'] == 1) {
echo \"<a href=\'/info.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'><img src=\'/images/man.png\' alt=\'Я\' /></a>\";
} else {
echo \"<a href=\'/info.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'><img src=\'/images/woman.png\' alt=\'Я\' /></a>\";
}
echo \"</td>\";
echo \"<td style=\'vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;\'>\";
if ($k_new!=0 && $k_new_fav==0) {
echo \"<a href=\'/new_mess.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'><img src=\'/images/mess.png\'> <span class=\'event\'>$k_new</span></a>\\n\";
} else {
echo \"<a href=\'/konts.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'><img src=\'/images/mess.png\'></a>\\n\";
}
echo \"</td>\";
echo \"<td style=\'vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;\'>\";
if ($jn>0) {
echo \"<a href=\'/jurnal.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'><img src=\'/images/journal.png\'> <span class=\'event\'>$jn</span></a>\\n\";
} else {
echo \"<a href=\'/jurnal.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'><img src=\'/images/journal.png\'></a>\\n\";
}
echo \"</td>\";
echo \"<td style=\'vertical-align:top;width:20%;white-space:nowrap;\'>\";
if ($lenta>0) {
echo \"<a href=\'/lenta.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'><img src=\'/images/lenta.png\'> <span class=\'event\'>$lenta</span></a>\\n\";
} else {
echo \"<a href=\'/lenta.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'><img src=\'/images/lenta.png\'></a>\\n\";
}
echo \"</td>\";
echo \"</tr></tbody></table>\";
}
elseif ($user[\'up_panel\'] == 1)
{
echo \"<table style=\'width:100%\' cellspacing=\'0\' cellpadding=\'0\'><tbody><tr>\";
echo \"<td style=\'vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;\'>\";
echo \"<a href=\'/umenu.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'>Старт</a>\";
echo \"</td>\";
echo \"<td style=\'vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;\'>\";
echo \"<a href=\'/info.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'>Я</a>\";
echo \"</td>\";
echo \"<td style=\'vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;\'>\";
if ($k_new!=0 && $k_new_fav==0) {
echo \"<a href=\'/new_mess.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'>Почта <span class=\'event\'>$k_new</span></a>\\n\";
} else {
echo \"<a href=\'/konts.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'>Почта</a>\\n\";
}
echo \"</td>\";
echo \"<td style=\'vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;\'>\";
if ($jn>0) {
echo \"<a href=\'/jurnal.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'>Журнал <span class=\'event\'>$jn</span></a>\\n\";
} else {
echo \"<a href=\'/jurnal.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'>Журнал</a>\\n\";
}
echo \"</td>\";
echo \"<td style=\'vertical-align:top;width:20%;white-space:nowrap;\'>\";
if ($lenta>0) {
echo \"<a href=\'/lenta.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'>Лента <span class=\'event\'>$lenta</span></a>\\n\";
} else {
echo \"<a href=\'/lenta.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'>Лента</a>\\n\";
}
echo \"</td>\";
echo \"</tr></tbody></table>\";
}
else
{
echo \"<table style=\'width:100%\' cellspacing=\'0\' cellpadding=\'0\'><tbody><tr>\";
echo \"<td style=\'vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;\'>\";
echo \"<a href=\'/umenu.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'>С</a>\";
echo \"</td>\";
echo \"<td style=\'vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;\'>\";
echo \"<a href=\'/info.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'>Я</a>\";
echo \"</td>\";
echo \"<td style=\'vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;\'>\";
if ($k_new!=0 && $k_new_fav==0) {
echo \"<a href=\'/new_mess.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'>П <span class=\'event\'>$k_new</span></a>\\n\";
} else {
echo \"<a href=\'/konts.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'>П</a>\\n\";
}
echo \"</td>\";
echo \"<td style=\'vertical-align:top;width:20%;border-right: 1px solid #9c9aff;white-space:nowrap;\'>\";
if ($jn>0) {
echo \"<a href=\'/jurnal.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'>Ж <span class=\'event\'>$jn</span></a>\\n\";
} else {
echo \"<a href=\'/jurnal.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'>Ж</a>\\n\";
}
echo \"</td>\";
echo \"<td style=\'vertical-align:top;width:20%;white-space:nowrap;\'>\";
if ($lenta>0) {
echo \"<a href=\'/lenta.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'>Л <span class=\'event\'>$lenta</span></a>\\n\";
} else {
echo \"<a href=\'/lenta.php\' style=\'text-align:center;display:block;padding:1px;font-size:small;\'>Л</a>\\n\";
}
echo \"</td>\";
echo \"</tr></tbody></table>\";
}
if (mysql_result(mysql_query(\"SELECT COUNT(*) FROM `frends_new` WHERE `to` = \'$user[id]\' LIMIT 1\"
, 0) > 0)
{
echo \"<div style=\'padding-top:2px;padding-left:2px;padding-bottom:0px;border-top:solid #9c9aff;border-width:1px;\'>\";
echo \"<a href=\'/frend_new.php\'>Предложение дружбы <span class=\'event\'>
$zoz</span>
</a>\\n\";
echo \"</div>\";
}
echo \"</div>\";
echo \"<td class=\'auts\'>\";
echo \"</td>\";
echo \"</tr></table>\";
if (isset($_GET[\'close_help\']) && isset($user) && mysql_result(mysql_query(\"SELECT COUNT(*) FROM `putevoditel_us` WHERE `id_url` = \'\".esc($_SERVER[\'PHP_SELF\']).\"\' AND `id_user` = \'\".$user[\'id\'].\"\' \"
, 0) == 0) {
mysql_query(\"INSERT INTO `putevoditel_us` ( `id_url`, `id_user`, `close`) values(\'\".intval($_GET[\'close_help\']).\"\', \'\".$user[\'id\'].\"\', \'1\') \"
;
}
$help = mysql_fetch_assoc(mysql_query(\"SELECT * FROM `putevoditel` WHERE `str_url` = \'\".esc($_SERVER[\'PHP_SELF\']).\"\' \"
);
$off_on = mysql_fetch_assoc(mysql_query(\"SELECT * FROM `putevoditel_us` WHERE `id_url` = \'\".$help[\'id\'].\"\' AND `id_user` = \'\".$user[\'id\'].\"\' \"
);
if ($user[\'date_reg\']>time()-$help[\'time\'] && $_SERVER[\'PHP_SELF\'] == $help[\'str_url\'] && $off_on[\'close\'] == 0 && isset($user)) {
$help[\'help_text\'] = str_replace(\'[user_nick]\', $user[\'nick\'], $help[\'help_text\']);
echo \'<div class = \"p_m\">\';
echo \'<img src=\"/style/user/user.png\" width = \"50\" height = \"50\"> \';
echo $help[\'help_text\'].\'<br />\';
echo \'<a href=\"?close_help=\'.$help[\'id\'].\'\">Больше не показывать</a>\';
echo \'</div>\';
}