403Webshell
Server IP : 192.169.170.185  /  Your IP : 216.73.216.97
Web Server : Apache
System : Linux p3plmcpnl495852.prod.phx3.secureserver.net 4.18.0-553.52.1.lve.el8.x86_64 #1 SMP Wed May 21 15:31:29 UTC 2025 x86_64
User : akhilnew ( 1712764)
PHP Version : 5.6.40
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/akhilnew/www/cropandweed/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/akhilnew/www/cropandweed/admin/script.js
$(document).ready(function(){
	$('form').attr('autocomplete', 'off');$(':input,button').attr('disabled',false);$('.collapsible').collapsible();$('.datepicker').datepicker({dateFormat:'MM dd, yy'});

	$('form.ajax').live('submit', function(){
		var l=$('.loader'),i=$(':input,button'),opt = this.option.value,cnf = this.confrm.value;

		if(cnf && !confirm(cnf)){ $('button.h').hide(0);document.adminform.reset();ajaxLoad(); return false; }

		$.ajax({
			type:$(this).attr('method'),
			url:$(this).attr('action'),
			data:new FormData(this),
			cache:false,
			dataType:'json',
			contentType:false,
			processData:false,
			beforeSend:function(){
				l.show(0),i.attr('disabled', true),$('.toast').remove();
			},
			success:function(json){
				l.hide(0),i.attr('disabled',false);
				if(typeof(json.stat) !== 'undefined'){ ajaxLoad(); if($('form.fix').is(':visible')){$('form.fix').trigger('reset').hide(0);} }
				if(typeof(json.text) !== 'undefined'){ M.toast({html: json.text, displayLength: 30000}); }
				if(typeof(json.surl) !== 'undefined'){ location = json.surl; }
				if(typeof(json.path) !== 'undefined'){ $('form.fix').trigger('reset').hide(0);$('.fieldbox').show(0).find('input').val(json.path); }
				if(typeof(json.subj) !== 'undefined' && typeof(json.msgs) !== 'undefined'){
					$('.emf').find('[name=subject]').val(json.subj);
					$('.emf').find('[name=message]').val(json.msgs);
				}
			},
			error:function(jqXHR, exception){
				l.hide(0),i.attr('disabled', false);M.toast({html: eCTRL(jqXHR, exception), displayLength: 30000});
			}
		});
		return false;
    });
	$('#checkall').live('click',function(){
		if(this.checked){
			$('.checkbox').each(function(){ this.checked = true; });
		}else{
			$('.checkbox').each(function(){ this.checked = false; });
		}
		if($('.checkbox:checked').length > 0){
			$('button.h').show(0);
			$('.checkbox').parents('tr').addClass('checkedrow');
		}else{
			$('button.h').hide(0);
			$('.checkbox').parents('tr').removeClass('checkedrow');
		}
	});
	$('.checkbox').live('click',function(){
		if($('.checkbox:checked').length == $('.checkbox').length){ $('#checkall').prop('checked',true); } else { $('#checkall').prop('checked',false); }
		if($('.checkbox:checked').length > 0){
			$('button.h').show(0);
			if(this.checked){ $(this).parents('tr').addClass('checkedrow'); } else { $(this).parents('tr').removeClass('checkedrow'); }
		}else{
			$('button.h').hide(0);
			$(this).parents('tr').removeClass('checkedrow');
		}
	});
	$('table input[type=text]').live('focus', function(){
		$(this).parents('tr').find('.checkbox').attr('checked',true);$('button.h').show(0);
	});
	$('table input[type=text]').live('keypress', function(e){
		if(e.keyCode == 13){
			return false;
		}
	});

	var lastChecked = null;

    $('.checkbox').live('click',function(e){
        if(!lastChecked){
            lastChecked = this;
            return;
        }
        if(e.shiftKey){
            var start = $('.checkbox').index(this);
            var end = $('.checkbox').index(lastChecked);

            $('.checkbox').slice(Math.min(start,end), Math.max(start,end)+ 1).prop('checked', lastChecked.checked).parents('tr').addClass('checkedrow');
        }
        lastChecked = this;
    });

	var e={cssClass:'el-rte',height:450,toolbar:'complete',cssfiles:['https://www.akinik.com/htmleditor/css/elrte-inner.css']};
	$('[id*=htmleditor]').each(function(){$(this).elrte(e)});
});
$('.int').live('paste input', function(e){
	var initVal = $(this).val();
	outputVal = initVal.replace(/[^0-9]/g, '');
	if(initVal != outputVal)
		$(this).val(outputVal);
});
$('.dec').live('paste input', function(e){
	var initVal = $(this).val();
	outputVal = initVal.replace(/[^0-9.]/g, '');
	if(initVal != outputVal)
		$(this).val(outputVal);
});
function cURL(param){
	if(param){
		location = document.adminform.action + '/' + param;
	}else{
		history.back();
	}
}
function sOPT(opt, cnf, btn){
	document.adminform.option.value = opt;
	if(typeof(cnf) !== 'undefined'){ document.adminform.confrm.value = cnf; }
	if(typeof(btn) !== 'undefined'){ $(btn).parents('tr').find('.checkbox').attr('checked',true); }
}
function pURL(url){
	history.pushState({}, null, url);
	ajaxLoad();	$('html, body').animate({ scrollTop: 0 }, 300);
}
function ajaxLoad(){
	$('#ajax-load').load(location + ' #ajax-load>*','',function(){
		$('form').attr('autocomplete', 'off');$(':input,button').attr('disabled',false);$('.collapsible').collapsible();$('.datepicker').datepicker({dateFormat:'MM dd, yy'});
		var e={cssClass:'el-rte',height:450,toolbar:'complete',cssfiles:['https://www.akinik.com/htmleditor/css/elrte-inner.css']};
		$('[id*=htmleditor]').each(function(){$(this).elrte(e)});
	});
}
function pagination(page){
	pURL('?pn=' + page.replace(/(^[\s]+|[\s]+$)/g, ''));
}
function eSEARCH(keyword){
	$('.toast').remove();
	if(keyword){
		pURL(document.searchform.action + '/' + keyword);
	}else{
		M.toast({html: 'Please enter keyword.', displayLength: 30000});
	}
	return false;
}
function compose(formClass, to){
	$('form.fix').trigger('reset').hide(0);

	if(typeof(to) == 'undefined'){ to = null; }

	$(formClass).trigger('reset').show(0).find('[name=to]').val(to);
}

function cLOGIN($this){
	var l = $('.progress'),i = $(':input,button');
	$.ajax({
		type:$($this).attr('method'),
		url:$($this).attr('action'),
		data:$($this).serialize(),
		cache:false,
		dataType:'json',
		beforeSend:function(){
			l.show(0),i.attr('disabled', true);$('.toast').remove();
		},
		success:function(json){
			if(typeof(json.text) !== 'undefined'){ l.hide(0),i.attr('disabled',false);M.toast({html: json.text, displayLength: 30000}); }
			if(typeof(json.surl) !== 'undefined'){ location = json.surl; }
			if(typeof(json.html) !== 'undefined'){ l.hide(0),i.attr('disabled',false);$('.holder').html(json.html); }
		},
		error:function(jqXHR, exception){
			l.hide(0),i.attr('disabled',false);M.toast({html: eCTRL(jqXHR, exception), displayLength: 30000});
		}
	});
	return false;
}
function eCTRL(jqXHR,exception){if(jqXHR.status===0){return 'Not connected. Please verify your network connection.';}else if(jqXHR.status==404){return 'The requested page not found. [404]';}else if(jqXHR.status==500){return 'Internal Server Error [500].';}else if(exception==='parsererror'){return 'Requested JSON parse failed.';}else if(exception==='timeout'){return 'Time out error.';}else if(exception==='abort'){return 'Ajax request aborted.';}else{return 'Uncaught Error: '+jqXHR.responseText;}}

Youez - 2016 - github.com/yon3zu
LinuXploit