-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.php
More file actions
357 lines (348 loc) · 15.7 KB
/
install.php
File metadata and controls
357 lines (348 loc) · 15.7 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
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
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
<!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 : Installation</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" />
<!-- 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/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('sql_done', 'fade=1,speed=400,height=auto')
animatedcollapse.addDiv('receiver_settings', 'fade=1,speed=400,height=auto')
animatedcollapse.addDiv('steps', 'fade=1,speed=400,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>
<script>
function save_sql(){
var sql_host = $("#sql_host").val();
var sql_user = $("#sql_user").val();
var sql_pass = $("#sql_pass").val();
$("#sql_status").html("<img src=\"images/loading.gif\" width=\"16\" height=\"16\" align=\"absmiddle\">");
$.post("functions/install_inc.php",
{
setting: 'sql',
sql_host: sql_host,
sql_user: sql_user,
sql_pass: sql_pass
},
function(data){
$("#sql_status").html(data);
if (data == 'Connection OK!'){
animatedcollapse.show('receiver_settings');
}
});
}
//
function save_receiver(){
var receiver_ip = $("#receiver_ip").val();
var receiver_user = $("#receiver_user").val();
var receiver_pass = $("#receiver_pass").val();
$("#receiver_status").html("<img src=\"images/loading.gif\" width=\"16\" height=\"16\" align=\"absmiddle\">");
$.post("functions/install_inc.php",
{
setting: 'receiver',
receiver_ip: receiver_ip,
receiver_user: receiver_user,
receiver_pass: receiver_pass
},
function(data){
$("#receiver_status").html(data);
if (data == 'Connection OK!'){
animatedcollapse.show('sql_done');
}
});
}
//
function install(){
var receiver_ip = $("#receiver_ip").val();
var receiver_user = $("#receiver_user").val();
var receiver_pass = $("#receiver_pass").val();
var server_ip = $("#server_ip").val();
var script_folder = $("#script_folder").val();
$("#install_status").html("<img src=\"images/loading.gif\" width=\"16\" height=\"16\" align=\"absmiddle\">");
$.post("functions/install_inc.php",
{
setting: 'install',
receiver_ip: receiver_ip,
receiver_user: receiver_user,
receiver_pass: receiver_pass,
server_ip: server_ip,
script_folder: script_folder
},
function(data){
$("#install_status").html(data);
if (data == 'SQL Installation OK!'){
animatedcollapse.show('steps');
}}
);}
</script>
</head>
<body>
<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>
<a class="navbar-brand" href="install.php"><i class="fa fa-square-o"></i> Setup</a> </div>
<div class="navbar-collapse collapse">
<ul class="nav navbar-nav navbar-right">
<div class="row"> </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">
<li class="nav-header">
<div id="nav-header"><i class="fa fa-wrench fa-3-5x"></i> </div>
</li>
<li> <a href="install.php"><i class="fa fa-wrench"></i><strong>Install</strong></a> </li>
</ul>
</div>
</nav>
<!-- /. NAV SIDE -->
<div id="page-wrapper">
<div class="row">
<div class="col-md-12">
<div id="statusbar_cnt_outer" class="statusbar_cnt_outer">
<div id="statusbar_cnt"></div>
</div>
</div>
</div>
<!-- /. ROW -->
<div id="page-inner">
<div class="row">
<div class="col-md-12">
<h2>Install</h2>
</div>
</div>
<!--crawl channel id-->
<div id="div_crawl_channel_id">
<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>
<!--status-->
</div>
<!--div_crawl_complete-->
<!--crawl complete-->
<div id="div_crawl_complete">
<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>
<!--div_crawl_complete-->
<!--crawl mysearch id-->
<div id="div_crawl_search">
<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>
<!--div_mysearch-->
<!--send timer-->
<div id="div_send_timer">
<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">
<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>
<!--div_channelzapper-->
<hr />
<div class="row">
<div class="col-md-12" align="center"> <span>allow_url_fopen =
<?php if(!ini_get("allow_url_fopen") ) {
echo "not activated <i class=\"glyphicon glyphicon-remove fa-1x\" style=\"color:#D9534F\"></i>
<div class=\"spacer_10\"></div>
Please edit php.ini (mostly in /etc/php5/apache2) and set `<strong>allow_url_fopen = on</strong>`<br>Otherwise Uniwebif could not work..<div class=\"spacer_10\"></div>
<hr>";
} else {
echo "activated <i class='glyphicon glyphicon-ok green'></i><hr>";
} ?>
</span> </div>
<!-- col -->
</div>
<!-- row -->
<div class="row">
<div class="col-md-2"></div>
<div class="col-md-2"> SQL Host
<input type="text" id="sql_host" value="localhost" />
<div class="spacer_5"></div>
</div>
<div class="col-md-2"> SQL Admin
<input type="text" id="sql_user" value="root" />
<div class="spacer_5"></div>
</div>
<div class="col-md-2"> SQL Pass
<input type="password" id="sql_pass" value="" />
<div class="spacer_5"></div>
</div>
<div class="col-md-1">
<div class="spacer_20"></div>
<input type="submit" class="btn btn-success btn-xs" value="Send" onclick="save_sql();" />
<div class="spacer_5"></div>
</div>
<div class="col-md-2">
<div class="spacer_20"></div>
<span id="sql_status"></span> </div>
</div>
<!-- row -->
<div class="spacer_10"></div>
<!---->
<div class="row" id="receiver_settings" style="display:none;">
<div class="col-md-2"></div>
<div class="col-md-2"> Receiver IP
<input type="text" id="receiver_ip" value="" />
<div class="spacer_5"></div>
</div>
<div class="col-md-2"> Receiver User
<input type="text" id="receiver_user" value="" />
<div class="spacer_5"></div>
</div>
<div class="col-md-2"> Receiver Pass
<input type="password" id="receiver_pass" value="" />
<div class="spacer_5"></div>
</div>
<div class="col-md-1">
<div class="spacer_20"></div>
<input type="submit" class="btn btn-success btn-xs" value="Send" onclick="save_receiver();" />
<div class="spacer_5"></div>
</div>
<div class="col-md-2">
<div class="spacer_20"></div>
<span id="receiver_status"></span> </div>
</div>
<!-- row -->
<!---->
<div class="row" id="sql_done" style="display:none;">
<div class="spacer_20"></div>
<div class="col-md-2"></div>
<div class="col-md-2"> Server IP
<input type="text" id="server_ip" value="<?php echo $_SERVER['HTTP_HOST']; ?>" />
<div class="spacer_5"></div>
</div>
<div class="col-md-2"> Script folder
<input type="text" id="script_folder" value="uniwebif" />
<div class="spacer_5"></div>
</div>
<div class="col-md-4">
<div class="spacer_20"></div>
If settings done, click install!
<input type="submit" class="btn btn-success btn-xs" value="Install" onclick="install()">
<div class="spacer_5"></div>
</div>
</div>
<!-- row -->
<!---->
<div class="row">
<div class="col-md-12" align="center">
<div class="spacer_20"></div>
<span id="install_status"></span>
<div class="spacer_20"></div>
</div>
<div class="row">
<div class="col-md-12" align="center">
<div id="steps" style="display:none;">
<p>User uniwebif with password uniwebif, USAGE rights for database `uniwebif` created.. <i class='glyphicon glyphicon-ok green'></i></p>
<p>Database `uniwebif` with 12 tables created.. <i class='glyphicon glyphicon-ok green'></i></p>
<p>Bouquets and record locations added to database.. <i class='glyphicon glyphicon-ok green'></i></p>
<hr>
<p>Please do follow steps now:</p>
<br>
<div class="div_install_info">
<strong>1.</strong> Open your FTP program and make CHMOD 777 for folder /uniwebif/<strong>tmp</strong><br>
When you want stream a recorded file from Receiver, the m3u playlist file will be stored there.<br>
</p>
</div>
<div class="div_install_info">
<p><strong>2.</strong> Open the bouquet list in Browser - <strong><a href="bouquet_list.php" target="_blank">Link</a></strong><br>
Select the bouqet which includes channels, you wanna have the EPG from.<br>
After selecting, open the menue "Crawler Tools" and click <b>"Crawl channel ID's"</b>.<br>
Click confirm button to start.<br>
Now the channels from the selected bouquet are in database.<br>
</p>
</div>
<div class="div_install_info">
<strong>3.</strong> Open "Channel list" in Browser - <strong><a href="channel_list.php" target="_blank">Link</a></strong><br>
Select here the channels, from which you wanna have the EPG in database. <br>
After selecting, open again the menue "Crawler Tools" and click <b>"Crawl EPG from channels"</b>.<br>
Click confirm button to start.<br>
Now you have the EPG from selected channels in database. </p>
<strong>Automate the crawling</strong><br>
To have always the current EPG in database, make these steps.<br>
Open menue 'Main Settings' in Browser and scroll bottom to Crawler - <strong><a href="settings.php" target="_blank">Link</a></strong><br>
Make there your prefered settings and select "<strong>Activate automatic EPG Crawler</strong>" and "<strong>Activate Cron</strong>".<br>
Scroll bottom and click save Settings.<br>
It's also possible to get the EPG from each channel manual. Open Menue "Crawler Tools" and click "Crawl channel seperate".<br>
<br>
<strong>Automate the search within the EPG</strong><br>
To have always the timer from your desired broadcasts in timerlist, make these steps.<br>
Open 'Search' in Browser - <strong><a href="search.php" target="_blank">Link</a></strong><br>
Type in any term and click 'Search trough'. After that click 'Save this search for timer'.<br>
Now this term is saved under Timer & Saved Search. Open menue 'Main Settings' and select there 'Activate automatic Search Crawler'.<br>
<br>
Now create a <strong>Cron</strong>, which called may every 3 minutes the file /uniwebif/inc/<strong>cron.php</strong><br>
</div>
<h2>Ready!</h2>
Most important settings are done, and the script was working.<br>
For more information read the <a href="help/guide.html" target="_blank">Guide</a> or <a href="https://uniwebif-demo.techweb.at/faq.php" target="_blank">FAQ</a><br>
Tutorial video which show the main functions is <a href="https://www.youtube.com/watch?v=lj4EOlJzquk" target="_blank">here</a>.<br>
For any questions, issues or suggestions visit <a href="https://github.com/gempro/uniwebif/issues" target="_blank">Github</a>.</div>
</div>
<!-- col -->
</div>
<!-- row -->
<hr />
</div>
<!---->
</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>
</body>
</html>