Added log to find and replace to diagnose replace that does nothing error, Updated access denied messages, Continued work on new file manager update, Reverted Market as this work may need to be started on a new branch

This commit is contained in:
xevidos 2019-10-27 23:34:33 -04:00
parent 825154a4b3
commit 1c481f585a
5 changed files with 27 additions and 42 deletions

View file

@ -1415,6 +1415,9 @@
var replace = $( '#modal input[name="replace"]' )
.val();
}
console.log( action, i, find, replace );
switch ( action ) {
case 'find':

View file

@ -140,7 +140,7 @@ class Filemanager extends Common {
if( ! Common::checkPath( $path ) ) {
$response["status"] = "error";
$response["message"] = "No access.";
$response["message"] = "You do not have access to delete this file";
} else {
$path = self::formatPath( $path );

View file

@ -491,6 +491,12 @@
node.addClass( 'loading' );
$.get( this.controller + '?action=index&path=' + encodeURIComponent( path ), function( data ) {
let expanded = parentNode.children( 'span' ).hasClass( 'plus' )
if( expanded ) {
parentNode.children( 'span' ).removeClass( 'plus' ).addClass( 'minus' );
}
node.addClass( 'open' );
let response = codiad.jsend.parse( data );

View file

@ -1,47 +1,24 @@
/*
* Copyright (c) Codiad & daeks (codiad.com), and Isaac Brown (telaaedifex.com), distributed
* Copyright (c) Codiad & daeks (codiad.com), distributed
* as-is and without warranty under the MIT License. See
* [root]/license.txt for more. This information must remain intact.
*/
( function( global, $ ) {
(function(global, $){
let codiad = global.codiad;
var codiad = global.codiad;
$( function() {
$(function() {
codiad.market.init();
});
codiad.market.init();
});
codiad.market = {
codiad.market = {
controller: 'components/market/controller.php',
dialog: 'components/market/dialog.php',
controller: 'components/market/controller.php',
dialog: 'components/market/dialog.php',
plugins: [],
themes: [],
init: function() {},
get_all: function() {},
get_installed_plugins: function() {},
get_installed_themes: function() {},
get_plugins: function() {},
get_themes: function() {},
install: function() {},
search: function() {},
uninstall: function() {},
update: function() {},
};
})( this, jQuery );
/*
init: function() {
},
//////////////////////////////////////////////////////////////////
// Open marketplace
@ -122,5 +99,4 @@
});
},
};
*/
})(this, jQuery);

View file

@ -45,7 +45,7 @@ if( $_GET['action'] == 'add_user' ) {
$user = $_GET['user_id'];
} else {
exit( formatJSEND( "error", "No user id set." ) );
exit( formatJSEND( "error", "No user id set." ) );
}
if( isset( $_GET['project_path'] ) && $_GET['project_path'] != '' ) {
@ -58,7 +58,7 @@ if( $_GET['action'] == 'add_user' ) {
if( $Project->check_owner( $_GET['project_path'], true ) ) {
return $Project->add_user( $project, $user, $access );
exit( json_encode( $Project->add_user( $project, $user, $access ) ) );
} else {
exit( formatJSEND( "error", "You can not manage this project." ) );