Software: Apache/2.0.54 (Fedora). PHP/5.0.4 uname -a: Linux mina-info.me 2.6.17-1.2142_FC4smp #1 SMP Tue Jul 11 22:57:02 EDT 2006 i686 uid=48(apache) gid=48(apache) groups=48(apache) Safe-mode: OFF (not secure) /home/mnnews/public_html/dwmail/scripts/ drwxr-xr-x |
Viewing file: Select action/file-type: var starttime = new Date(); var f1 = new Array("Arial, Helvetica, sans-serif","Arial Black","Comic Sans MS","Courier New, Courier, mono","Fixedsys","Garamond","Georgia, Times New Roman, Times, serif","Geneva, Arial, Helvetica, sans-serif","Impact","Microsoft Sans Serif, Helvetica, sans-serif","System","Tahoma, Verdana, Arial, Helvetica, sans-serif","Times New Roman, Times, serif","Trebuchet MS, Verdana, Arial, Helvetica, sans-serif","Verdana, Arial, Helvetica, sans-serif"); var f2 = new Array("Arial","Arial Black","Comic Sans MS","Courier New","Fixedsys","Garamond","Georgia","Geneva","Impact","Microsoft Sans Serif","System","Tahoma","Times New Roman","Trebuchet MS","Verdana"); var c1 = new Array("FFFFCC","FFCC66","FF9900","FFCC99","FF6633","FFCCCC","CC9999","FF6699","FF99CC","FF66CC","FFCCFF","CC99CC","CC66FF","CC99FF","9966CC","CCCCFF","9999CC","3333FF","6699FF","0066FF","99CCFF","66CCFF","99CCCC","CCFFFF","99FFCC","66CC99","66FF99","99FF99","CCFFCC","33FF33","66FF00","CCFF99","99FF00","CCFF66","CCCC66","FFFFFF"); var c2 = new Array("FFFF99","FFCC00","FF9933","FF9966","CC3300","FF9999","CC6666","FF3366","FF3399","FF00CC","FF99FF","CC66CC","CC33FF","9933CC","9966FF","9999FF","6666FF","3300FF","3366FF","0066CC","3399FF","33CCFF","66CCCC","99FFFF","66FFCC","33CC99","33FF99","66FF66","99CC99","00FF33","66FF33","99FF66","99FF33","CCFF00","CCCC33","CCCCCC"); var c3 = new Array("FFFF66","FFCC33","CC9966","FF6600","FF3300","FF6666","CC3333","FF0066","FF0099","FF33CC","FF66FF","CC00CC","CC00FF","9933FF","6600CC","6633FF","6666CC","3300CC","0000FF","3366CC","0099FF","00CCFF","339999","66FFFF","33FFCC","00CC99","00FF99","33FF66","66CC66","00FF00","33FF00","66CC00","99CC66","CCFF33","999966","999999"); var c4 = new Array("FFFF33","CC9900","CC6600","CC6633","FF0000","FF3333","993333","CC3366","CC0066","CC6699","FF33FF","CC33CC","9900CC","9900FF","6633CC","6600FF","666699","3333CC","0000CC","0033FF","6699CC","3399CC","669999","33FFFF","00FFCC","339966","33CC66","00FF66","669966","00CC00","33CC00","66CC33","99CC00","CCCC99","999933","666666"); var c5 = new Array("FFFF00","CC9933","996633","993300","CC0000","FF0033","990033","996666","993366","CC0099","FF00FF","990099","996699","660099","663399","330099","333399","000099","0033CC","003399","336699","0099CC","006666","00FFFF","33CCCC","009966","00CC66","339933","336633","33CC33","339900","669933","99CC33","666633","999900","333333"); var c6 = new Array("CCCC00","996600","663300","660000","990000","CC0033","330000","663333","660033","990066","CC3399","993399","660066","663366","330033","330066","333366","000066","000033","003366","006699","003333","336666","00CCCC","009999","006633","009933","006600","003300","00CC33","009900","336600","669900","333300","666600","000000"); var s1 = new Array("1","2","3","4","5","6","7"); // -------------------------------------------------------- function URLDecode(strEncoded){ var HEXCHARS = "0123456789ABCDEFabcdef"; var encoded = strEncoded; var plaintext = ""; var i = 0; while (i < encoded.length) { var ch = encoded.charAt(i); if (ch == "+") { plaintext += " "; i++; } else if (ch == "%") { if (i < (encoded.length-2) && HEXCHARS.indexOf(encoded.charAt(i+1)) != -1 && HEXCHARS.indexOf(encoded.charAt(i+2)) != -1 ) { plaintext += unescape( encoded.substr(i,3) ); i += 3; } else { alert( 'Bad escape combination near ...' + encoded.substr(i) ); plaintext += "%[ERROR]"; i++; } } else { plaintext += ch; i++; } } return plaintext; } // -------------------------------------------------------- function goSelect(select_box_name){ if (select_box_name.options[select_box_name.options.selectedIndex].value != 'returnvalue') { FontNameSelect = select_box_name.options[select_box_name.options.selectedIndex].value; ec("fontname",FontNameSelect); } select_box_name.options.selectedIndex = 0; } function goSelectSize(select_box_name){ if (select_box_name.options[select_box_name.options.selectedIndex].value != 'returnvalue') { FontSizeSelect = select_box_name.options[select_box_name.options.selectedIndex].value; ec("fontsize",FontSizeSelect); } select_box_name.options.selectedIndex = 0; } function goSelectColor(select_box_name){ if (select_box_name.options[select_box_name.options.selectedIndex].value != 'returnvalue') { FontColorSelect = select_box_name.options[select_box_name.options.selectedIndex].value; ec("forecolor",FontColorSelect); } select_box_name.options.selectedIndex = 0; } // -------------------------------------------------------- function ReFormat(form){ document.getElementById("body").value = getIFrameDocument("editorHTML").body.innerHTML; } // -------------------------------------------------------- function getOffsetTop(elm) { var mOffsetTop = elm.offsetTop; var mOffsetParent = elm.offsetParent; while(mOffsetParent) { mOffsetTop += mOffsetParent.offsetTop; mOffsetParent = mOffsetParent.offsetParent; } return mOffsetTop; } function getOffsetLeft(elm) { var mOffsetLeft = elm.offsetLeft; var mOffsetParent = elm.offsetParent; while(mOffsetParent) { mOffsetLeft += mOffsetParent.offsetLeft; mOffsetParent = mOffsetParent.offsetParent; } return mOffsetLeft; } function PopupHide() { document.getElementById("ForeColorBox").style.display = 'none'; document.getElementById("FontFaceBox").style.display = 'none'; document.getElementById("FontSizeBox").style.display = 'none'; changeImages('ifont2', 'images/wysiwyg/font_off.gif'); changeImages('isize2', 'images/wysiwyg/size_off.gif'); changeImages('icolour2', 'images/wysiwyg/forecolour_off.gif'); changeImages('icolour3', 'images/wysiwyg/downarrow_off.gif'); } // -------------------------------------------------------- function SelectSize() { PopupHide(); buttonElement = document.getElementById('isize'); if(document.getElementById("divFontSize").innerHTML == '') { document.getElementById("divFontSize").innerHTML = SizePicker("idFontSize","ec('fontsize', document.getElementById('idFontSize').value); RefreshElements();"); } document.getElementById("FontSizeBox").style.left = getOffsetLeft(buttonElement)+ 'px'; document.getElementById("FontSizeBox").style.top = getOffsetTop(buttonElement) + buttonElement.offsetHeight+ 'px'; document.getElementById("FontSizeBox").style.display = 'block'; changeImages('isize2', 'images/wysiwyg/size_on.gif'); } function SizePicker(strName, strCommand) { var ReturnID = strName; var sHTML = ""; sHTML += ("<table width='100%' cellpadding='2' border='0' cellspacing='0'><tr><td>"); sHTML += ("<table cellpadding='0' cellspacing='0' border='0' width=\"100%\">"); for(var r=0;r<eval("s1").length;r++) { sHTML += ("<tr>"); var size = eval("s1[r]"); sHTML += ("<td align=\"center\" onclick=\"document.getElementById('idFontSize').value='" + size + "';" + strCommand + "\" style=\" cursor:hand;\"><table width=\"100%\" cellpadding=\"2\" cellspacing=\"0\" style=\"border-width:1px; border-style:solid; background-color:#FFFFFF; border-color:#FFFFFF;\" onmouseover=\"this.style.backgroundColor='#FFD091'; this.style.borderColor='#4B4B6F';\" onmouseout=\"this.style.backgroundColor='#FFFFFF'; this.style.borderColor='#FFFFFF';\"><tr><td><font size=\""+ size + "\">"+ size +"</font></td></tr></table></td>"); sHTML += ("</tr>"); } sHTML += ("</table>"); sHTML += ("</td></tr><form><input type='hidden' id='idFontSize'></form></table>"); return sHTML; } // -------------------------------------------------------- function SelectFont() { PopupHide(); buttonElement = document.getElementById('ifont'); if(document.getElementById("divFontFace").innerHTML == '') { document.getElementById("divFontFace").innerHTML = FontPicker("idFontFace","ec('fontname', document.getElementById('idFontFace').value); RefreshElements();"); } document.getElementById("FontFaceBox").style.left = getOffsetLeft(buttonElement)+ 'px'; document.getElementById("FontFaceBox").style.top = getOffsetTop(buttonElement) + buttonElement.offsetHeight+ 'px'; document.getElementById("FontFaceBox").style.display = 'block'; changeImages('ifont2', 'images/wysiwyg/font_on.gif'); } function FontPicker(strName, strCommand) { var ReturnID = strName; var sHTML = ""; sHTML += ("<table width='100%' cellpadding='2' border='0' cellspacing='0'><tr><td>"); sHTML += ("<table cellpadding='0' cellspacing='0' border='0' width=\"100%\">"); for(var r=0;r<eval("f1").length;r++) { sHTML += ("<tr>"); var face = eval("f1[r]"); var facesel = eval("f2[r]"); sHTML += ("<td onclick=\"document.getElementById('idFontFace').value='" + face + "';" + strCommand + "\" style=\" cursor:hand;\"><table width=\"100%\" cellpadding=\"2\" cellspacing=\"0\" style=\"border-width:1px; border-style:solid; background-color:#FFFFFF; border-color:#FFFFFF;\" onmouseover=\"this.style.backgroundColor='#FFD091'; this.style.borderColor='#4B4B6F';\" onmouseout=\"this.style.backgroundColor='#FFFFFF'; this.style.borderColor='#FFFFFF';\"><tr><td><font face=\""+ face +"\" size=\"2\">"+ facesel +"</font></td></tr></table></td>"); sHTML += ("</tr>"); } sHTML += ("</table>"); sHTML += ("</td></tr><form><input type='hidden' id='idFontFace'></form></table>"); return sHTML; } // -------------------------------------------------------- function SelectColour() { PopupHide(); buttonElement = document.getElementById('icolour'); if(document.getElementById("divFgColor").innerHTML == '') { document.getElementById("divFgColor").innerHTML = ColourPicker("idForeColor","ec('forecolor', document.getElementById('idForeColor').value); RefreshElements();"); } document.getElementById("ForeColorBox").style.left = getOffsetLeft(buttonElement)+'px'; document.getElementById("ForeColorBox").style.top = getOffsetTop(buttonElement) + buttonElement.offsetHeight+'px'; document.getElementById("ForeColorBox").style.display = 'block'; changeImages('icolour2', 'images/wysiwyg/forecolour_on.gif'); changeImages('icolour3', 'images/wysiwyg/downarrow_on.gif'); } function ColourPicker(strName, strCommand) { var ReturnID = strName; var sHTML = ""; sHTML += ("<table style='border-width:1px; border-style:solid; border-color:#808080; background-color:#FFFFFF;' width='325' cellpadding='5' cellspacing='0'><tr><td>"); sHTML += ("<table cellpadding='0' cellspacing='2'>"); for(var i=1;i<=6;i++) { sHTML += ("<tr>"); for(var r=0;r<eval("c"+i).length;r++) { var colour = eval("c"+i+"[r]"); sHTML += ("<td onclick=\"document.getElementById('idForeColor').value='" + colour + "';" + strCommand + "\" style=\" cursor:hand; background-color:"+colour+";\" width=\"5\" height=\"10\"><table style=\"border-width:1px; border-style:solid; border-color:#808080;\" cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" onmouseover=\"this.style.borderColor='red';\" onmouseout=\"this.style.borderColor='#808080';\" style=\"background:#"+colour+";\"><tr><td height=\"10\" style=\"background:#"+colour+";\"><img src=\"images/spacer.gif\" width=\"5\" height=\"10\" alt=\"\" /></td></tr></table></td>"); } sHTML += ("</tr>"); } sHTML += ("</table>"); sHTML += ("</td></tr><form><input type='hidden' id='idForeColor'></form></table>"); return sHTML; } // -------------------------------------------------------- function newImage(arg){ if (document.images) { rslt = new Image(); rslt.src = arg; return rslt; } } function changeImages() { if (document.images && (preloadFlag == true)) { for (var i=0; i<changeImages.arguments.length; i+=2) { document[changeImages.arguments[i]].src = changeImages.arguments[i+1]; } } } var preloadFlag = false; if (document.images){ bold_over = newImage("images/wysiwyg/bold_on.gif"); italic_over = newImage("images/wysiwyg/italic_on.gif"); underline_over = newImage("images/wysiwyg/underline_on.gif"); strike_over = newImage("images/wysiwyg/strike_on.gif"); sup_over = newImage("images/wysiwyg/sup_on.gif"); sub_over = newImage("images/wysiwyg/sub_on.gif"); ol_over = newImage("images/wysiwyg/ol_on.gif"); ul_over = newImage("images/wysiwyg/ul_on.gif"); toleft_over = newImage("images/wysiwyg/toleft_on.gif"); toright_over = newImage("images/wysiwyg/toright_on.gif"); link_over = newImage("images/wysiwyg/link_on.gif"); left_over = newImage("images/wysiwyg/left_on.gif"); center_over = newImage("images/wysiwyg/center_on.gif"); right_over = newImage("images/wysiwyg/right_on.gif"); undo_over = newImage("images/wysiwyg/undo_on.gif"); redo_over = newImage("images/wysiwyg/redo_on.gif"); preloadFlag = true; } // -------------------------------------------------------- function InsertImage() { imagePath = prompt(Lang_PictureURL, 'http://'); if ((imagePath != null) && (imagePath != "")) { document.getElementById('editorHTML').contentWindow.document.execCommand('InsertImage', false, imagePath); } } // -------------------------------------------------------- function insertNodeAtSelection(win, insertNode) { // get current selection var sel = win.getSelection(); // get the first range of the selection // (there's almost always only one range) var range = sel.getRangeAt(0); // deselect everything sel.removeAllRanges(); // remove content of current selection from document range.deleteContents(); // get location of current selection var container = range.startContainer; var pos = range.startOffset; // make a new range for the new selection range=document.createRange(); if (container.nodeType==3 && insertNode.nodeType==3) { // if we insert text in a textnode, do optimized insertion container.insertData(pos, insertNode.nodeValue); // put cursor after inserted text range.setEnd(container, pos+insertNode.length); range.setStart(container, pos+insertNode.length); } else { var afterNode; if (container.nodeType==3) { // when inserting into a textnode // we create 2 new textnodes // and put the insertNode in between var textNode = container; container = textNode.parentNode; var text = textNode.nodeValue; // text before the split var textBefore = text.substr(0,pos); // text after the split var textAfter = text.substr(pos); var beforeNode = document.createTextNode(textBefore); var afterNode = document.createTextNode(textAfter); // insert the 3 new nodes before the old one container.insertBefore(afterNode, textNode); container.insertBefore(insertNode, afterNode); container.insertBefore(beforeNode, insertNode); // remove the old node container.removeChild(textNode); } else { // else simply insert the node afterNode = container.childNodes[pos]; container.insertBefore(insertNode, afterNode); } range.setEnd(afterNode, 0); range.setStart(afterNode, 0); } sel.addRange(range); } function InsertTable() { e = document.getElementById("editorHTML"); rowstext = prompt(Lang_NumRows); colstext = prompt(Lang_NumCols); rows = parseInt(rowstext); cols = parseInt(colstext); if ((rows > 0) && (cols > 0)) { table = e.contentWindow.document.createElement("table"); table.setAttribute("border", "1"); table.setAttribute("cellpadding", "1"); table.setAttribute("cellspacing", "1"); tbody = e.contentWindow.document.createElement("tbody"); for (var i=0; i < rows; i++) { tr = e.contentWindow.document.createElement("tr"); for (var j=0; j < cols; j++) { td =e.contentWindow.document.createElement("td"); br =e.contentWindow.document.createElement("br"); td.appendChild(br); tr.appendChild(td); } tbody.appendChild(tr); } table.appendChild(tbody); insertNodeAtSelection(e.contentWindow, table); } } // -------------------------------------------------------- function addLink(){ var myUrl = prompt(Lang_AddLink, ""); getIFrameDocument("editorHTML").execCommand("createLink", false, myUrl); } // -------------------------------------------------------- function trimFont(fontString) { commaPos = fontString.indexOf(","); if (commaPos != -1) { fontString = fontString.substring(0, commaPos); } return fontString.substring(0, 1).toUpperCase() + fontString.substring(1); } // -------------------------------------------------------- function RefreshElements() { PopupHide(); htmlbox = document.getElementById('editorHTML').contentWindow.document; theFontFace = htmlbox.queryCommandValue("fontname"); newFont = trimFont(theFontFace); document.getElementById("fontbar").innerHTML = newFont; newSize = htmlbox.queryCommandValue("fontsize"); document.getElementById("fontsizebar").innerHTML = newSize; newColor = htmlbox.queryCommandValue("forecolor"); document.getElementById("colourbar").style.backgroundColor = newColor.toUpperCase(); } function ec(aName, aArg){ document.getElementById('editorHTML').contentWindow.focus(); try { getIFrameDocument('editorHTML').execCommand(aName, false, aArg); } catch(e) { switch (aName.toLowerCase()) { case "cut": case "copy": case "paste": { alert(Lang_CutDisabled); } break; default: { alert(aName +' '+Lang_CommandNotSupported); } break; } } document.getElementById('editorHTML').contentWindow.focus(); } function getIFrameDocument(aID){ if (document.getElementById(aID).contentDocument) { return document.getElementById(aID).contentDocument; } else { return document.frames[aID].document; } } function InitializeEditor() { buttonElement = document.getElementById('icolour'); document.getElementById("colourbar").style.left = (getOffsetLeft(buttonElement) + 4) + 'px'; document.getElementById("colourbar").style.top = (getOffsetTop(buttonElement) + buttonElement.offsetHeight - 7) + 'px'; document.getElementById("colourbar").style.display = 'block'; buttonElement = document.getElementById('ifont'); document.getElementById("fontbar").style.left = (getOffsetLeft(buttonElement) + 5) + 'px'; if (strBrowser == "Opera") { document.getElementById("fontbar").style.top = (getOffsetTop(buttonElement) + 3) + 'px'; } else { document.getElementById("fontbar").style.top = (getOffsetTop(buttonElement) - 7) + 'px'; } newFont = trimFont(idFontFace); document.getElementById("fontbar").innerHTML = newFont; document.getElementById("fontbar").style.display = 'block'; buttonElement = document.getElementById('isize'); document.getElementById("fontsizebar").style.left = (getOffsetLeft(buttonElement) + 5) + 'px'; if (strBrowser == "Opera") { document.getElementById("fontsizebar").style.top = (getOffsetTop(buttonElement) + 3) + 'px'; } else { document.getElementById("fontsizebar").style.top = (getOffsetTop(buttonElement) - 7) + 'px'; } document.getElementById("fontsizebar").innerHTML = idFontSize; document.getElementById("fontsizebar").style.display = 'block'; getIFrameDocument("editorHTML").body.innerHTML = URLDecode(strContent); getIFrameDocument("editorHTML").designMode = "On"; document.getElementById('editorHTML').contentWindow.document.addEventListener("keyup", RefreshElements, true); document.getElementById('editorHTML').contentWindow.document.addEventListener("mouseup", RefreshElements, true); var loadedtime = new Date(); window.status = Lang_Loaded+' ' + (loadedtime - starttime) / 1000 + ' '+Lang_Seconds; return true; preloadFlag = true; } |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #16 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.004 ]-- |