query("SET NAMES ? ",$database['db_encoding']); $adb->setErrorHandler("databaseErrorHandler"); $lang = getVar('lang', 'ru', 5); $lang = ($lang == 'ru' || $lang == 'en') ?$lang :'ru'; $cat = getVar('cat', 1, 5); $cat = ($adb->selectRow("SELECT `id`, `main`, `name`, `text` FROM ?# WHERE `id` = ?d", "forum_menu_$lang", $cat)) ?$cat :1; $cat = ($cat == 2 && $lang == 'ru') ?28 :$cat; setCookie('lang', $lang, time() + 3600); setCookie('cat', $cat, time() + 3600); ?> Анти Бойцовский Клуб RU | EN" :"RU | EN"; $lang = $adb->selectCol("SELECT `key` AS ARRAY_KEY, ?# FROM `forum_language`;", $lang); $cat = $adb->selectRow("SELECT `id`, `main`, `prev`, `name`, `text` FROM ?# WHERE `id` = ?d", $forum_menu, $cat); if (isset($_SESSION['guid'])) $char = Char::initialization($_SESSION['guid'], $adb); ?>

getLogin() :$lang['nologin'];?>



select("SELECT `id`, `name` FROM ?# WHERE `main` = '0';", $forum_menu); foreach ($cats as $category) { echo "     $category[name]
"; if ($cat['id'] == $category['id'] || $cat['main'] == $category['id']) { $scats = $adb->select("SELECT `id`, `name` FROM ?# WHERE `prev` = ?d", $forum_menu, $category['id']); foreach ($scats as $scat) { echo "          $scat[name]
"; if ($cat['id'] == $scat['id'] || $cat['main'] == $scat['id'] || $cat['prev'] == $scat['id']) { $sscats = $adb->select("SELECT `id`, `name` FROM ?# WHERE `prev` = ?d", $forum_menu, $scat['id']); foreach ($sscats as $sscat) echo "               $sscat[name]
"; } } } } ?>






$lang[conf] \"$cat[name]\"" . "

$cat[text]

" . "
$lang[rss] "; ?>





$lang[image] " . "" . ""; } ?> select("SELECT `text`, `atext`, `img` FROM `forum_smiles`;"); $i = 0; foreach ($smiles as $smile) { $i++; echo "" . "" . ""; if ($i == 3) { $i = 0; echo ""; } } ?>
$lang[text] $lang[atext]
$smile[text]$smile[atext]