Файл: vsime.com/system/start/diary.php
Строк: 57
<?
if (isset($start_page))
{
echo "<div class='list'>n";
if (isset($settings))
{
echo "<span class='right'>n";
echo "<a href='?act=start&up=$post[id]&mdp=$mdp'>$config[code_up]</a> <a href='?act=start&down=$post[id]&mdp=$mdp'>$config[code_down]</a> <a href='?act=start&delete=$post[id]'>$config[code_delete]</a> <a href='?act=start&edit=$post[id]'>$config[code_edit]</a>n";
echo "</span>n";
}
echo "<img src='/i/site/diary.png' /> <a href='/diary/?act=user&id=$user[id]'>Мой дневник</a> ";
$ank = $user;
include(H.'diary/count_user.php');
echo " | <a href='/diary/?act=create'>Написать</a><br />n";
if (isset($settings))
{
$count = mysqli_result("SELECT COUNT(*) FROM `start_user` WHERE `id_start` = '$post[id]'");
if ($count > 0)echo "<span style='font-size: 11px;'>Стоит у ".sklon_text($count, array('человека','человек','человек'))."<br />n";
}
echo "</div>n";
} elseif (isset($submited)) {
} elseif (isset($settings_user)) {
echo "<div class='$div'>n";
if ($div=='list')
{
echo "<span class='right'>n";
echo "<a href='?act=settings&add=$post[id]&mdp=$mdp'>$config[code_add]</a>n";
echo "</span>n";
}
echo "<img src='/i/site/diary.png' /> Мой дневник<br />n";
echo "</div>n";
} elseif (isset($add)) {
mysqli_query($dbi, "INSERT INTO `start_user` SET `id_user` = '$user[id]', `id_start` = '$start[id]', `pos` = '$pos'");
} else {
echo "<div class='list'>n";
echo "<span class='right'>n";
echo "<a href='?act=settings&up=$post[id]&mdp=$mdp'>$config[code_up]</a> <a href='?act=settings&down=$post[id]&mdp=$mdp'>$config[code_down]</a> <a href='?act=settings&delete=$post[id]&mdp=$mdp'>$config[code_delete]</a>n";
echo "</span>n";
echo "<img src='/i/site/diary.png' /> Дневник<br />n";
echo "</div>n";
}
?>