-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
executable file
·251 lines (195 loc) · 7.28 KB
/
index.php
File metadata and controls
executable file
·251 lines (195 loc) · 7.28 KB
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
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
<?PHP
# ad88888ba 88 88 88888888ba 88
#d8" "8b "" 88 88 "8b 88
#Y8, 88 88 ,8P 88
#`Y8aaaaa, 88 88,dPYba,,adPYba, 8b,dPPYba, 88 ,adPPYba, 88aaaaaa8P' ,adPPYYba, 8b,dPPYba, ,adPPYba, 88
# `"""""8b, 88 88P' "88" "8a 88P' "8a 88 a8P_____88 88""""""' "" `Y8 88P' `"8a a8P_____88 88
# `8b 88 88 88 88 88 d8 88 8PP""""""" 88 ,adPPPPP88 88 88 8PP""""""" 88
#Y8a a8P 88 88 88 88 88b, ,a8" 88 "8b, ,aa 88 88, ,88 88 88 "8b, ,aa 88
# "Y88888P" 88 88 88 88 88`YbbdP"' 88 `"Ybbd8"' 88 `"8bbdP"Y8 88 88 `"Ybbd8"' 88
# 88
# 88
# Simple content management.
# @author Yossi Neiman <saoron@gmail.com>
# @version 2.0 1-3-2013
# TO USE ON XX DOMAIN ONLY!!!
session_start();
require_once('class/class.include.php');
$dest = new getDestination($_SERVER['REQUEST_URI']);
require_once($dest.'config.php');
require_once($dest.'login/core.php');
//If user is not signed in refirect
if(!$user->signed) redirect($dest."login.php");
require_once($dest.'class/class.log.php');
$log = new Log($connection);
//stats
require_once($dest.'shadow/scraper/index.php');
?>
<!DOCTYPE html>
<!-- head meta -->
<?require_once(dirname(__FILE__) . "/shadow/ie/ie_fix_head.php");?>
<html lang="en">
<!--
<![endif]-->
<head>
<!-- head meta -->
<?require_once(dirname(__FILE__) . "/shadow/meta.php");?>
<!-- head js/css -->
<?
require_once(dirname(__FILE__) . "/shadow/head.php");
//custom header goes here $head_tag->insertHeader('...');
$head_tag->sendHeader();
?>
</head>
<body>
<header>
<!-- head -->
<?require_once(dirname(__FILE__) . "/shadow/header/header.php"); ?>
</header>
<div class="container-fluid">
<div class="dashboard-container">
<div class="dashboard-wrapper">
<div class="left-sidebar no-margin">
<!-- menu -->
<?require_once(dirname(__FILE__) . "/shadow/quick_menu/menu.php");?>
<!-- statistics widget -->
<?require_once(dirname(__FILE__) . "/shadow/statistics/home_widget/widget.php");?>
<div class="row-fluid">
<div class="span12">
<!-- wait list widget -->
<?require_once(dirname(__FILE__) . "/shadow/widgets/unactive_user_widget.php");?>
</div>
</div>
<div class="row-fluid">
<div class="span6">
<div class="widget">
<div class="widget-header">
<span class="tools">
<a class="fs1" aria-hidden="true" data-icon=""></a>
</span>
<div class="title">
Simple Log
</div>
</div>
<div class="widget-body">
<div class="todo-container">
<ul class="todo-list">
<li class="new">
<textarea name="slog" class="slog"><?=$log;?></textarea>
</li>
</ul>
</div>
</div>
</div>
</div>
<div class="span6">
<div class="widget">
<div class="widget-header">
<span class="tools">
<a class="fs1" aria-hidden="true" data-icon=""></a>
</span>
<div class="title">
פעולות אחרונות
</div>
</div>
<?require_once($dest.'shadow/widgets/changes_widget.php');?>
</div>
</div>
</div>
</div>
</div>
</div>
<!--/.fluid-container-->
</div>
<!--footer -->
<?require_once($dest.'shadow/footer/footer.php');?>
<script src="js/wysiwyg/wysihtml5-0.3.0.js">
</script>
<script src="js/jquery.min.js">
</script>
<script src="js/bootstrap.js">
</script>
<script src="js/wysiwyg/bootstrap-wysihtml5.js">
</script>
<script src="js/jquery.scrollUp.js">
</script>
<!-- Google Visualization JS -->
<script type="text/javascript" src="https://www.google.com/jsapi"> </script>
<!-- Easy Pie Chart JS -->
<script src="js/jquery.easy-pie-chart.js"> </script>
<!-- Sparkline JS -->
<script src="js/jquery.sparkline.js">
</script>
<!-- Tiny Scrollbar JS -->
<script src="js/tiny-scrollbar.js">
</script>
<script type="text/javascript">
//ScrollUp
$(function () {
$.scrollUp({
scrollName: 'scrollUp', // Element ID
topDistance: '300', // Distance from top before showing element (px)
topSpeed: 300, // Speed back to top (ms)
animation: 'fade', // Fade, slide, none
animationInSpeed: 400, // Animation in speed (ms)
animationOutSpeed: 400, // Animation out speed (ms)
scrollText: 'Scroll to top', // Text for element
activeOverlay: false, // Set CSS color to display scrollUp active point, e.g '#00FFFF'
});
});
//Google Visualiations
google.load("visualization", "1", {
packages: ["corechart"]
});
google.setOnLoadCallback(drawChart);
//Tooltip
$('a').tooltip('hide');
$('i').tooltip('hide');
//Tiny Scrollbar
$('#scrollbar').tinyscrollbar();
$('#scrollbar-one').tinyscrollbar();
$('#scrollbar-two').tinyscrollbar();
$('#scrollbar-three').tinyscrollbar();
//Tabs
$('#myTab a').click(function (e) {
e.preventDefault();
$(this).tab('show');
})
// SparkLine Graphs-Charts
$(function () {
$('#unique-visitors').sparkline('html', {
type: 'bar',
barColor: '#ed6d49',
barWidth: 6,
height: 30,
});
$('#monthly-sales').sparkline('html', {
type: 'bar',
barColor: '#74b749',
barWidth: 6,
height: 30,
});
$('#current-balance').sparkline('html', {
type: 'bar',
barColor: '#ffb400',
barWidth: 6,
height: 30,
});
$('#registrations').sparkline('html', {
type: 'bar',
barColor: '#0daed3',
barWidth: 6,
height: 30,
});
$('#site-visits').sparkline('html', {
type: 'bar',
barColor: '#f63131',
barWidth: 6,
height: 30,
});
});
//wysihtml5
$('#wysiwyg').wysihtml5();
</script>
</body>
</html>