-
Notifications
You must be signed in to change notification settings - Fork 0
/
widget_streams_content.php
75 lines (67 loc) · 4.82 KB
/
widget_streams_content.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
<?php
/**
*¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯*
* Webspell-RM / / / *
* -----------__---/__---__------__----__---/---/-----__---- _ _ - *
* | /| / /___) / ) (_ ` / ) /___) / / __ / / / / *
* _|/_|/__(___ _(___/_(__)___/___/_(___ _/___/_____/_____/__/__/_ *
* Free Content / Management System *
* / *
*¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯*
* @version webspell-rm *
* *
* @copyright 2018-2023 by webspell-rm.de *
* @support For Support, Plugins, Templates and the Full Script visit webspell-rm.de *
* @website <https://www.webspell-rm.de> *
* @forum <https://www.webspell-rm.de/forum.html> *
* @wiki <https://www.webspell-rm.de/wiki.html> *
* *
*¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯*
* @license Script runs under the GNU GENERAL PUBLIC LICENCE *
* It's NOT allowed to remove this copyright-tag *
* <http://www.fsf.org/licensing/licenses/gpl.html> *
* *
*¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯*
* @author Code based on WebSPELL Clanpackage (Michael Gruber - webspell.at) *
* @copyright 2005-2011 by webspell.org / webspell.info *
* *
*¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯*
*/
# Sprachdateien aus dem Plugin-Ordner laden
$pm = new plugin_manager();
$plugin_language = $pm->plugin_language("streams", $plugin_path);
$data_array = array();
$template = $GLOBALS["_template"]->loadTemplate("widget_streams","title", $data_array, $plugin_path);
echo $template;
$ergebnis = safe_query("SELECT * FROM " . PREFIX . "plugins_streams WHERE widget_displayed = '1' AND provider = '1' ORDER BY `sort`");
if (mysqli_num_rows($ergebnis)) {
echo'<div class="row">';
while ($ds = mysqli_fetch_array($ergebnis)) {
$name = $ds['link'];
echo'<div class="col">
<div data-service="twitch" data-id="channel='.$name.'" data-title="Twitch channel stream" data-widget
data-placeholder
style="height: 250px"></div>
</div> ';
}
echo'</div>';
} else {
#echo $plugin_language['no_stream'];
}
$ergebnis = safe_query("SELECT * FROM " . PREFIX . "plugins_streams WHERE widget_displayed = '1' AND provider = '0' ORDER BY `sort`");
if (mysqli_num_rows($ergebnis)) {
echo'<div class="row">';
while ($ds = mysqli_fetch_array($ergebnis)) {
$name = $ds['link'];
echo'<div class="col">
<div data-service="twitch" data-id="video='.$name.'" data-title="Twitch channel stream" data-autoscale data-widget
data-placeholder
style="height: 250px"></div>
</div> ';
}
echo'</div>';
} else {
#echo $plugin_language['no_video'];
}
$online = $GLOBALS["_template"]->loadTemplate("widget_streams","foot", $data_array, $plugin_path);
echo $online;