-
Notifications
You must be signed in to change notification settings - Fork 0
/
user.php
484 lines (449 loc) · 41.2 KB
/
user.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
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
<?php include("login.php"); ?>
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<title>plexWatch</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<meta name="description" content="">
<meta name="author" content="">
<!-- css styles -->
<link href="css/plexwatch.css" rel="stylesheet">
<link href="css/plexwatch-tables.css" rel="stylesheet">
<link href="css/font-awesome.min.css" rel="stylesheet" >
<style type="text/css">
body {
padding-top: 60px;
padding-bottom: 40px;
}
.sidebar-nav {
padding: 9px 0;
}
.dataTables_processing {
position: absolute;
top: 50%;
left: 50%;
width: 250px;
height: 30px;
margin-left: -125px;
margin-top: -15px;
padding: 14px 0 2px 0;
border: 1px solid #ddd;
text-align: center;
color: black;
font-size: 14px;
background-color: white;
}
.spinner {
padding-bottom: 25px;
position: relative;
}
</style>
<!-- touch icons -->
<link rel="shortcut icon" href="images/favicon.ico">
<link rel="apple-touch-icon" href="images/icon_iphone.png">
<link rel="apple-touch-icon" sizes="72x72" href="images/icon_ipad.png">
<link rel="apple-touch-icon" sizes="114x114" href="images/icon_iphone@2x.png">
<link rel="apple-touch-icon" sizes="144x144" href="images/icon_ipad@2x.png">
</head>
<body>
<div class="container">
<div class="navbar navbar-fixed-top">
<div class="navbar-inner">
<a href="index.php"><div class="logo hidden-phone"></div></a>
<ul class="nav">
<li><a href="index.php"><i class="icon-2x icon-home icon-white" data-toggle="tooltip" data-placement="bottom" title="Home" id="home"></i></a></li>
<li><a href="history.php"><i class="icon-2x icon-calendar icon-white" data-toggle="tooltip" data-placement="bottom" title="History" id="history"></i></a></li>
<li><a href="stats.php"><i class="icon-2x icon-tasks icon-white" data-toggle="tooltip" data-placement="bottom" title="PLEX Stats" id="stats"></i></a></li>
<li><a href="users.php"><i class="icon-2x icon-group icon-white" data-toggle="tooltip" data-placement="bottom" title="Users" id="users"></i></a></li>
<li><a href="charts.php"><i class="icon-2x icon-bar-chart icon-white" data-toggle="tooltip" data-placement="bottom" title="Charts" id="charts"></i></a></li>
<li><a href="sysinfo.php"><i class="icon-2x icon-hdd icon-white" data-toggle="tooltip" data-placement="bottom" title="System Info" id="sysinfo"></i></a></li>
<li><a href="edit.php"><i class="icon-2x icon-bug icon-white" data-toggle="tooltip" data-placement="bottom" title="Debug SQL" id="editsql"></i></a></li>
<li><a href="settings.php"><i class="icon-2x icon-wrench icon-white" data-toggle="tooltip" data-placement="bottom" title="PlexWatch Settings" id="settings"></i></a></li>
<li><a href="index.php?logout=1"><i class="icon-2x icon-power-off icon-white" data-toggle="tooltip" data-placement="bottom" title="Logout" id="logout"></i></a></li>
</ul>
</div>
</div>
</div>
<?php
include "serverdatapdo.php";
$guisettingsFile = "config/config.php";
if (file_exists($guisettingsFile)) {
require_once(dirname(__FILE__) . '/config/config.php');
} else {
header("Location: settings.php");
}
$user = htmlspecialchars($_GET['user'], ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8', true);
$db = dbconnect();
if ($plexWatch['userHistoryGrouping'] == "yes") {
$plexWatchDbTable = "grouped";
} else if ($plexWatch['userHistoryGrouping'] == "no") {
$plexWatchDbTable = "processed";
}
$userInfo = $db->query("SELECT user,xml FROM ".$plexWatchDbTable." WHERE user = '$user' ORDER BY time DESC LIMIT 1") or die ("Failed to access plexWatch database. Please check your settings.");
?>
<div class='container-fluid'>
<div class='row-fluid'>
<div class='span12'>
<div class='user-info-wrapper'>
<?php
while ($userInfoResults= $userInfo->fetchArray()) {
$userInfoXml = $userInfoResults['xml'];
$userInfoXmlField = simplexml_load_string($userInfoXml);
if (empty($userInfoXmlField->User['thumb'])) {
?><div class='user-info-poster-face'><img src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAEYCAYAAACHjumMAAAKQWlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUU9kWh8+9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKGhCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji1wnyEFDGwVFEReXdjGsJ7601896a/cdZ39nnt9fZZ+9917oAUPyCBMJ0WAGANKFY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cQV4eTp/nLkDbIWBEwHnL9LVIRvrIQgACOSeAweS8A9B8CFgSwGAs6aINgZwTwGBy3gFoPgQsCWAwlnTRhkDOCWAwOe8ANB8ClgQwGEu6aEMg5wQwmJx3AJoPAUsCGIwlXbQhkHMCGEzOOwDNh4AlAQzGki7aEMg5AQwm5x2A5kPAkgAGY0kXbQjknAAGk/MOQPMhYEkAg7GkizYEck4Ag8l5B6D5ELAkgMFY0kUbAjkngMHkvAPQfAhYEsBgLOmiDYGcE8Bgct4BaD4ELAlgMJZ00YZAzglgMDnvADQfApYEMBhLumhDIOcE/h/UIq302YtxjgAAAABJRU5ErkJggg=='></></div><?php
} else {
?><div class='user-info-poster-face'><img src='<?php echo $userInfoXmlField->User['thumb'];?>' onerror=\"this.src='data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAARgAAAEYCAYAAACHjumMAAAKQWlDQ1BJQ0MgUHJvZmlsZQAASA2dlndUU9kWh8+9N73QEiIgJfQaegkg0jtIFQRRiUmAUAKGhCZ2RAVGFBEpVmRUwAFHhyJjRRQLg4Ji1wnyEFDGwVFEReXdjGsJ7601896a/cdZ39nnt9fZZ+9917oAUPyCBMJ0WAGANKFYFO7rwVwSE8vE9wIYEAEOWAHA4WZmBEf4RALU/L09mZmoSMaz9u4ugGS72yy/UCZz1v9/kSI3QyQGAApF1TY8fiYX5QKUU7PFGTL/BMr0lSkyhjEyFqEJoqwi48SvbPan5iu7yZiXJuShGlnOGbw0noy7UN6aJeGjjAShXJgl4GejfAdlvVRJmgDl9yjT0/icTAAwFJlfzOcmoWyJMkUUGe6J8gIACJTEObxyDov5OWieAHimZ+SKBIlJYqYR15hp5ejIZvrxs1P5YjErlMNN4Yh4TM/0tAyOMBeAr2+WRQElWW2ZaJHtrRzt7VnW5mj5v9nfHn5T/T3IevtV8Sbsz55BjJ5Z32zsrC+9FgD2JFqbHbO+lVUAtG0GQOXhrE/vIADyBQC03pzzHoZsXpLE4gwnC4vs7GxzAZ9rLivoN/ufgm/K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HC0kkpUZDC6IPECTZT7ksylsxJR0kAAAtklIJPp027Tp7Xb9OhCrZzXYNyoRfNZ7pfIhxYSYjsEIJA7At86fPjwZfONZuY0GD1r6I26jcKjGrW8KXfYaDAEIFARAY1mfqvbQlyg2cAvzJZhVoMpniF6QhnaZsvEOghAAAIlBA7KaN6puTPPlqybfnvMDZ7WrVt3srY8pgVzKafFZwhAYDYCziseK3rHjO0zRjCa6r9Kj2D9jXaL2mek4gMEIACBBQhoFDOgiydP3bVrl7s/8PRrxghG5nIn5nIUDf8hAIFqCDjvcB5SmudPIxhNoDtbp6LdrhEvCEAAApEJ6BT22ZqQ97gT+NMIRu6zJbIiGSEAAQgUCchLth6FMW0wOiV9qlaecXQl/yEAAQhEJeC8xHmKyz9tMJrv4h4mzwsCEICAFwJHPWXaYOQ47/GiiggEIAABETjqKXXFB5/1QwUCEICATwKa4duhE0f1G32KogUBCEDAEXDeUq/JMW8GBwQgAAHfBJy31GtfqcO3MHoQgAAEnLe4g7wYDH0BAhCwINDhRjBcd2SBFk0I5JyA8xZ3DIarpnPeEWg+BCwIOG9xu0jNFuJoQgACuSfQjMHkvg8AAAJmBKYNpsVMHmEIQCDPBFrcQV4eTp/nLkDbIWBEwHnL9LVIRvrIQgACOSeAweS8A9B8CFgSwGAs6aINgZwTwGBy3gFoPgQsCWAwlnTRhkDOCWAwOe8ANB8ClgQwGEu6aEMg5wQwmJx3AJoPAUsCGIwlXbQhkHMCGEzOOwDNh4AlAQzGki7aEMg5AQwm5x2A5kPAkgAGY0kXbQjknAAGk/MOQPMhYEkAg7GkizYEck4Ag8l5B6D5ELAkgMFY0kUbAjkngMHkvAPQfAhYEsBgLOmiDYGcE8Bgct4BaD4ELAlgMJZ00YZAzglgMDnvADQfApYEMBhLumhDIOcE/h/UIq302YtxjgAAAABJRU5ErkJggg=='\"></></div><?php
}
}
?>
<div class='user-info-username'><?php echo FriendlyName($user); ?></div>
<div class='user-info-nav'>
<ul class='user-info-nav'>
<li class='active'><a href='#profile' data-toggle='tab'>Profile</a></li>
<li><a id='ip-tab-btn' href='#userAddresses' data-toggle='tab'>IP Addresses</a></li>
<li><a href='#userHistory' data-toggle='tab'>History</a></li>
</ul>
</div>
</div>
</div>
</div>
</div>
<div class='tab-content'>
<div class='tab-pane active' id='profile'>
<div class='container-fluid'>
<div class='row-fluid'>
<div class='span12'>
<div class='wellbg'>
<div class='wellheader'>
<div class='dashboard-wellheader'>
<h3>Global Stats</h3>
</div>
</div>
<div id='user-time-stats' class='user-overview-stats-wrapper'><div id='user-stats-spinner' class='spinner'></div></div>
</div>
</div>
</div>
</div>
<div class='container-fluid'>
<div class='row-fluid'>
<div class='span12'>
<div class='wellbg'>
<div class='wellheader'>
<div class='dashboard-wellheader'>
<h3>Platform Stats</h3>
</div>
</div>
<div id='user-platform-stats' class='user-platforms'><div id='user-platform-spinner' class='spinner'></div></div>
</div>
</div>
</div>
</div>
<div class='container-fluid'>
<div class='row-fluid'>
<div class='span12'>
<div class='wellbg'>
<div class='wellheader'>
<div class='dashboard-wellheader'>
<h3>Recently watched</h3>
</div>
</div>
<div id='user-recently-watched' class='dashboard-recent-media-row'><div id='user-watched-spinner' class='spinner'></div></div>
</div>
</div>
</div>
</div>
</div>
<div class='tab-pane' id='userAddresses'>
<div class='container-fluid'>
<div class='row-fluid'>
<div class='span12'>
<div class='wellbg'>
<div class='wellheader'>
<div class='dashboard-wellheader'>
<h3>Public IP Addresses for <strong><?php echo $user; ?></strong></h3>
</div>
</div>
<table id='tableUserIpAddresses' class='display' width='100%'>
<thead>
<tr>
<th align='left'><i class='icon-sort icon-white'></i> Last seen</th>
<th align='left'><i class='icon-sort icon-white'></i> IP Address</th>
<th align='left'><i class='icon-sort icon-white'></i> Play Count</th>
<th align='left'><i class='icon-sort icon-white'></i> Platform (Last Seen)</th>
<th align='left'><i class='icon-sort icon-white'></i> Location</th>
<th align='left'><i class='icon-sort icon-white'></i> Location</th>
</tr>
</thead>
</table>
</div>
</div>
</div>
</div>
</div>
<div class='tab-pane' id='userHistory'>
<div class='container-fluid'>
<div class='row-fluid'>
<div class='span12'>
<div class='wellbg'>
<div class='wellheader'>
<div class='dashboard-wellheader'>
<h3>Watching History for <strong><?php echo $user; ?></strong></h3>
</div>
</div>
<?php
//now generate the HTML databable structure from SQL here:
$cols= "id,Date,User,Platform,IP Address,Title,Started,Paused,Stopped,xml,Duration,Completed"; //Column names for datatable headings (typically same as sql)
$html = ServerDataPDO::build_html_datatable($cols,'user_history_datatable');
echo $html;
?>
<div id="info-modal" class="modal hide fade" tabindex="-1" role="dialog" aria-labelledby="info-modal" aria-hidden="true">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal" aria-hidden="true"><i class="icon icon-remove"></i></button>
<h3 id="myModalLabel"><i class="icon-info-sign icon-white"></i> Stream Info: <strong><span id="modal-stream-info"></span></strong></h3>
</div>
<div class="modal-body" id="modal-text"></div>
<div class="modal-footer"></div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
<footer>
</footer>
<!-- javascript
================================================== -->
<!-- Placed at the end of the document so the pages load faster -->
<script src="js/jquery-2.0.3.js"></script>
<script src="js/bootstrap.js"></script>
<script src="js/jquery.dataTables.js"></script>
<script src="js/jquery.dataTables.plugin.date_sorting.js"></script>
<script src="js/jquery.dataTables.plugin.bootstrap_pagination.js"></script>
<script src="js/moment-with-locale.js"></script>
<script src="js/cacher.js"></script>
<script src="js/spin.min.js"></script>
<script>
function loadXMLString(txt) {
if (window.DOMParser) {
parser=new DOMParser();
xmlDoc=parser.parseFromString(txt,"text/xml");
} else { // code for IE
xmlDoc=new ActiveXObject("Microsoft.XMLDOM");
xmlDoc.async=false;
xmlDoc.loadXML(txt);
}
return xmlDoc;
}
</script>
<script>
$(document).ready(function() {
var cacheData = getCache('<?php echo $user;?>'+'-user-recently-watched-cache');
if (cacheData) {
$("#user-recently-watched").html(cacheData);
} else {
$.ajax({
url: 'datafactory/get-user-recently-watched.php',
type: "POST",
async: true,
data: { user : '<?php echo $user; ?>' },
success: function(data) {
$("#user-recently-watched").html(data);
setCache('<?php echo $user;?>'+'-user-recently-watched-cache', data);
}
});
}
} );
</script>
<script>
$(document).ready(function() {
var cacheData = getCache('<?php echo $user;?>'+'-user-time-stats-cache');
if (cacheData) {
$("#user-time-stats").html(cacheData);
} else {
$.ajax({
url: 'datafactory/get-user-time-stats.php',
type: "POST",
async: true,
data: { user : '<?php echo $user; ?>' },
success: function(data) {
$("#user-time-stats").html(data);
setCache('<?php echo $user;?>'+'-user-time-stats-cache', data);
}
});
}
} );
</script>
<script>
$(document).ready(function() {
var cacheData = getCache('<?php echo $user;?>'+'-user-platform-stats-cache');
if (cacheData) {
$("#user-platform-stats").html(cacheData);
} else {
$.ajax({
url: 'datafactory/get-user-platform-stats.php',
type: "POST",
async: true,
data: { user : '<?php echo $user; ?>' },
success: function(data) {
$("#user-platform-stats").html(data);
setCache('<?php echo $user;?>'+'-user-platform-stats-cache', data);
}
});
}
} );
</script>
<script>
$(document).ready(function() {
var ipTableOptions = {
"bPaginate": true,
"bDestroy": true,
"bLengthChange": true,
"bFilter": true,
"bSort": true,
"bInfo": true,
"iDisplayLength": 10,
"aaSorting": [[0,'desc']],
"bAutoWidth": true,
"bProcessing": true,
"bStateSave": false,
"bSortClasses": false,
"sPaginationType": "bootstrap",
"aaData": [
{ 0: "Loading...",
1: "",
2: "",
3: "",
4: "",
5: "" }
],
"aoColumnDefs": [
{
"aTargets": [ 0 ],
"fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
if (sData != "Loading...") {
$(nTd).html(moment(sData,"X").format("<?php echo $plexWatch['dateFormat']; ?>"));
}
}
},
{
"aTargets": [ 1 ]
},
{
"aTargets": [ 2 ]
},
{
"aTargets": [ 3 ]
},
{
"aTargets": [ 4 ],
"fnCreatedCell": function (nTd, sData, oData, iRow, iCol) {
if(oData[5] !== '') {
$(nTd).html('<a target="_blank" href="'+oData[5]+'"><i class="icon-map-marker icon-white"></i> '+sData+'</a>');
} else {
$(nTd).html(sData);
}
}
},
{
"aTargets": [ 5 ],
"bVisible": false
}
]
};
ipTable = $('#tableUserIpAddresses').dataTable(ipTableOptions);
var cacheData = getCache('<?php echo $user;?>'+'-ip-stats-cache');
if (cacheData) {
ipTableOptions.aaData = cacheData.data;
ipTable = $('#tableUserIpAddresses').dataTable(ipTableOptions);
} else {
$.ajax({
url: "datafactory/get-user-ip-stats.php",
data: { user: "<?php echo $user; ?>" },
type: "post",
dataType: "json",
async: true,
success: function(data){
ipTableOptions.aaData = data.data;
ipTable = $('#tableUserIpAddresses').dataTable(ipTableOptions);
// set expiration on this cached item to 10 minutes.
setCache('<?php echo $user;?>'+'-ip-stats-cache',data,10);
}
} );
}
} );
</script>
<?php
$plexWatchDbTable = "";
if ($plexWatch['userHistoryGrouping'] == "yes") {
$plexWatchDbTable = "grouped";
} else if ($plexWatch['userHistoryGrouping'] == "no") {
$plexWatchDbTable = "processed";
}
$db_array=array(
"sql"=>"SELECT id|time|user|platform|ip_address|title|time|paused_counter|stopped|xml|round((julianday(datetime(stopped,'unixepoch', 'localtime')) - julianday(datetime(time,'unixepoch', 'localtime')))*86400)-(case when paused_counter is null then 0 else paused_counter end) from ".$plexWatchDbTable, /* Use | as delimiter. Spell out columns names no SELECT * Table */
"table"=>$plexWatchDbTable, /* DB table to use assigned by constructor*/
"idxcol"=>"id", /* Indexed column (used for fast and accurate table cardinality) */
"where"=>"user = '".$user."'" /* Option where clause (omit WHERE text) */
);
$javascript = ServerDataPDO::build_jquery_datatable($db_array,'user_history_datatable','datafactory/get-user-info-modal.php');
echo $javascript;
?>
<script>
var opts = {
lines: 8, // The number of lines to draw
length: 8, // The length of each line
width: 4, // The line thickness
radius: 5, // The radius of the inner circle
corners: 1, // Corner roundness (0..1)
rotate: 0, // The rotation offset
direction: 1, // 1: clockwise, -1: counterclockwise
color: '#fff', // #rgb or #rrggbb or array of colors
speed: 1, // Rounds per second
trail: 60, // Afterglow percentage
shadow: false, // Whether to render a shadow
hwaccel: false, // Whether to use hardware acceleration
className: 'spinner', // The CSS class to assign to the spinner
zIndex: 2e9, // The z-index (defaults to 2000000000)
top: '0', // Top position relative to parent
left: '50%' // Left position relative to parent
};
var target_a = document.getElementById('user-stats-spinner');
var spinner_a = new Spinner(opts).spin(target_a);
var target_b = document.getElementById('user-platform-spinner');
var spinner_b = new Spinner(opts).spin(target_b);
var target_c = document.getElementById('user-watched-spinner');
var spinner_c = new Spinner(opts).spin(target_c);
</script>
<script>
$(document).ready(function() {
$('#home').tooltip();
});
$(document).ready(function() {
$('#history').tooltip();
});
$(document).ready(function() {
$('#users').tooltip();
});
$(document).ready(function() {
$('#charts').tooltip();
});
$(document).ready(function() {
$('#editsql').tooltip();
});
$(document).ready(function() {
$('#settings').tooltip();
});
$(document).ready(function() {
$('#sysinfo').tooltip();
});
$(document).ready(function() {
$('#stats').tooltip();
});
$(document).ready(function() {
$('#logout').tooltip();
});
</script>
</body>
</html>