-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
243 lines (239 loc) · 13.2 KB
/
index.php
File metadata and controls
243 lines (239 loc) · 13.2 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
<?php
include "cache_start.php";
include 'includes/config.php';
?>
<!DOCTYPE html>
<html lang="en">
<head>
<title>Universal Media Server</title>
<?php include 'includes/head.php'; ?>
</head>
<body>
<?php include 'includes/menu.php'; ?>
<!-- ======= Hero Section ======= -->
<section id="hero" class="d-flex align-items-center home-page">
<div id="stars"></div>
<div id="stars2"></div>
<div id="stars3"></div>
<div class="container">
<div class="row">
<div class="col-lg-12 d-flex flex-column justify-content-center pt-4 pt-lg-0 order-2 order-lg-1" style="text-align: center;">
<div style="margin: 0 auto;max-width: 900px;">
<h1>Universal Media Server</h1>
<h2>Stream your media to your devices, whether they are TVs, smartphones, gaming consoles, computers, audio receivers, and more!</h2>
<div class="d-lg">
<button class="btn-get-started scrollto" id="download-link" data-toggle="modal" data-target="#downloadModal"> Download Now <i class="icofont-download"></i></button>
</div>
<div class="ad-container">
<script async src="https://pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<!-- UMS Front -->
<ins class="adsbygoogle"
style="display:block;margin-top:25px;"
data-ad-client="ca-pub-3418498412982536"
data-ad-slot="1452480239"
data-ad-format="auto"
data-full-width-responsive="true"></ins>
<script>
(adsbygoogle = window.adsbygoogle || []).push({});
</script>
</div>
</div>
</div>
</div>
</div>
</section><!-- End Hero -->
<main id="main">
<!-- ======= Cliens Section ======= -->
<section id="cliens" class="cliens section-bg">
<div class="container">
<div class="row">
<div class="col-lg-2 col-md-4 col-6 d-flex align-items-center justify-content-center">
<img src="assets/img/clients/client-1.png" class="img-fluid" alt="">
</div>
<div class="col-lg-2 col-md-4 col-6 d-flex align-items-center justify-content-center">
<img src="assets/img/clients/client-2.png" class="img-fluid" alt="">
</div>
<div class="col-lg-2 col-md-4 col-6 d-flex align-items-center justify-content-center">
<img src="assets/img/clients/client-3.png" class="img-fluid" alt="">
</div>
<div class="col-lg-2 col-md-4 col-6 d-flex align-items-center justify-content-center">
<img src="assets/img/clients/client-4.png" class="img-fluid" alt="">
</div>
<div class="col-lg-2 col-md-4 col-6 d-flex align-items-center justify-content-center">
<img src="assets/img/clients/client-5.png" class="img-fluid" alt="">
</div>
<div class="col-lg-2 col-md-4 col-6 d-flex align-items-center justify-content-center">
<strong style="font-size: 80%;">Hundreds more</strong>
</div>
</div>
</div>
</section><!-- End Cliens Section -->
<section id="features" class="features-section">
<div class="container text-center">
<div class="section-title">
<h2>Features</h2>
</div>
<div class="tabbed-area row">
<!-- Nav tabs -->
<div class="feature-nav nav nav-pill flex-column col-lg-4 col-md-6 col-12 order-0 order-md-1" role="tablist" aria-orientation="vertical">
<a class="btn mb-lg-3 active" href="#feature-1" aria-controls="feature-1" data-toggle="pill" role="tab" aria-selected="false">
<i class="fas fa-magic mr-2"></i>Beautiful web interface
</a>
<a class="btn mb-lg-3" href="#privacy" aria-controls="privacy" data-toggle="pill" role="tab" aria-selected="false">
<i class="fas fa-magic mr-2"></i>Total privacy
</a>
<a class="btn mb-lg-3" href="#renderers" aria-controls="renderers" data-toggle="pill" role="tab" aria-selected="false">
<i class="fas fa-magic mr-2"></i>Huge selection of supported devices
</a>
<a class="btn mb-lg-3" href="#metadata" aria-controls="metadata" data-toggle="pill" role="tab" aria-selected="false">
<i class="fas fa-magic mr-2"></i>Dynamic metadata
</a>
<a class="btn mb-lg-3" href="#online-media" aria-controls="online-media" data-toggle="pill" role="tab" aria-selected="false">
<i class="fas fa-magic mr-2"></i>Online and streaming media
</a>
<a class="btn mb-lg-3" href="#feature-3" aria-controls="feature-3" data-toggle="pill" role="tab" aria-selected="false">
<i class="fas fa-chart-bar mr-2"></i>Instant browsing
</a>
<a class="btn mb-lg-3" href="#feature-4" aria-controls="feature-4" data-toggle="pill" role="tab" aria-selected="true">
<i class="fas fa-rocket mr-2"></i>Support for all files and networks
</a>
</div>
<!-- Tab panes -->
<div class="feature-content tab-content col-lg-8 col-md-6 col-12 order-1 order-md-0">
<div role="tabpanel" class="tab-pane fade active show" id="feature-1">
<div data-aspect-ratio="16:9"><div style="background-image:url(images/ums-v11-resized-v2.gif)"></div></div>
<p>
Connect to your media using any web browser on any device for a feature-rich dive into dynamic pages for every media file you have.
Play directly from the browser, or send to your devices.
</p>
</div>
<div role="tabpanel" class="tab-pane fade" id="privacy">
<div data-aspect-ratio="16:9"><div style="background-image:url(assets/img/pexels-burst-374103.jpg)"></div></div>
<p>
We do not track <strong>any</strong> actions you take in the program. How many other media servers can claim that?
Your server is as secure as your home network, and all external requests are made via secure connections.
</p>
</div>
<div role="tabpanel" class="tab-pane fade" id="renderers">
<div data-aspect-ratio="16:9"><div style="background-image:url(assets/img/devices.png)"></div></div>
<p>
Support for the largest range of media renderers. Connect to your media via UPnP or DLNA on a large selection of devices, whether
television, audio device, gaming console, computer, smartphone or more, with regular improvements to all.
</p>
</div>
<div role="tabpanel" class="tab-pane fade" id="metadata">
<div data-aspect-ratio="16:9"><div style="background-image:url(assets/img/dynamic-metadata.png)"></div></div>
<p>
Dynamic lookup of metadata for your media allows you to easily find related media.
Filter videos by actor, director, genre, year and more, and music by artist, genre, year and more.
We integrate with services like IMDb and MusicBrainz to dynamically display the correct covers for your videos and music.
</p>
</div>
<div role="tabpanel" class="tab-pane fade" id="online-media">
<div data-aspect-ratio="16:9"><div style="background-image:url(assets/img/online-media.png)"></div></div>
<p>Add and manage your online radio channels, podcasts and RSS feeds for all media types and view from any of your connected devices.</p>
</div>
<div role="tabpanel" class="tab-pane fade" id="feature-3">
<div data-aspect-ratio="16:9"><div style="background-image:url(assets/img/pexels-cottonbro-4065137.jpg)"></div></div>
<p>
Access your media instantly, with no waiting for scans to finish.
We have scanning for extra features too, but you still have access to your media in the meantime.
</p>
</div>
<div role="tabpanel" class="tab-pane fade" id="feature-4">
<div data-aspect-ratio="16:9"><div style="background-image:url(assets/img/files-networks.jpg)"></div></div>
<p>
We support passing your media to your devices untouched if they support it, otherwise we will transform it to suit your network, device, and language preferences. We also provide support for your physical media with the ability to directly access your disc drives and disc images.
</p>
</div>
</div><!--//feature-content-->
</div><!--//tabbed-area-->
</div><!--//container-->
</section>
<section id="about" class="about section-bg">
<div class="container">
<div class="section-title">
<h2>About Us</h2>
</div>
<div class="row content">
<div class="col-lg-6">
<p>
Universal Media Server is a free DLNA, UPnP and HTTP/S Media Server.
</p>
<p>
We support all major operating systems, with versions for Windows, Linux and macOS, via direct download or package managers like Chocolatey, Homebrew, AppImage and Docker.
</p>
<p>
The program streams or transcodes many different media formats with little or no configuration, allowing you to view and manage your online and offline media on almost any device.
</p>
</div>
<div class="col-lg-6 pt-4 pt-lg-0">
<p>
It is powered by <a href="https://www.ffmpeg.org/" rel="nofollow">FFmpeg</a>, <a href="https://mediaarea.net/en/MediaInfo" rel="nofollow">MediaInfo</a>, <a href="https://crowdin.com/" rel="nofollow">Crowdin</a>, <a href="http://www.mplayerhq.hu/" rel="nofollow">MEncoder</a>, tsMuxeR, AviSynth, VLC and more, which combine to offer support for a wide range of media formats.
</p>
<a href="/about/" class="btn-link">Learn More</a>
</div>
</div>
</div>
</section>
<section id="news" class="services">
<div class="container">
<div class="section-title">
<h2>News</h2>
</div>
<div class="row">
<?php
try {
// Connect to database
$link = mysqli_connect($dbhost, $dbuser, $dbpass, $dbname);
if (mysqli_connect_errno()) {
printf("Database connection failed. Not displaying News content: %s\n", mysqli_connect_error());
} else {
// Populate news
$query = "SELECT topic_id, topic_title, topic_time FROM cS8856_topics WHERE forum_id=3 AND topic_id != 378 ORDER BY topic_time DESC LIMIT 4";
if ($result = mysqli_query($link, $query)) {
while ($list = mysqli_fetch_assoc($result)) {
$date = date("Y/m/d", $list['topic_time']);
echo '
<div class="col-xl-3 col-md-6 d-flex align-items-stretch mt-4 mt-md-0">
<div class="news-item">
<h4><a href="/forum/viewtopic.php?f=8&t='.$list['topic_id'].'">'.$list['topic_title'].'</a></h4>
<p>'.$date.'</p>
</div>
</div>
';
}
mysqli_free_result($result);
}
mysqli_close($link);
}
} catch (Exception $e) {
echo 'Caught exception: ', $e->getMessage(), "\n";
}
?>
<a href="/news/" class="btn-link mx-auto">See older news</a>
</div>
</div>
</section>
<section id="sponsors" class="sponsors section-bg">
<div class="container">
<div class="section-title">
<h2>Sponsors</h2>
</div>
<div class="row content" style="text-align:center">
<div class="col-lg-12">
<p>
<a href="https://architectureofsales.com/"><img alt="Architecture of Sales" src="images/logos/architecture-of-sales.webp" style="width:200px;"></a>
</p>
</div>
<div class="col-lg-12 pt-4 pt-lg-0" style="text-align:center">
<a href="https://www.patreon.com/universalmediaserver" class="btn-link">Become a sponsor</a>
</div>
</div>
</div>
</section>
</main>
<?php include 'includes/footer.php'; ?>
</body>
</html>
<?php include "cache_end.php"; ?>