Привет, {$member_id['name']}!
HTML; if ($user_group[$member_id['user_group']]['allow_admin']) { $login_panel .= << HTML; } if($member_id['user_group'] == 1){ $row = $db->super_query("SELECT COUNT(*) as count FROM " . PREFIX . "_post where approve ='0'"); $moderate = << HTML; } else { $moderate=""; } $thistime = date ("Y-m-d H:i:s", (time()+ $config['date_adjust']*60)); if (isset($_SESSION['member_lasttime'])) $lasttime = date ("Y-m-d H:i:s", $_SESSION['member_lasttime']); else $lasttime = $thistime; $sql_count = "SELECT COUNT(*) as count FROM " . PREFIX . "_comments WHERE is_register = '1' AND " . PREFIX . "_comments.date between '$lasttime' and '$thistime'"; $row_count = $db->super_query($sql_count); $new_comm_num = $row_count['count']; $sql_count = "SELECT COUNT(*) as count FROM " . PREFIX . "_post where approve = '1' AND date between '$lasttime' and '$thistime'"; $row_count = $db->super_query($sql_count); $new_news_num = $row_count['count']; $login_panel .= << {$moderate}
Админцентр
Новых новостей ({$row[count]})
Мой профиль
Cообщения ({$member_id['pm_unread']} | {$member_id['pm_all']})
Мои закладки
Добавить новость
Завершить сеанс!
HTML; } else { $login_panel = <<
Логин
Пароль
 
Регистрация на сайте!
Забыли пароль?
HTML; } ?>1