-
Notifications
You must be signed in to change notification settings - Fork 2
/
kodicontrol.php
79 lines (79 loc) · 5.25 KB
/
kodicontrol.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
<?php
require 'secure/functions.php';
require '/var/www/authentication.php';
if (isset($_POST['up'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.Up"}');
elseif (isset($_POST['right'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.Right"}');
elseif (isset($_POST['down'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.Down"}');
elseif (isset($_POST['left'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.Left"}');
elseif (isset($_POST['select'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.Select"}');
elseif (isset($_POST['back'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.Back"}');
elseif (isset($_POST['home'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.Home"}');
elseif (isset($_POST['context'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.ContextMenu"}');
elseif (isset($_POST['OSD'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.ShowOSD"}');
elseif (isset($_POST['INFO'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.Info"}');
elseif (isset($_POST['Later'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.ExecuteAction","params":{"action":"subtitledelayminus"}}');
elseif (isset($_POST['SUBSYNC'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.ExecuteAction","params":{"action":"subtitledelay"}}');
elseif (isset($_POST['Earlier'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.ExecuteAction","params":{"action":"subtitledelayplus"}}');
elseif (isset($_POST['AudioLater'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.ExecuteAction","params":{"action":"audiodelayminus"}}');
elseif (isset($_POST['AUDIOSYNC'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.ExecuteAction","params":{"action":"audiodelay"}}');
elseif (isset($_POST['AudioEarlier'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.ExecuteAction","params":{"action":"audiodelayplus"}}');
elseif (isset($_POST['Subup'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.ExecuteAction","params":{"action":"subtitleshiftup"}}');
elseif (isset($_POST['Subdown'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.ExecuteAction","params":{"action":"subtitleshiftdown"}}');
elseif (isset($_POST['Imgup'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.ExecuteAction","params":{"action":"verticalshiftup"}}');
elseif (isset($_POST['Imgdown'])) kodi('{"jsonrpc":"2.0","id":1,"method":"Input.ExecuteAction","params":{"action":"verticalshiftdown"}}');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="HandheldFriendly" content="true" />
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<meta name="viewport" content="width=device-width,height=device-width, initial-scale=1, user-scalable=no, minimal-ui" />
<meta name="theme-color" content="#000">
<title>Kodi</title>
<link rel="icon" type="image/png" href="images/kodi.png">
<link rel="shortcut icon" href="images/kodi.png" />
<link rel="apple-touch-icon" href="images/kodi.png"/>
<link rel="icon" sizes="196x196" href="images/kodi.png">
<link rel="icon" sizes="192x192" href="images/kodi.png">
<meta name="mobile-web-app-capable" content="yes">
<link href="/styles/kodi.css" rel="stylesheet" type="text/css"/>
</head>
<body>
<div class="navbar">
<form action="/floorplan.php"><input type="submit" class="btn b4" value="Plan"/></form>
<form action="/kodi.php"><input type="submit" class="btn btna b4" value="Kodi"/></form>
<form action="https://films.egregius.be/films.php"><input type="submit" class="btn b4" value="Films"/></form>
<form action="https://films.egregius.be/series.php"><input type="submit" class="btn b4" value="Series"/></form>
</div>
<div class="box"><form method="POST">
<br>
<input type="submit" name="back" value="Back" class="btn big b3"/>
<input type="submit" name="up" value="UP" class="btn big b3"/>
<input type="submit" name="context" value="Context" class="btn big b3"/>
<input type="submit" name="left" value="LEFT" class="btn big b3"/>
<input type="submit" name="select" value="Select" class="btn big b3"/>
<input type="submit" name="right" value="RIGHT" class="btn big b3"/>
<input type="submit" name="home" value="Home" class="btn big b3"/>
<input type="submit" name="down" value="DOWN" class="btn big b3"/>
<input type="submit" name="context" value="Context" class="btn big b3"/>
<br><br>
<input type="submit" name="INFO" value="INFO" class="btn big b2"/>
<input type="submit" name="OSD" value="OSD" class="btn big b2"/>
<br><br>
<input type="submit" name="Earlier" value="Earlier" class="btn big b3"/>
<input type="submit" name="SUBSYNC" value="SubSync" class="btn big b3"/>
<input type="submit" name="Later" value="Later" class="btn big b3"/>
<br>
<input type="submit" name="AudioEarlier" value="Earlier" class="btn big b3"/>
<input type="submit" name="AudioSYNC" value="SoundSync" class="btn big b3"/>
<input type="submit" name="AudioLater" value="Later" class="btn big b3"/>
<br>
<input type="submit" name="Subup" value="Subup" class="btn big b2"/>
<input type="submit" name="Subdown" value="Subdown" class="btn big b2"/>
<br>
<input type="submit" name="Imgup" value="Imgup" class="btn big b2"/>
<input type="submit" name="Imgdown" value="Imgdown" class="btn big b2"/>
<br>
<br>