Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/nextcloudpi.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ncp-web/ncp-launcher.php')
-rw-r--r--ncp-web/ncp-launcher.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/ncp-web/ncp-launcher.php b/ncp-web/ncp-launcher.php
index d6c52b37..eb2281ae 100644
--- a/ncp-web/ncp-launcher.php
+++ b/ncp-web/ncp-launcher.php
@@ -177,6 +177,16 @@ else if ( $_POST['action'] == "cfg-ui" )
}
//
+// dl-token
+//
+else if ( $_POST['action'] == "next-dl" )
+{
+ echo '{ "token": "' . getCSRFToken() . '",'; // Get new token
+ echo '"token_dl": "' . getCSRFToken() . '",'; // Get new download token
+ echo ' "ret": "' . $ret . '" }';
+}
+
+//
// path field
//
else if ( $_POST['action'] == "path-exists" )