AnonSec Shell
Server IP : 104.21.37.246  /  Your IP : 172.71.28.145   [ Reverse IP ]
Web Server : Apache
System : Linux cpanel01wh.bkk1.cloud.z.com 2.6.32-954.3.5.lve1.4.59.el6.x86_64 #1 SMP Thu Dec 6 05:11:00 EST 2018 x86_64
User : cp648411 ( 1354)
PHP Version : 7.2.34
Disable Function : NONE
Domains : 0 Domains
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/cp648411/www/simded.com/mybackend/include/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     [ BACKUP SHELL ]     [ JUMPING ]     [ MASS DEFACE ]     [ SCAN ROOT ]     [ SYMLINK ]     

Current File : /home/cp648411/www/simded.com/mybackend/include/function.js
$(document).ready(function() {
	
	$("#idcard").mask("9-9999-99999-99-9");
	
});

function fn_email(id,ty)
{
	if(!id.match(/^[\w]{1}[\w\.\-_]*@[\w]{1}[\w\-_\.]*\.[\w]{2,6}$/i))return false;
	var xmlhttp = new XMLHttpRequest();
		xmlhttp.onreadystatechange = function() {
			if (this.readyState == 4 && this.status == 200) {
				if(this.responseText == true)
				{
					document.getElementById('ck_email').value = 'Y';
					document.getElementById('email').focus();
					document.getElementById('hideemail').innerHTML = '';
				}
				else
				{
					document.getElementById('ck_email').value = 'N';
					alert("ขออภัยค่ะชื่ออีเมลนี้มีในระบบแล้วค่ะ");document.getElementById('email').focus();
					document.getElementById('hideemail').innerHTML = '<span style="color:#F00">ขออภัยค่ะชื่ออีเมลนี้มีในระบบแล้วค่ะ</span>';
				}
			}
		};
		xmlhttp.open("GET", "../include/ajxa_ck_email.php?id="+id+'&ty='+ty, true);
		xmlhttp.send();
}

function fn_idcard(id,ty)
{
	if(id.length != 17) return false;
	var ck;
	//alert(id.length);
	var text = id.substr(0, 1) + id.substr(2,4) + id.substr(7, 5) + id.substr(13,2) + id.substr(16,1);
	for(i=0, sum=0; i < 12; i++)
	{
		sum += parseFloat(text.charAt(i))*(13-i); 
	}
	if((11-sum%11)%10!=parseFloat(text.charAt(12)))
	{ck = false;}else{ck = true;}
	
	//alert(ck);
	if(ck == true)
	{
		var xmlhttp = new XMLHttpRequest();
		xmlhttp.onreadystatechange = function() {
			if (this.readyState == 4 && this.status == 200) {
				if(this.responseText == true)
				{
					document.getElementById('ck_idcard').value = 'Y';
					document.getElementById('idcard').focus();
					document.getElementById('hideidcard').innerHTML = '';
				}
				else
				{
					document.getElementById('ck_idcard').value = 'N';
					alert("ขออภัยค่ะเลขบัตรประชาชนมีในระบบแล้วค่ะ");document.getElementById('idcard').focus();
					document.getElementById('hideidcard').innerHTML = '<span style="color:#F00">ขออภัยค่ะเลขบัตรประชาชนมีในระบบแล้วค่ะ</span>';
				}
			}
		};
		xmlhttp.open("GET", "../include/ajxa_ck_idcard.php?id="+id+'&ty='+ty, true);
		xmlhttp.send();
	}
	else
	{
		document.getElementById('ck_idcard').value = 'N';
		alert("ขออภัยค่ะเลขบัตรประชาชนไม่ถูกต้อง");document.getElementById('idcard').focus();
		document.getElementById('hideidcard').innerHTML = '<span style="color:#F00">ขออภัยค่ะเลขบัตรประชาชนไม่ถูกต้อง</span>';
	}
}

function fn_phonenumber(id)
{
	if(id.length != 10)
	{ 
		document.getElementById('ck_phonenumber').value = 'N';
		alert("ขออภัยค่ะหมายเลขโทรศัพท์ไม่ถูกต้อง");document.getElementById('phonenumber').focus();
		document.getElementById('hidephonenumber').innerHTML = '<span style="color:#F00">ขออภัยค่ะหมายเลขโทรศัพท์ไม่ถูกต้อง</span>';
	}
	else
	{
			var xmlhttp = new XMLHttpRequest();
			xmlhttp.onreadystatechange = function() {
				if (this.readyState == 4 && this.status == 200) {
					if(this.responseText == true)
					{
						document.getElementById('ck_phonenumber').value = 'Y';
						document.getElementById('phonenumber').focus();
						document.getElementById('hidephonenumber').innerHTML = '';
					}
					else
					{
						document.getElementById('ck_phonenumber').value = 'N';
						alert("ขออภัยค่หมายเลขโทรศัพท์มีในระบบแล้วค่ะ");document.getElementById('phonenumber').focus();
						document.getElementById('hidephonenumber').innerHTML = '<span style="color:#F00">ขออภัยค่ะหมายเลขโทรศัพท์มีในระบบแล้วค่ะ</span>';
					}
				}
			};
			xmlhttp.open("GET", "../include/ajxa_ck_phonenumber.php?id="+id, true);
			xmlhttp.send();
	}
	
}
function fn_ckname(name,type)
{
	var xmlhttp = new XMLHttpRequest();
			xmlhttp.onreadystatechange = function() {
				if (this.readyState == 4 && this.status == 200) {
					//document.getElementById('hideckname').innerHTML = this.responseText;
					if(this.responseText == true)
					{
						document.getElementById('ck_ckname').value = 'Y';
						document.getElementById('code').focus();
						document.getElementById('hideckname').innerHTML = '';
					}
					else
					{
						document.getElementById('ck_ckname').value = 'N';
						alert("ขออภัยค่ะชื่อรหัสมนี้ีคนใช้แล้วค่ะ");document.getElementById('code').focus();
						document.getElementById('hideckname').innerHTML = '<span style="color:#F00">ขออภัยค่ะชื่อรหัสมนี้ีคนใช้แล้วค่ะ</span>';
					}
				}
			};
			xmlhttp.open("GET", "../include/ajxa_ck_namecode.php?name="+name+"&ty="+type, true);
			xmlhttp.send();
}

Anon7 - 2022
AnonSec Team