Файл: DARK WARS/dark_war/index.php
Строк: 36
<?php
include_once 'start.php';
$doc = new document();
$doc->title('Главная');
//$dispatch = array();
if($player->tutorial == 1){
$termenter = tutorial();
$dispatch[] = array ('title' => $termenter['title'], 'descrip' => $termenter['text']);}
if (mysql_result(mysql_query("SELECT COUNT(*) FROM `dark_war_news` WHERE `time_main` > '".TIME."'"), 0)) {
$news = mysql_fetch_assoc(mysql_query("SELECT * FROM `dark_war_news` WHERE `time_main` > '".TIME."' ORDER BY `id` DESC LIMIT 1"));
$title = "<span style='color:#FF0000;'>$news[name]</span>";
$des = text::length(text::opis($news['description']), 200);
$des .= "<br /> <a href='/dark_war/news/view.php?id=$news[id]'>Перейти в новость</a>";
$dispatch[] = array ('title' => $title, 'descrip' => $des);
$doc->assign('post', $dispatch);
$doc->display('view_list_plus_img.tpl');
}
$ind = ini::array_ini('files_ini/my_index.ini', true);
foreach ($ind as $key => $val) {
$dispatch[] = array ('title' => $key, 'img' => $val['img'], 'link' => $val['link'], 'ico_size' => $val['ico_size']);
}
if($player->admin > 0)
$dispatch[] = array ('title' => 'ДОБАВИТЬ', 'link' => 'add_monster.php');
$doc->assign('post', $dispatch);
$doc->display('view_list_plus_img.tpl');
?>