From 7a5103ae90370884c31746b778de0bf9b2664431 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Mon, 1 Apr 2013 12:31:55 +0400 Subject: move addInstance call to instances plugin --- plugins/instances/init.php | 49 ++++++++++++++++++++++++++++++++++++++++++ plugins/instances/instances.js | 2 +- 2 files changed, 50 insertions(+), 1 deletion(-) (limited to 'plugins/instances') diff --git a/plugins/instances/init.php b/plugins/instances/init.php index 6e8d43e9b..6a7f7003a 100644 --- a/plugins/instances/init.php +++ b/plugins/instances/init.php @@ -392,6 +392,55 @@ class Instances extends Plugin implements IHandler { } } + function addInstance() { + print ""; + print ""; + + print "
".__("Instance")."
"; + + print "
"; + + /* URL */ + + print __("URL:") . " "; + + print ""; + + print "
"; + + $access_key = sha1(uniqid(rand(), true)); + + /* Access key */ + + print __("Access key:") . " "; + + print ""; + + print "

" . __("Use one access key for both linked instances."); + + print "

"; + + print "
+
+ +
+ +
"; + + return; + } } ?> diff --git a/plugins/instances/instances.js b/plugins/instances/instances.js index 83213896d..4a60692b3 100644 --- a/plugins/instances/instances.js +++ b/plugins/instances/instances.js @@ -1,6 +1,6 @@ function addInstance() { try { - var query = "backend.php?op=dlg&method=addInstance"; + var query = "backend.php?op=pluginhandler&plugin=instances&method=addInstance"; if (dijit.byId("instanceAddDlg")) dijit.byId("instanceAddDlg").destroyRecursive(); -- cgit v1.2.3