summaryrefslogtreecommitdiffhomepage
path: root/modules/admin-full/luasrc/view/admin_system
diff options
context:
space:
mode:
authorSteven Barth <steven@midlink.org>2008-08-03 15:01:36 +0000
committerSteven Barth <steven@midlink.org>2008-08-03 15:01:36 +0000
commitf26e93beadda6cc361c4551777f1d728d9ddfa7d (patch)
tree84fd7adb7caef7123bf5c8943716fda85a223758 /modules/admin-full/luasrc/view/admin_system
parente3097c4df37e0c12246b15c44cb3fc076bc256fe (diff)
admin-full, admin-mini: Added configuration backup, restore, reset page
admin-full, admin-mini: Fixed a bug in firmware upgrade preventing configuration files from being kept
Diffstat (limited to 'modules/admin-full/luasrc/view/admin_system')
-rw-r--r--modules/admin-full/luasrc/view/admin_system/applyreboot.htm21
-rw-r--r--modules/admin-full/luasrc/view/admin_system/backup.htm40
2 files changed, 61 insertions, 0 deletions
diff --git a/modules/admin-full/luasrc/view/admin_system/applyreboot.htm b/modules/admin-full/luasrc/view/admin_system/applyreboot.htm
new file mode 100644
index 000000000..cbfa23d31
--- /dev/null
+++ b/modules/admin-full/luasrc/view/admin_system/applyreboot.htm
@@ -0,0 +1,21 @@
+<%#
+LuCI - Lua Configuration Interface
+Copyright 2008 Steven Barth <steven@midlink.org>
+Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+$Id$
+
+-%>
+<%+header%>
+<h1><%:system%></h1>
+<br />
+<p><% if msg then %><%=msg%><% else %><%:a_s_applyreboot1%><% end %></p>
+<p><%:a_s_reboot_running%></p>
+<script type="text/javascript">setTimeout("location='<%=controller%>'", 60000)</script>
+<%+footer%> \ No newline at end of file
diff --git a/modules/admin-full/luasrc/view/admin_system/backup.htm b/modules/admin-full/luasrc/view/admin_system/backup.htm
new file mode 100644
index 000000000..42d338e1d
--- /dev/null
+++ b/modules/admin-full/luasrc/view/admin_system/backup.htm
@@ -0,0 +1,40 @@
+<%#
+LuCI - Lua Configuration Interface
+Copyright 2008 Steven Barth <steven@midlink.org>
+Copyright 2008 Jo-Philipp Wich <xm@leipzig.freifunk.net>
+
+Licensed under the Apache License, Version 2.0 (the "License");
+you may not use this file except in compliance with the License.
+You may obtain a copy of the License at
+
+ http://www.apache.org/licenses/LICENSE-2.0
+
+$Id$
+
+-%>
+<%+header%>
+<h1><%:system%></h1>
+<h2><%:a_s_backup%></h2>
+<p><%:a_s_backup1%></p>
+<br />
+<div>
+ <ul>
+ <li><a href="<%=REQUEST_URI%>?backup=kthxbye"><%:a_s_backup_backup%></a></li>
+ <% if reset_avail then -%>
+ <li><a href="<%=REQUEST_URI%>?reset=yarly" onclick="return confirm('<%:a_s_backup_reset1%>')"><%:a_s_backup_reset%></a></li>
+ <% end -%>
+ </ul>
+</div>
+
+<br />
+
+<form method="post" action="<%=REQUEST_URI%>" enctype="multipart/form-data">
+ <div class="left"><%:a_s_backup_archive%>:</div>
+ <div>
+ <input type="file" size="30" name="archive" />
+ </div>
+ <div>
+ <input type="submit" value="<%:a_s_backup_restore%>" />
+ </div>
+</form>
+<%+footer%> \ No newline at end of file