fix process

This commit is contained in:
hystepik 2023-02-24 11:05:54 +01:00
parent 763001625b
commit 5f8bff123b
2 changed files with 3 additions and 6 deletions

View File

@ -35,9 +35,6 @@ if (!defined('NOREQUIREAJAX')) {
if (!defined('NOREQUIRESOC')) {
define('NOREQUIRESOC', '1');
}
if (!defined('NOCSRFCHECK')) {
define('NOCSRFCHECK', '1');
}
// If there is no need to load and show top and left menu
if (!defined("NOLOGIN")) {
define("NOLOGIN", '1');

View File

@ -109,7 +109,7 @@ print '<br><br>'."\n";
// Test6a: Upload of big files
print "Test 6a: Upload of big files<br>\n";
print "The file will be uploaded in the directory: documents/test_form/temp/<br>\n";
print "The file will be uploaded in the directory: documents/test/temp/<br>\n";
if (is_file(DOL_DOCUMENT_ROOT.'/includes/flowjs/flow.js')) {
print '<button id="buttonbigupload" type="button">Browse...</button>';
@ -121,7 +121,7 @@ if (is_file(DOL_DOCUMENT_ROOT.'/includes/flowjs/flow.js')) {
jQuery(document).ready(function() {
var flow = new Flow({
target:"'.DOL_URL_ROOT.'/core/ajax/flowjs-server.php",
query:{module:"test_form"},
query:{module:"test", token:"'.newToken().'"},
testChunks:false
});
';
@ -166,7 +166,7 @@ if (is_file(DOL_DOCUMENT_ROOT.'/includes/flowjs/flow.js')) {
';
print '</script>';
} else {
print "If this message displays, please add flow.js file which can be found here :https://github.com/flowjs/flow.js and place the js lib in htdocs/includes/flowjs/<br>\n";
print "If this message displays, please add flow.js and flow.min.js files which can be found here: https://github.com/flowjs/flow.js and place the js lib in htdocs/includes/flowjs/<br>\n";
}
print '</div>';