news; // MainMenu Extended $m_set = mysql_query("SELECT * FROM `cms_menu_settings` WHERE `key`='enabled' LIMIT 1;"); $m_set_n = mysql_fetch_array($m_set); echo ''; if ($m_set_n['val'] == 1) { $m_group = mysql_query("select * from cms_menu_group mode ORDER BY pos;"); if ($m_group) { while ($m_group_n = mysql_fetch_array($m_group)) { if ($m_group_n['show'] == 1) { echo '
'; $filename = ''; $m_set = mysql_query("SELECT * FROM `cms_menu_settings` WHERE `key`='pic_cat' LIMIT 1;"); $m_set_n = mysql_fetch_array($m_set); if ($m_set_n['val'] == 1) $filename = './theme/' . $set_user['skin'] . "/"; else $filename = './'; $m_set = mysql_query("SELECT * FROM `cms_menu_settings` WHERE `key`='pic_path' LIMIT 1;"); $m_set_n = mysql_fetch_array($m_set); $filename = $filename . $m_set_n['val'] . "/" . $m_group_n['pic']; if (file_exists($filename) and $m_group_n['pic'] != '') echo ' '; else echo $m_group_n['sumbo'] . ' '; echo '' . tags($m_group_n['name']) . '
'; $m_link = mysql_query("select * from cms_menu_link mode ORDER BY pos;"); if ($m_link) { while ($m_link_n = mysql_fetch_array($m_link)) { if ($m_link_n['show'] == 1) { if ($m_group_n['id'] == $m_link_n['group']) { $m_count = mysql_query("SELECT * FROM `cms_menu_count` WHERE `id`='" . $m_link_n['type'] . "' LIMIT 1;"); $m_count_n = mysql_fetch_array($m_count); if ($m_link_n['type'] != 0) { if ($m_count_n['code'] == '$mp->newscount') $ehe = ' (' . $mp->newscount . ')'; else $ehe = ' (' . call_user_func($m_count_n['code']) . ')'; } else $ehe = ''; echo ''; } } } } } } } else { echo "

Error: " . mysql_error() . "

"; exit(); } } else { echo '

Информация
'; echo ''; echo ''; echo ''; echo '
Общение
'; echo ''; echo ''; echo ''; echo '
Полезное
'; echo ''; echo ''; echo ''; echo ''; echo '
Ф Газенвагенъ
'; } ?>