-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathindex.php
154 lines (139 loc) · 5.58 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
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
<?php
/**
* ------- U-232 Codename Trinity ----------*
* ---------------------------------------------*
* -------- @authors U-232 Team --------------*
* ---------------------------------------------*
* ----- @site https://u-232.duckdns.org/ ----*
* ---------------------------------------------*
* ----- @copyright 2020 U-232 Team ----------*
* ---------------------------------------------*
* ------------ @version V6 ------------------*
*/
require_once(__DIR__.DIRECTORY_SEPARATOR.'include'.DIRECTORY_SEPARATOR.'bittorrent.php');
require_once INCL_DIR.'user_functions.php';
require_once INCL_DIR.'bbcode_functions.php';
require_once INCL_DIR.'html_functions.php';
require_once ROOT_DIR.'polls.php';
require_once(CLASS_DIR.'class_user_options.php');
require_once(CLASS_DIR.'class_user_options_2.php');
dbconn(true);
loggedinorreturn();
require_once(TEMPLATE_DIR.''.$CURUSER['stylesheet'].''.DIRECTORY_SEPARATOR.'html_functions'.DIRECTORY_SEPARATOR.'global_html_functions.php');
require_once(TEMPLATE_DIR.''.$CURUSER['stylesheet'].''.DIRECTORY_SEPARATOR.'html_functions'.DIRECTORY_SEPARATOR.'navigation_html_functions.php');
$stdhead = [
/** include css **/
'css' => [
'bbcode',
],
];
$stdfoot = [
/** include js **/
'js' => [
/*'gallery',*/
'shout'
],
];
$lang = array_merge(load_language('global'), load_language('index'), load_language('chat'));
$HTMLOUT = '';
//==Global blocks by elephant
//==Curuser blocks by pdq
if (curuser::$blocks['index_page'] & block_index::IE_ALERT && $BLOCKS['ie_user_alert']) {
$HTMLOUT .= "<div id='IE_ALERT'>";
require_once(BLOCK_DIR.'index/ie_user.php');
$HTMLOUT .= "</div>";
}
if (curuser::$blocks['index_page'] & block_index::ANNOUNCEMENT && $BLOCKS['announcement_on']) {
$HTMLOUT .= "<div id='ANNOUNCEMENT'>";
require_once(BLOCK_DIR.'index/announcement.php');
$HTMLOUT .= "</div>";
}
if (curuser::$blocks['index_page'] & block_index::SHOUTBOX && $BLOCKS['shoutbox_on']) {
$HTMLOUT .= "<div id='SHOUTBOX'>";
require_once(BLOCK_DIR.'index/shoutbox.php');
$HTMLOUT .= "</div>";
}
/*
if (curuser::$blocks['index_page'] & block_index::SHOUTBOX && $BLOCKS['shoutbox_on']) {
$HTMLOUT .= "<div id='SHOUTBOX'>";
if ($CURUSER['chatpost'] == 1) {
require_once(BLOCK_DIR.'index/shoutbox.php');
} else {
$HTMLOUT .= "<div class='callout success'><h1 class='text-center' style='font-size: 1.50rem;'><b>You are banned on chat.</b></h1></div>";
}
$HTMLOUT .= "</div>";
}
*/
if (curuser::$blocks['index_page'] & block_index::NEWS && $BLOCKS['news_on']) {
$HTMLOUT .= "<div id='NEWS'>";
require_once(BLOCK_DIR.'index/news.php');
$HTMLOUT .= "</div>";
}
if (curuser::$blocks['index_page'] & block_index::ADVERTISEMENTS && $BLOCKS['ads_on']) {
$HTMLOUT .= "<div id='ADVERTISEMENTS'>";
require_once(BLOCK_DIR.'index/advertise.php');
$HTMLOUT .= "</div>";
}
if (curuser::$blocks['index_page'] & block_index::FORUMPOSTS && $BLOCKS['forum_posts_on']) {
$HTMLOUT .= "<div id='FORUMPOSTS'>";
require_once(BLOCK_DIR.'index/forum_posts.php');
$HTMLOUT .= "</div>";
}
if (curuser::$blocks['index_page'] & block_index::REQNOFF && $BLOCKS['requests_and_offers_on']) {
$HTMLOUT .= "<div id='REQUESTS_AND_OFFERS'>";
require_once(BLOCK_DIR.'index/req_n_off.php');
$HTMLOUT .= "</div>";
}
if (curuser::$blocks['index_page'] & block_index::STATS && $BLOCKS['stats_on']) {
$HTMLOUT .= "<div id='STATS'>";
require_once(BLOCK_DIR.'index/stats.php');
$HTMLOUT .= "</div>";
}
if (curuser::$blocks['index_page'] & block_index::ACTIVE_USERS && $BLOCKS['active_users_on']) {
$HTMLOUT .= "<div id='ACTIVE_USERS'>";
require_once(BLOCK_DIR.'index/active_users.php');
$HTMLOUT .= "</div>";
}
if (curuser::$blocks['index_page'] & block_index::LAST_24_ACTIVE_USERS && $BLOCKS['active_24h_users_on']) {
$HTMLOUT .= "<div id='LAST_24_ACTIVE_USERS'>";
require_once(BLOCK_DIR.'index/active_24h_users.php');
$HTMLOUT .= "</div>";
}
$HTMLOUT .= "<div class='grid-x grid-margin-x' data-equalizer data-equalize-on='medium' id='test-eq'>";
if (curuser::$blocks['index_page'] & block_index::BIRTHDAY_ACTIVE_USERS && $BLOCKS['active_birthday_users_on']) {
require_once(BLOCK_DIR.'index/active_birthday_users.php');
}
if (curuser::$blocks['index_page'] & block_index::LATEST_USER && $BLOCKS['latest_user_on']) {
require_once(BLOCK_DIR.'index/latest_user.php');
}
if (curuser::$blocks['index_page'] & block_index::DONATION_PROGRESS && $BLOCKS['donation_progress_on']) {
require_once(BLOCK_DIR.'index/donations.php');
}
$HTMLOUT .= "</div>";
if (curuser::$blocks['index_page'] & block_index::ACTIVE_POLL && $BLOCKS['active_poll_on']) {
$HTMLOUT .= "<div id='ACTIVE_POLL'>";
require_once(BLOCK_DIR.'index/poll.php');
$HTMLOUT .= "</div>";
}
if (curuser::$blocks['index_page'] & block_index::XMAS_GIFT && $BLOCKS['xmas_gift_on']) {
$HTMLOUT .= "<div id='XMAS_GIFT'>";
require_once(BLOCK_DIR.'index/gift.php');
$HTMLOUT .= "</div>";
}
/*
if (curuser::$blocks['index_page'] & block_index::RADIO && $BLOCKS['radio_on']) {
$HTMLOUT .="<div id='RADIO'>";
require_once (BLOCK_DIR . 'index/radio.php');
$HTMLOUT .="</div>";
}
*/
if (curuser::$blocks['index_page'] & block_index::TORRENTFREAK && $BLOCKS['torrentfreak_on']) {
$HTMLOUT .= "<div id='TORRENTFREAK'>";
require_once(BLOCK_DIR.'index/torrentfreak.php');
$HTMLOUT .= "</div>";
}
if (curuser::$blocks['index_page'] & block_index::DISCLAIMER && $BLOCKS['disclaimer_on']) {
require_once(BLOCK_DIR.'index/disclaimer.php');
}
echo stdhead('Home', true, $stdhead).$HTMLOUT.stdfoot($stdfoot);
?>