summaryrefslogtreecommitdiff
path: root/swat/install
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2005-08-28 22:17:07 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 13:34:53 -0500
commitd6cd54fb0a1c3ac51479d1fdcff91893c27ef9d7 (patch)
tree2d8964994e7b8c282c3e8ee87480bccdc8585c4a /swat/install
parent8b15ef881d21b713817bb3aa3599288ecdde0d28 (diff)
downloadsamba-d6cd54fb0a1c3ac51479d1fdcff91893c27ef9d7.tar.gz
samba-d6cd54fb0a1c3ac51479d1fdcff91893c27ef9d7.tar.bz2
samba-d6cd54fb0a1c3ac51479d1fdcff91893c27ef9d7.zip
r9718: Work a bit on the SWAT interface
(This used to be commit b1844905d2c1ca26aef0ccba799ff16383348fc1)
Diffstat (limited to 'swat/install')
-rw-r--r--swat/install/samba3.esp40
1 files changed, 40 insertions, 0 deletions
diff --git a/swat/install/samba3.esp b/swat/install/samba3.esp
new file mode 100644
index 0000000000..ead694a107
--- /dev/null
+++ b/swat/install/samba3.esp
@@ -0,0 +1,40 @@
+<% page_header("columns", "Upgrade", "install");
+
+ include("/scripting/forms.js");
+ libinclude("base.js");
+ libinclude("provision.js");
+ libinclude("samba3.js");
+%>
+
+<h1>Import from Samba3</h1>
+
+<%
+var f = FormObj("Import from Samba3", 0, 2);
+var i;
+
+f.add("SMBCONF", "smb.conf file");
+f.add("LIBDIR", "Lib directory");
+f.submit[0] = "Import";
+f.submit[1] = "Cancel";
+
+if (form['submit'] == "Cancel") {
+ redirect("/");
+}
+
+if (form['submit'] == "Import") {
+ for (r in form) {
+ subobj[r] = form[r];
+ }
+}
+
+f.element[0].value = "/etc/samba/smb.conf";
+f.element[1].value = "/var/lib/samba";
+
+if (form['submit'] == "import") {
+ // provision(subobj, writefln, false);
+} else {
+ f.display();
+}
+%>
+
+<% page_footer(); %>