/
index.php
executable file
·87 lines (70 loc) · 3.28 KB
/
index.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
<?php
include("config.php");
require("auth.php");
?><!doctype html>
<html>
<head>
<title>MPC Web Shell</title>
<meta charset="utf-8">
<meta name="copyright" content="Copyright © 2014 ilya Balduev <ilya@balduev.name> (MIT License)">
<meta name="author" content="ilya Balduev aka YaLiC">
<meta name="description" content="Веб-интерфейс для MPD. Веб-оболочка для MPC">
<link href="favicon.ico" type="image/x-icon" rel="shortcut icon">
<link href="favicon.ico" type="image/x-icon" rel="icon">
<link rel="stylesheet" href="glyphicons/glyphicons.css">
<link rel="stylesheet" href="style.css">
<script src="jquery-2.1.1.min.js"></script>
<script src="script.js"></script>
</head>
<body>
<div id="player" role="main">
<div id="display">
<div id="wait"><span class="glyphicon glyphicon-signal"></span></div>
<div id="file">—</div>
<div id="album">—</div>
<div id="artist">—</div>
<div id="track">—</div>
<div id="progbox">
<span id="switch">—</span>
<span id="timestart">00:00</span>
<progress id="progress" min="0" max="100" value="0"></progress>
<span id="timeend">00:00</span>
<span id="of">—</span>
</div>
</div>
<div id="control">
<div class="btn-one">
<button id="prev"><span class="glyphicon glyphicon-step-backward"></span></button>
<button id="seekm"><span class="glyphicon glyphicon-backward"></span></button>
<button id="play"><span class="glyphicon glyphicon-play"></span></button>
<button id="pause"><span class="glyphicon glyphicon-pause"></span></button>
<button id="stop"><span class="glyphicon glyphicon-stop"></span></button>
<button id="seekp"><span class="glyphicon glyphicon-forward"></span></button>
<button id="next"><span class="glyphicon glyphicon-step-forward"></span></button>
</div>
<div class="btn-two">
<span id="ledsh" class="led"><button id="shuffle"><span class="glyphicon glyphicon-sort"></span></button></span>
<span id="ledra" class="led"><button id="repall"><span class="glyphicon glyphicon-repeat"></span></button></span>
<span id="ledrs" class="led"><button id="repsin"><span class="glyphicon glyphicon-refresh"></span></button></span>
<span id="ledrd" class="led"><button id="random"><span class="glyphicon glyphicon-random"></span></button></span>
<span id="ledcs" class="led"><button id="consume"><span class="glyphicon glyphicon-fire"></span></button></span>
</div>
<div id="volbox">
<span class="glyphicon glyphicon-volume-down"></span>
<input id="volume" type="range" min="0" max="100" value="0">
<span class="glyphicon glyphicon-volume-up"></span>
</div>
</div><!-- /control -->
<div id="playlist">...</div>
<div id="plstmisc">
<select id="listplaylist" style="width:120px; height:25px; margin:0;"></select>
<button id="clear"><span class="glyphicon glyphicon-remove"></span></button>
<div id="searchbox">
<input id="search" type="search" placeholder="Album, Artist, Title">
<button id="find"><span class="glyphicon glyphicon-search"></span></button>
</div>
</div><!-- /plstmisc -->
</div><!-- /player -->
<footer>Copyright © 2014 ilya Balduev (MIT License). • View and download the code, click here: <a href="https://github.com/YaLiC/mpcwebshell">GitHub</a>. • <?php echo exec('mpc version'); ?></footer>
</body>
</html>