Software: Apache. PHP/5.5.15 uname -a: Windows NT SVR-DMZ 6.1 build 7600 (Windows Server 2008 R2 Enterprise Edition) i586 SYSTEM Safe-mode: OFF (not secure) C:\AmbienteBogota\aulavirtual\admin\editor\plugins\ImageManager\assets\ drwxrwxrwx |
Viewing file: images.js (2.58 KB) -rw-rw-rw- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | /** * Functions for the image listing, used by images.php only * @author $Author: matteo $ * @version $Id: images.js,v 1.1.4.2 2007/01/11 21:49:31 matteo Exp $ * @package ImageManager */ function i18n(str) { if(I18N) return (I18N[str] || str); else return str; }; function changeDir(newDir) { showMessage('Loading'); location.href = "images.php" + window.location.search + (window.location.search.length > 0 ? "&" : "?") + "dir="+newDir; } function newFolder(dir, newDir) { location.href = "images.php" + window.location.search + (window.location.search.length > 0 ? "&" : "?") + "dir=" + dir + "&newDir=" + newDir; } //update the dir list in the parent window. function updateDir(newDir) { var selection = window.top.document.getElementById('dirPath'); if(selection) { for(var i = 0; i < selection.length; i++) { var thisDir = selection.options[i].text; if(thisDir == newDir) { selection.selectedIndex = i; showMessage('Loading'); break; } } } } function selectImage(filename, alt, width, height) { var topDoc = window.top.document; var obj = topDoc.getElementById('f_url'); obj.value = filename; var obj = topDoc.getElementById('f_width'); obj.value = width; var obj = topDoc.getElementById('f_width'); obj.value = width; var obj = topDoc.getElementById('f_height'); obj.value = height; var obj = topDoc.getElementById('f_alt'); obj.value = alt; var obj = topDoc.getElementById('orginal_width'); obj.value = width; var obj = topDoc.getElementById('orginal_height'); obj.value = height; } function showMessage(newMessage) { var topDoc = window.top.document; var message = topDoc.getElementById('message'); var messages = topDoc.getElementById('messages'); if(message && messages) { if(message.firstChild) message.removeChild(message.firstChild); message.appendChild(topDoc.createTextNode(i18n(newMessage))); messages.style.display = "block"; } } function addEvent(obj, evType, fn) { if (obj.addEventListener) { obj.addEventListener(evType, fn, true); return true; } else if (obj.attachEvent) { var r = obj.attachEvent("on"+evType, fn); return r; } else { return false; } } function confirmDeleteFile(file) { if(confirm(i18n("Delete file?"))) return true; return false; } function confirmDeleteDir(dir, count) { if(count > 0) { alert(i18n("Please delete all files/folders inside the folder you wish to delete first.")); return; } if(confirm(i18n("Delete folder?"))) return true; return false; } addEvent(window, 'load', init); |
:: Command execute :: | |
--[ c99shell v. 1.0 pre-release build #13 powered by Captain Crunch Security Team | http://ccteam.ru | Generation time: 0.0312 ]-- |