-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathindex.php
121 lines (107 loc) · 4.35 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
<?php
/**
*
* @file index.php
* @brief генерация стартовой страницы сайта Avreg
*
* @mainpage AvregSite
*
* Веб-интерфейс
*
* Состоит из следующих частей:
* - @ref lib
* - @ref admin
* - @ref lang
* - @ref offline
* - @ref online
* - @ref pda
*
*/
session_start();
if (isset($_SESSION['is_admin_mode'])) {
unset($_SESSION['is_admin_mode']);
}
$NO_OB_END_FLUSH = true;
$USE_JQUERY = true;
$link_javascripts = array(
'index.js',
'lib/js/user_layouts.js',
'lib/js/third-party/json2.js'
);
require('./head.inc.php');
while (@ob_end_flush()) {
;
}
print '<table id="main_tab" width="860" height="500" cellspacing="20" border="0" cellpadding="0" align="center">' .
"\n";
print '<tbody>' . "\n";
print '<tr>' . "\n";
//pda
print '<td align="center" valign="top" nowrap class="main_td_ref" >' . "\n";
if ($allow_pda) {
print '<div style="position:relative;" ><div class="mode_item" style="position:absolute; " >' . "\n";
print '<a class="main_links" href="./pda/"><img src="./img/pda.gif" border="0px" /></a>' . "\n";
print '<p><a class="main_links" href="./pda/">PDA-версия</a></p>' . "\n";
print '</div ></div >' . "\n";
}
print '</td>' . "\n";
//online
print '<td align="center" valign="top" class="main_td_ref" >' . "\n";
print '<div style="position:relative;" ><div class="mode_item" style="position:absolute; " >' . "\n";
print '<a class="main_links" onclick="online(\'./online/index.php\');" href="#" title="' . $a_webcam . '"><img
src="./img/online.jpg" width="251" height="165" border="0"></a>' . "\n";
print '<p><a class="main_links" onclick="online(\'' . './online/index.php\');" href="#">' . $a_webcam . '</a></p>' .
"\n";
print '</div ></div >' . "\n";
print '</td>' . "\n";
//админка
print '<td align="center" valign="top" class="main_td_ref" >' . "\n";
if ($admin_user /* config.inc.php */) {
$href3 = sprintf($conf['prefix'] . '/admin/index.php?sip=%s&named=%s', $sip, $named);
print '<div style="position:relative;" ><div class="mode_item" style="position:absolute; " >' . "\n";
print '<a class="main_links" href="' . $href3 . '" title="' . $a_adminv . '"><img src="./img/admin.jpg"
width="251" height="165" border="0"></a>' . "\n";
print '<p align="center"><a class="main_links" href="' . $href3 . '">' . $a_adminv . '</a></p>' . "\n";
print '</div ></div >' . "\n";
} else {
print " \n";
}
print '</td>' . "\n";
print '</tr>' . "\n";
if ($arch_user) {
print '<tr>' . "\n";
//Архив :: поиск
print '<td align="center" valign="top" class="main_td_ref" >' . "\n";
print '<div style="position:relative;" ><div class="mode_item" style="position:absolute; " >' . "\n";
print '<a class="main_links" href="./offline/index.php" title="' . $a_archive . '"><img src="./img/offline.jpg"
width="251" height="165" border="0"></a>' . "\n";
print '<p><a class="main_links" href="./offline/index.php">' . $a_archive . '</a></p>' . "\n";
print '</div ></div >' . "\n";
print '</td>' . "\n";
//Архив :: плейлист
print '<td align="center" valign="top" class="main_td_ref" >' . "\n";
print '<div style="position:relative;" ><div class="mode_item" style="position:absolute; " >' . "\n";
print '<a class="main_links" href="./offline/playlist.php"><img src="./img/offline_playlist.jpg"
width="251" height="165" border="0"></a>' . "\n";
print '<p align="center"><a class="main_links" href="./offline/playlist.php">' . $a_archive_playlist . '</a></p>' .
"\n";
print '</div ></div >' . "\n";
print '</td>' . "\n";
//Gallery
print '<td align="center" valign="top" class="main_td_ref" >' . "\n";
print '<div style="position:relative;" ><div class="mode_item" style="position:absolute; " >' . "\n";
print '<a class="main_links" href="./offline/gallery.php"><img src="./img/offline_gallery.png"
width="251" height="165" border="0"></a>' . "\n";
print '<p align="center"><a class="main_links" href="./offline/gallery.php">' . $a_archive_gallery . '</a></p>' .
"\n";
print '</div ></div >' . "\n";
print '</td>' . "\n";
print '</tr>' . "\n";
}
print '</tbody>' . "\n";
print '</table>' . "\n";
if ($conf['debug']) {
tohtml($conf);
// phpinfo(INFO_VARIABLES);
}
require($wwwdir . '/foot.inc.php');