-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathapp.html
156 lines (144 loc) · 6.74 KB
/
app.html
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
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title></title>
<meta name="viewport" content="width=device-width, initial-scale=1">
<meta name="apple-mobile-web-app-capable" content="yes">
<meta name="apple-mobile-web-app-status-bar-style" content="black">
<link href="dist/jquery1.css" rel="stylesheet">
<link href="dist/jquery2.css" rel="stylesheet">
<script src="dist/jquery1.js"></script>
<script src="dist/jquery2.js"></script>
<link rel="stylesheet" type="text/css" href="dist/core.css">
<link rel="stylesheet" type="text/css" href="dist/bootstrap.css">
<link rel="stylesheet" type="text/css" href="dist/l2.css">
<script>
var username = sessionStorage.getItem("current_user");
if (username == null || username == "" || username == "null"){
window.location = "index.html";
}
</script>
<script src="scripts.js"></script>
<script src="dist/sweetalert.min.js"></script>
<link rel="stylesheet" type="text/css" href="dist/sweetalert.css">
<script src="dist/alertify.js"></script>
<link rel="stylesheet" type="text/css" href="dist/alertify.css">
</head>
<body>
<div data-role="page" data-control-title="Home" id="page1">
<div data-theme="a" data-role="header" class="topbar">
<h1 class="title">
JSS Backup Utility
</h1>
</div>
<div role="main" class="ui-content">
<div class="split-wrapper">
<div class="content-secondary">
<h3 class="uititles">Server:</h3>
<h3 class="uititles" id="server_info"></h3>
<input id="ssh_pass" class="button-bar" type="password" placeholder="SSH Pass">
<input id="mysql_pass" class="button-bar" type="password" placeholder="MySQL DB Pass">
<div onclick="osType();"> <a href="#" class="ui-btn button-bar delete">
Reset Configuration
</a></div>
<div onclick="takeAction('test_connection');"> <a href="#" class="ui-btn button-bar">
Test Connection
</a></div>
<h3 class="uititles">
Server Actions
</h3>
<a href="#" onclick="takeAction('stop_tomcat');" class="ui-btn button-bar">
Stop Tomcat
</a>
<div onclick="takeAction('start_tomcat');"> <a href="#" class="ui-btn button-bar">
Start Tomcat
</a></div>
</div>
<div class="content-primary database-backup-config">
<h3 class="uititles">
Backups
</h3>
<div class="ui-grid-a">
<div class="ui-block-a">
<h3 class="uititles">
Save Backup
</h3>
<div onclick="takeAction('backup_local');"><a href="#page1" class="ui-btn button-bar">
Save Backup
</a></div>
<input id="local_path" class="button-bar" placeholder="Local Path ('/tmp/backups')">
<div onclick="takeAction('backup_local_and_download');"><a href="#page1" class="ui-btn button-bar">
Save and Download Backup
</a></div>
<div id="backup_download"></div>
</div>
<div class="ui-block-b">
<h3 class="uititles">
Restore Backup
</h3>
<div onclick="takeAction('restore_local');"><a href="#page1" class="ui-btn button-bar">
Restore From SQL File
</a></div>
<input id="local_restore_path" class="button-bar" placeholder="Restore Path ('/tmp/db.sql')">
</div>
<div class="ui-block-a">
<h3 class="uititles">
Schedule Backups
</h3>
<select id="schedule_backup" class="button-bar">
<option>Never</option>
<option>0:00</option>
<option>1:00</option>
<option>2:00</option>
<option>3:00</option>
<option>4:00</option>
<option>5:00</option>
<option>6:00</option>
<option>7:00</option>
<option>8:00</option>
<option>9:00</option>
<option>10:00</option>
<option>11:00</option>
<option>12:00</option>
<option>13:00</option>
<option>14:00</option>
<option>15:00</option>
<option>16:00</option>
<option>17:00</option>
<option>18:00</option>
<option>19:00</option>
<option>20:00</option>
<option>21:00</option>
<option>22:00</option>
<option>23:00</option>
</select>
<input id="schedule_backup_path" type="text" class="button-bar" value="/Library/JSS/Backups/Database">
</div>
<div class="ui-block-b">
<h3 class="uititles">
Delete Backups Older Than
</h3>
<select id="delete_older_than" class="button-bar">
<option>Do Not Delete</option>
<option>1 Day</option>
<option>2 Days</option>
<option>3 Days</option>
<option>5 Days</option>
<option>7 Days</option>
<option>14 Days</option>
<option>30 Days</option>
<option>60 Days</option>
<option>90 Days</option>
<option>180 Days</option>
</select>
<input type="text" id="delete_older_than_path" class="button-bar" value="/Library/JSS/Backups/Database">
</div>
</div>
<br><center><a href="credits.txt" target="_blank">Credits</a></center>
</div>
</div>
</div>
</div>
</body>
</html>