403Webshell
Server IP : 103.48.194.25  /  Your IP : 216.73.216.74
Web Server : Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/7.4.33
System : Linux VMHostDefault 3.10.0-1160.42.2.el7.x86_64 #1 SMP Tue Sep 7 14:49:57 UTC 2021 x86_64
User : sieuthimay ( 1016)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /var/www/zomuaban.com/public_html/site/views/backend/pages/message/inc/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /var/www/zomuaban.com/public_html/site/views/backend/pages/message/inc/_script.php
<script>
var $msgForm = $('#send-new-msg');
$(document).ready(function(){
	$msgForm.hide();
	
	// click button to submit message
	$msgForm.find('.submit-btn').click(function(e){
		e.preventDefault();	
		
		var $data = {};
			$data.content =  tinymce.get('post-content').getContent(); 
		
		if($($data.content).text().length < 50 ){
			Alertt.show({msg:'Tin nhắn quá ngắn. Tối thiểu phải <b>50 kí tự</b>'}); 
			return;
		}
		
		var $submitBtn = $(this);
			$submitBtn.button('loading');
		
		jQuery.ajax({		
			type:"POST",
			url	:$conf.base_url('ajax_system_message'), 
			data:$data,			 
			success:function(result){	
				var data = $.parseJSON(result);		
				
				Logger.debug(data);
				
				if(data.success){
					window.location.reload();
				}
			}
		});
	});
	
	// Slect all
	$('#select-all-check').click(function() {
		$('.list-group .checkbox').find('input').prop('checked', $(this).prop('checked'));	
	});
	
	$('#DEL #action .submit-btn').click(function() {
		var $btn = $(this);
			$btn.button('loading');
			
		// Danh sách IDs tin nhắn cần xóa
		var $data = [];
		$(".list-group .checkbox input:checkbox:checked").each(function(){
			$data.push(parseInt($(this).val()));
		});
		
		//Logger.debug($data);return;
		
		jQuery.ajax({		
			type:"POST",
			url	:$conf.base_url('ajax_remove_message'), 
			data:{'ids':$data},			 
			success:function(result){	
				var data = $.parseJSON(result);					
				if(data.success){
					// Ẩn hết THÔNG BÁO
					$.each($data, function(i,o){
						$(".list-group tr[data-id="+o+"]").remove();
					})
					$btn.button('reset');
				}
			}
		});
	});
})

startAdd  = function(){
	if($msgForm.css('display')=='none')$msgForm.slideDown();
	else $msgForm.slideUp();
}

startDel = function (){	
	var $count = 0;
	$(".list-group .checkbox input:checkbox:checked").each(function(){
		$count++;
	});
	
	if($count == 0){
		$('#DEL #alert-select-msg').show();
		$('#DEL #action').hide();
	}else{
		$('#DEL #alert-select-msg').hide();
		$('#DEL #action').show();
	}
}

</script>

Youez - 2016 - github.com/yon3zu
LinuXploit