Fix E_NOTICES on php 8.2
[playVideoOnDreamboxProxy.git] / www / form.php
1 <?php
2 $dreamboxUrlNoAuth = preg_replace('#//[^@]+@#', '//', $dreamboxUrl);
3 ?>
4 <!DOCTYPE html>
5 <html xmlns="http://www.w3.org/1999/xhtml">
6  <head>
7   <title>playVideoOnDreamboxProxy</title>
8   <meta name="author" content="Christian Weiske"/>
9   <meta name="generator" content="playVideoOnDreamboxProxy"/>
10  </head>
11  <body>
12   <h1>playVideoOnDreamboxProxy</h1>
13   <p>
14    This proxy application allows you to play videos on your Dreambox;
15    either direct video URLs or videos linked in HTML pages.
16   </p>
17   <p>
18    You may use the
19    <a href="https://cweiske.de/playVideoOnDreambox.htm#android">Android app</a>
20    or the
21    <a href="https://cweiske.de/playVideoOnDreambox.htm#firefox">Firefox browser extension</a>
22    to control it directly.
23   </p>
24
25
26   <h2>Video URL input</h2>
27   <p>
28    Enter the URL of a video or a web site that contains a video:
29   </p>
30   <form method="post" action="">
31    <input type="url" name="url" required="" autofocus=""
32           placeholder="URL"
33           size="40"/>
34    <button type="submit">Play on Dreambox</button>
35   </form>
36   <p>
37    Video will be played on
38    <a href="<?= $dreamboxUrlNoAuth ?>"><?= $dreamboxUrlNoAuth ?></a>.
39   </p>
40
41
42   <hr/>
43   <p>
44    Licensed under the
45    <a href="http://www.gnu.org/licenses/agpl.html">AGPL v3+</a>.
46    <a href="https://cweiske.de/playVideoOnDreambox.htm">Homepage</a>.
47   </p>
48  </body>
49 </html>