-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.php
More file actions
36 lines (35 loc) · 1.49 KB
/
index.php
File metadata and controls
36 lines (35 loc) · 1.49 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
<?php
$page = "plugins-VBAN-Custom";
?>
<div class="col-md-8">
<h3 class="mb-5">
Custom actions
</h3>
<form role="form" action="plugin_action.php" method="get">
<div class="form-group">
<input type="hidden" name="name" value="VBAN-Custom" />
<input type="hidden" name="args" value="/my/script/here.sh" />
<button type="submit" class="btn btn-success">
Command #1 (script)
</button>
</div>
</form>
<form role="form" action="plugin_action.php" method="get">
<div class="form-group">
<input type="hidden" name="name" value="VBAN-Custom" />
<input type="hidden" name="args" value="command blabla -w -p -o /home/pi/test" />
<button type="submit" class="btn btn-success">
Command #2 (software)
</button>
</div>
</form>
<form role="form" action="plugin_action.php" method="get">
<div class="form-group">
<input type="hidden" name="name" value="VBAN-Custom" />
<input type="hidden" name="args" value="pkill test" />
<button type="submit" class="btn btn-success">
Command #3 (kill software)
</button>
</div>
</form>
</div>