L
liohaa
Прохожие
- Автор темы
- #1
всем привет! И спользую двиг спайз-нуке после того как добавил картинки он перестал роботать, а если точней неотоброжаются разделы
PHP:
<?php
defined('SPAIZ_CODE') or die('Direct Access to this location is not
allowed.');
global $prefix, $dbi, $admin;
$a = '';
$content = '<img src="images/Home.gif"><a
href="index.php">'._INDEX3.'</a><br>';
$content .= '<img src="images/news.gif"><a
href="modules.php?name=News&new_topic=17">Новости</a><br>';
$content .= '<img src="images/news.gif"><a
href="modules.php?name=News&new_topic=1">Софт</a><br>';
$content .= '<strong><img src="images/news.gif"><a
href="modules.php?name=News&new_topic=2">Игры</a><br>';
$content .= '<img src="images/news.gif"><a
href="modules.php?name=News&new_topic=3">Фильмы</a><br>';
$content .= '<img src="images/news.gif"><a
href="modules.php?name=News&new_topic=4">Музыка</a><br>';
$content .= '<img src="images/news.gif"><a
href="modules.php?name=News&new_topic=9">Для мобил</a><br>';
$content .= '<img src="images/news.gif"><a
href="modules.php?name=News&new_topic=5">Библиотека</a><br>';
$content .= '<img src="images/news.gif"><a
href="modules.php?name=News&new_topic=18">Юмор</a><br>';
$content .= '<img src="images/news.gif"><a
href="modules.php?name=News&new_topic=16">Графика</a><br>';
$content .= '<img src="images/news.gif"><a
href="modules.php?name=News&new_topic=8">Шрифты</a><br>';
$content .= '<img src="images/news.gif"><a
href="modules.php?name=News&new_topic=6">Скрпты</a><br>';
$content .= '<img src="images/news.gif"><a
href="modules.php?name=News&new_topic=7">Шаблоны</a><br>';
$content .= '<img src="images/news.gif"><a
href="modules.php?name=News&new_topic=10">Web</a><br>';
$content .= '<img src="images/news.gif"><a
href="modules.php?name=News&new_topic=11">Другое</a><br>';
$content .= '<img src="images/news.gif"><a
href="modules.php?name=Submit_News">Добавить новость</a><br>';
$content .= '<img src="images/contact.gif"><a
href="modules.php?name=Feedback">Контакты</a><br>';
$content = '<img src="images/Home.gif"><a href="forum">Форум</a><br>';
$content .= '<img src="images/en.png"><a [b]
href="en">English</a><br>';
$content .= '<img src="images/rss.jpg"><a
href="rss.php">RSS</a><br>';
$result = sql_query("SELECT mod_title, mod_custom_title FROM ".$prefix."_mods
WHERE mod_active='1' AND mod_in_block='1' ORDER BY mod_custom_title ASC",
$dbi);
while(list($m_title, $mod_custom_title) = sql_fetch_row($result))
{
$m_title2 = ereg_replace("_", " ", $m_title);
if ($mod_custom_title != "")
{
$m_title2 = $mod_custom_title;
}
$content .= '<strong><big>·</big></strong> <a
href="modules.php?name='.$m_title.'">'.$m_title2.'</a><br>';
}
if (is_admin())
{
$content .= "<br><center><b>"._INDEX5."</b><br>";
$result = sql_query("select mod_title, mod_custom_title from
".$prefix."_mods where mod_active='1' AND mod_in_block='0' ORDER BY mod_title
ASC", $dbi);
while(list($mn_title, $mod_custom_title) = sql_fetch_row($result)) {
$mn_title2 = ereg_replace("_", " ", $mn_title);
if ($mod_custom_title != "")
{ $mn_title2 = $mod_custom_title;
}
if ($mn_title2 != "")
{
$content .=
"<strong><big>·</big></strong> <a
href=\"modules.php?name=$mn_title\">$mn_title2</a><br>\n";
$dummy = 1;
}
else
{
$a = 1;
}
}
if ($a == 1 AND $dummy != 1)
{
$content .=
"<strong><big>·</big></strong> <i>"._INDEX7."</i><br>\n";
}
$content .= "<br><center><b>"._INDEX6."</b><br>";
$result = sql_query("select mod_title, mod_custom_title from
".$prefix."_mods where mod_active='0' ORDER BY mod_title ASC", $dbi);
while(list($mn_title, $mod_custom_title) = sql_fetch_row($result))
{
$mn_title2 = ereg_replace("_", " ", $mn_title);
if ($mod_custom_title != "")
{
$mn_title2 = $mod_custom_title;
}
if ($mn_title2 != "")
{
$content .=
"<strong><big>·</big></strong> <a
href=\"modules.php?name=$mn_title\">$mn_title2</a><br>\n";
$dummy = 1;
}
else
{
$a = 1;
}
}
if ($a == 1 AND $dummy != 1)
{
$content .=
"<strong><big>·</big></strong> <i>"._INDEX7."</i><br>\n";
}
}
?>