-
Notifications
You must be signed in to change notification settings - Fork 1
/
crawl_separate.php
339 lines (337 loc) · 16.2 KB
/
crawl_separate.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
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
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
<?php
session_start();
//
include("inc/dashboard_config.php");
include_once("inc/header_info.php");
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="utf-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Uniwebif : Crawl channel separate</title>
<!-- BOOTSTRAP STYLES-->
<link href="assets/css/bootstrap.css" rel="stylesheet" />
<!-- FONTAWESOME STYLES-->
<link href="assets/css/font-awesome.css" rel="stylesheet" />
<!-- CUSTOM STYLES-->
<link href="assets/css/custom.css" rel="stylesheet" />
<!-- Modal-->
<link href="assets/css/rmodal-no-bootstrap.css" rel="stylesheet" />
<!-- Noty-->
<link href="assets/css/noty/noty.css" rel="stylesheet" />
<link href="assets/css/noty/animate.css" rel="stylesheet" />
<link href="assets/css/noty/themes/mint.css" rel="stylesheet" />
<!-- favicon -->
<link rel="apple-touch-icon" sizes="180x180" href="images/icon/apple-touch-icon.png">
<link rel="icon" type="image/png" sizes="32x32" href="images/icon/favicon-32x32.png">
<link rel="icon" type="image/png" sizes="16x16" href="images/icon/favicon-16x16.png">
<link rel="manifest" href="images/icon/manifest.json">
<link rel="mask-icon" href="images/icon/safari-pinned-tab.svg" color="#5bbad5">
<meta name="theme-color" content="#ffffff">
<!-- GOOGLE FONTS-->
<!--<link href='http://fonts.googleapis.com/css?family=Open+Sans' rel='stylesheet' type='text/css' />-->
<script type="text/javascript" src="js/jquery-1.10.2.min.js"></script>
<script type="text/javascript" src="js/functions.js"></script>
<script type="text/javascript" src="js/pace.min.js"></script>
<script type="text/javascript" src="js/animatedcollapse.js">
/***********************************************
* Animated Collapsible DIV v2.4- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* Please keep this notice intact
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/
</script>
<script type="text/javascript">
animatedcollapse.addDiv('div_crawl_complete', 'fade=1,speed=400,height=auto')
animatedcollapse.addDiv('crawl_complete_status', 'fade=1,height=auto')
animatedcollapse.addDiv('div_crawl_channel_id', 'fade=1,speed=400,height=auto')
animatedcollapse.addDiv('crawl_channel_id_status', 'fade=1,height=auto')
animatedcollapse.addDiv('div_crawl_search', 'fade=1,speed=400,height=auto')
animatedcollapse.addDiv('crawl_search_status', 'fade=1,height=auto')
animatedcollapse.addDiv('div_send_timer', 'fade=1,speed=400,height=auto')
animatedcollapse.addDiv('send_timer_status', 'fade=1,height=auto')
animatedcollapse.addDiv('div_start_channelzapper', 'fade=1,speed=400,height=auto')
animatedcollapse.addDiv('channelzapper_status', 'fade=1,height=auto')
animatedcollapse.addDiv('single_channel_panel', 'fade=1,height=auto')
animatedcollapse.ontoggle=function($, divobj, state){ //fires each time a DIV is expanded/contracted
//$: Access to jQuery
//divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
//state: "block" or "none", depending on state
}
animatedcollapse.init()
</script>
</head>
<body>
<a id="top"></a>
<div id="scroll_top" class="scroll_top"><a href="#" title="top"><script>document.write("<i class=\"glyphicon glyphicon-circle-arrow-up fa-"+scrolltop_btn_size+"x\"></i>");</script></a></div>
<!--statusbar modal -->
<span id="showModal"></span>
<div id="bn_epg_modal" class="modal">
<div class="modal-dialog animated">
<div class="modal-content">
<div id="bn-modal-header" class="modal-header"></div>
<div class="modal-body">
<div id="bn_epgframe"></div>
<hr>
<div align="right">
<button class="btn btn-default btn-sm" type="button" onclick="bn_epg_modal.close();">Close</button>
</div>
</div>
</div>
</div>
</div>
<span id="bn_modal_service" style="display:none"></span>
<span id="bn_modal_name" style="display:none"></span>
<!--broadcast now modal -->
<!--quickpanel modal -->
<span id="showModal"></span>
<div id="quickpanel_modal" class="modal">
<div class="modal-dialog animated">
<div class="modal-content">
<div id="quickpanel-modal-header" class="modal-header"></div>
<div class="modal-body">
<div id="quickpanel_epgframe"></div>
<hr>
<div align="right">
<button class="btn btn-default btn-sm" type="button" onclick="quickpanel_modal.close();">Close</button>
</div>
</div>
</div>
</div>
</div>
<!--quickpanel modal -->
<!--manual timer modal -->
<span id="showModal"></span>
<div id="manual_timer_modal" class="modal">
<div class="modal-dialog animated">
<div class="modal-content">
<div id="timer-modal-header" class="modal-header">Manual timer</div>
<div class="modal-body">
<div id="quickpanel_timerframe"></div>
<hr>
<div align="right">
<button class="btn btn-default btn-sm" type="button" onclick="manual_timer_modal.close();">Close</button>
</div>
</div>
</div>
</div>
</div>
<!--manual timer modal -->
<!--remote control modal -->
<span id="showModal"></span>
<div id="remote_modal" class="modal_rc">
<div class="modal-dialog animated">
<div class="modal-content">
<div class="modal-header">Remote Control <span id="rc_status"><i class="fa fa-wifi gray"></i></span>
</div>
<div class="modal-body">
<div id="rc_frame"></div>
<hr>
<div align="right">
<button class="btn btn-default btn-sm" type="button" onclick="remote_modal.close();">Close</button>
</div>
</div>
</div>
</div>
</div>
<!--remote control modal -->
<div id="wrapper">
<div class="navbar navbar-inverse navbar-fixed-top">
<div class="adjust-nav">
<div class="navbar-header">
<button type="button" class="navbar-toggle" onclick="nav_icon_scroll()" data-toggle="collapse" data-target=".sidebar-collapse"> <span class="icon-bar"></span> <span class="icon-bar"></span> <span class="icon-bar"></span> </button>
<span class="navbar-brand"><span style="font-size:1.1em; color:#000; cursor:pointer;" onclick="remote_modal.open();" title="Remote Control"><i class="fa fa-wifi fa-1x"></i></span> <a class="navbar-link" href="crawl_separate.php">Crawler</a></span> </div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<div class="row">
<div class="col-md-12">
<div id="navbar_info">oldest: <span class="badge"><?php echo $date_first; echo ' - '; echo utf8_encode($first_entry['e2eventservicename']); ?></span> latest: <span class="badge-success"><?php echo $date_latest; echo ' - '; echo utf8_encode($last_entry['e2eventservicename']); ?></span> <?php echo $header_date; ?></div>
<!--navbar_info-->
</div>
</div>
</ul>
</div>
</div>
</div>
<!-- /. NAV TOP -->
<nav class="navbar-default navbar-side" role="navigation">
<div class="sidebar-collapse">
<ul class="nav" id="main-menu">
<script>document.write(navbar_header_crawl_separate)</script>
<li> <a href="dashboard.php"><i class="fa fa-home"></i>HOME</a> </li>
<li> <a href="search.php"><i class="fa fa-search"></i>Search</a> </li>
<li> <a href="timer.php"><i class="fa fa-clock-o"></i>Timer & Saved Search</a> </li>
<li class="active"> <a href="#"><i class="fa fa-wrench"></i>Crawler Tools<span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li> <a href="crawl_separate.php"><i class="fa fa-chevron-right"></i><strong>Crawl channel separate</strong></a> </li>
<li> <a href="#" onclick="animatedcollapse.toggle('div_crawl_channel_id');"><i class="fa fa-chevron-right"></i>Crawl channel ID's</a> </li>
<li> <a href="#" onclick="animatedcollapse.toggle('div_crawl_complete');"><i class="fa fa-chevron-right"></i>Crawl EPG from channels</a> </li>
<li> <a href="#" onclick="animatedcollapse.toggle('div_crawl_search');"><i class="fa fa-chevron-right"></i>Crawl Search - Write timer in database</a></li>
<li> <a href="#" onclick="animatedcollapse.toggle('div_send_timer');"><i class="fa fa-chevron-right"></i>Send timer from database to Receiver</a> </li>
</ul>
</li>
<li role="presentation"> <a href="#"><i class="fa fa-cog"></i>Settings<span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li> <a href="settings.php"><i class="fa fa-cog"></i>Main Settings</a> </li>
<li> <a href="channel_list.php"><i class="fa fa-list"></i>Channel list</a> </li>
<li> <a href="bouquet_list.php"><i class="fa fa-list"></i>Bouquet list</a> </li>
<li> <a href="ignore_list.php"><i class="fa fa-list"></i>Ignore list</a> </li>
</ul>
</li>
<li> <a href="records.php"><i class="glyphicon glyphicon-record"></i>Records</a> </li>
<li> <a id="116" onclick="power_control(this.id)" style="cursor:pointer;"> <i class="glyphicon glyphicon-off"></i>Wake up / Standby <span id="pc116"></span></a> </li>
<li> <a href="#"><i class="glyphicon glyphicon-hand-right"></i>Extras<span class="fa arrow"></span></a>
<ul class="nav nav-second-level">
<li> <a href="services.php"><i class="fa fa-list"></i>All Services</a> </li>
<li> <a onclick="remote_modal.open();" style="cursor:pointer;"><i class="fa fa-table"></i>Remote Control</a> </li>
<li> <a href="teletext.php"><i class="fa fa-globe"></i>Teletext Browser</a> </li>
<li> <a href="#" onclick="animatedcollapse.toggle('div_start_channelzapper');"> <i class="fa fa-arrow-up"></i>Channel Zapper</a> </li>
<li> <a href="install.php"><i class="fa fa-wrench"></i>Install</a> </li>
<li> <a href="about.php"><i class="glyphicon glyphicon-question-sign"></i>About</a> </li>
</ul>
</li>
<li class="quickpanel_inc" id="quickpanel_inc"></li>
</ul>
</div>
</nav>
<!-- /. NAV SIDE -->
<div id="page-wrapper">
<div class="row">
<div class="col-md-12">
<div id="statusbar_outer" class="statusbar_outer">
<div id="statusbar_cnt"> </div>
</div>
</div>
</div><!-- /. ROW -->
<div id="page-inner">
<div class="row">
<div id="cookie_js" class="col-md-12" style="color:#FF0000;">
<noscript>To use all functions of the website, it's required to activate JavaScript.</noscript>
</div>
</div>
<div class="row">
<div class="col-md-12">
<h2>Crawl channel separate</h2>
</div>
</div>
<!--crawl channel id-->
<div id="div_crawl_channel_id">
<span class="panel-close" onclick="animatedcollapse.hide('div_crawl_channel_id')"><span aria-hidden="true">x</span></span>
<h1>Crawl channel ID's</h1>
<input type="submit" class="btn btn-success" id="crawl_channel_id_btn" value="Click to confirm" onclick="animatedcollapse.show('crawl_channel_id_status'); crawl_channel_id();">
<div id="crawl_channel_id_status"><img src="images/loading.gif" width="16" height="16" align="absmiddle"> </div>
<!--crawl channel id-->
</div>
<!--crawl complete-->
<div id="div_crawl_complete">
<span class="panel-close" onclick="animatedcollapse.hide('div_crawl_complete')"><span aria-hidden="true">x</span></span>
<h1>Crawl EPG from channels</h1>
<input type="submit" class="btn btn-success" id="crawl_complete_btn" value="Click to confirm" onclick="animatedcollapse.show('crawl_complete_status'); crawl_complete();">
<div id="crawl_complete_status"><img src="images/loading.gif" width="16" height="16" align="absmiddle"> </div>
<!--status-->
</div>
<!--crawl complete-->
<!--crawl saved search-->
<div id="div_crawl_search">
<span class="panel-close" onclick="animatedcollapse.hide('div_crawl_search')"><span aria-hidden="true">x</span></span>
<h1>Crawl Search - Write timer in database</h1>
<input type="submit" class="btn btn-success" id="crawl_search_btn" value="Click to confirm" onclick="animatedcollapse.show('crawl_search_status'); crawl_saved_search();">
<div id="crawl_search_status"><img src="images/loading.gif" width="16" height="16" align="absmiddle"> </div>
<!--status-->
</div>
<!--crawl saved search-->
<!--send timer-->
<div id="div_send_timer">
<span class="panel-close" onclick="animatedcollapse.hide('div_send_timer')"><span aria-hidden="true">x</span></span>
<h1>Send timer from database to Receiver</h1>
<input type="submit" class="btn btn-success" id="send_timer_btn" value="Click to confirm" onclick="animatedcollapse.show('send_timer_status'); send_timer();">
<div id="send_timer_status"><img src="images/loading.gif" width="16" height="16" align="absmiddle"> </div>
<!--status-->
</div>
<!--send timer-->
<!--channelzapper-->
<div id="div_start_channelzapper">
<span class="panel-close" onclick="animatedcollapse.hide('div_start_channelzapper')"><span aria-hidden="true">x</span></span>
<h1>Start Channel Zapper</h1>
<input type="submit" class="btn btn-success" id="start_channelzapper_btn" value="Click to confirm" onclick="animatedcollapse.show('channelzapper_status'); start_channelzapper();">
<div id="channelzapper_status"><img src="images/loading.gif" width="16" height="16" align="absmiddle"> </div>
<!--status-->
</div>
<!--channelzapper-->
<hr />
<button class="btn btn-default" onClick="show_panel();" data-toggle="tab">Show single channel</button>
<button class="btn btn-default" onClick="show_all();" data-toggle="tab">Show all channels</button>
<hr>
<div id="single_channel_panel" style="display:none;">
<div class="spacer_10"></div>
<div class="row">
<div class="col-md-4">
<select name="channel_id" id="channel_id" class="form-control">
<?php
// channel dropdown
$sql = "SELECT * FROM `channel_list` WHERE `e2providername` NOT LIKE 'IPTV;' ORDER BY e2servicename ASC";
if ($result = mysqli_query($dbmysqli,$sql))
{
while ($obj = mysqli_fetch_object($result)) {
{
echo utf8_encode("<option value='$obj->e2servicereference'>$obj->e2servicename</option>
"); }
}
}
?>
</select>
<div class="spacer_10"></div>
</div>
<div class="col-md-5">
<button class="btn btn-default rec_location_btn" onClick="show_single_data();" data-toggle="tab">Get data</button>
</div>
<div class="col-md-3"></div>
</div>
<!-- /. ROW -->
<hr>
</div><!-- panel -->
<div class="row">
<div class="col-md-12">
<div id="channel_list">
<div id="crawl_separate_list"></div>
</div>
<!-- Channel list -->
</div>
</div>
<!-- /. ROW -->
<!--<hr />-->
<!-- /. ROW -->
<div class="row">
<div class="col-md-12"></div>
</div>
<!-- /. ROW -->
</div>
<!-- /. PAGE INNER -->
</div>
<!-- /. PAGE WRAPPER -->
</div>
<!-- /. WRAPPER -->
<!-- SCRIPTS -AT THE BOTOM TO REDUCE THE LOAD TIME-->
<!-- BOOTSTRAP SCRIPTS -->
<script src="assets/js/bootstrap.min.js"></script>
<!-- METISMENU SCRIPTS -->
<script src="assets/js/jquery.metisMenu.js"></script>
<!-- CUSTOM SCRIPTS -->
<script src="assets/js/custom.js"></script>
<!-- Noty -->
<script src="js/noty.min.js"></script>
<script src="js/noty-msg.js"></script>
<!-- Modal-->
<script type="text/javascript" src="js/rmodal.js"></script>
<!---->
<script>
$(function(){
var statusbar = '<?php if(!isset($_SESSION['statusbar']) or $_SESSION['statusbar'] == ''){ $_SESSION['statusbar'] = ''; } echo $_SESSION['statusbar']; ?>';
if (statusbar == '1'){ $("#statusbar_outer").removeClass("statusbar_outer"); }
//
var cookies = navigator.cookieEnabled;
if(cookies == false){ $("#cookie_js").html("To use all functions of the website, it's required to accept cookies."); }
});
</script>
</body>
</html>