forked from ua0sqq/dcms-social-next
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathindex.php
67 lines (65 loc) · 1.77 KB
/
index.php
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
<?php
include_once 'sys/inc/start.php';
include_once 'sys/inc/sess.php';
include_once 'sys/inc/home.php';
include_once 'sys/inc/settings.php';
include_once 'sys/inc/db_connect.php';
include_once 'sys/inc/ipua.php';
include_once 'sys/inc/fnc.php';
include_once 'sys/inc/user.php';
include_once 'sys/inc/icons.php'; // Иконки главного меню
include_once 'sys/inc/thead.php';
title();
err();
if (!$set['web'])
{
$cnt = $db->query(
'SELECT * FROM (
SELECT COUNT(*) online_user FROM `user` WHERE `date_last` > ?i)q, (
SELECT COUNT(*) online_guest FROM `guests` WHERE `date_last` > ?i AND `pereh` >0)q2',
[(time()-600),(time()-600)])->row();
?>
<div class="title">
<center>
<a href="/online.php" title="онлайн" style="color:#cdcecf; text-decoration: none">
<font color="#fee300" size="2">Онлайн </font>
<font color="#ffffff"><?= $cnt['online_user'];?></font>
</a>
<font color="#fee300" size="2"> (</font>
<font color="#ffffff">+<?= $cnt['online_guest'];?></font>
<font color="#fee300" size="2"> гостей )</font>
</center>
</div>
<div class='main_menu'>
<?php
if (isset($user))
{
?>
<div align="right">
<img src="/style/icons/icon_stranica.gif" alt="DS" />
<?=user::nick($user['id'])?> | <a href="exit.php"><font color="#ff0000">Выход</font></a>
</div>
<?php
}
else
{
?>
<div align="right">
<a href="/aut.php">Вход</a> | <a href="/reg.php">Регистрация</a>
</div>
<?php
}
?></div><?php
// новости
include_once 'sys/inc/news_main.php';
// главное меню
include_once 'sys/inc/main_menu.php';
include_once H.'sys/inc/main_notes.php';
}
else
{
// главная web темы
include_once 'style/themes/' . $set['set_them'] . '/index.php';
}
include_once 'sys/inc/tfoot.php';
?>