Software: Apache. PHP/5.4.45 uname -a: Linux webm052.cluster007.gra.hosting.ovh.net 5.15.74-ovh-vps-grsec-zfs-classid #1 SMP Wed uid=763961(ebenisteaz) gid=100(users) groups=100(users) Safe-mode: OFF (not secure) /home/ebenisteaz/www/admin/js/dropzone/ drwx---r-x |
Viewing file: dropzone.min.js (16.97 KB) -rw----r-- Select action/file-type: (+) | (+) | (+) | Code (+) | Session (+) | (+) | SDB (+) | (+) | (+) | (+) | (+) | (+) | (function(){function e(t,i,n){var s=e.resolve(t);if(null==s){n=n||t,i=i||"root";var r=Error('Failed to require "'+n+'" from "'+i+'"');throw r.path=n,r.parent=i,r.require=!0,r}var o=e.modules[s];return o.exports||(o.exports={},o.client=o.component=!0,o.call(this,o.exports,e.relative(s),o)),o.exports}var t=Object.prototype.hasOwnProperty;e.modules={},e.aliases={},e.resolve=function(i){"/"===i.charAt(0)&&(i=i.slice(1));for(var n=i+"/index.js",s=[i,i+".js",i+".json",i+"/index.js",i+"/index.json"],r=0;s.length>r;r++){var i=s[r];if(t.call(e.modules,i))return i}return t.call(e.aliases,n)?e.aliases[n]:void 0},e.normalize=function(e,t){var i=[];if("."!=t.charAt(0))return t;e=e.split("/"),t=t.split("/");for(var n=0;t.length>n;++n)".."==t[n]?e.pop():"."!=t[n]&&""!=t[n]&&i.push(t[n]);return e.concat(i).join("/")},e.register=function(t,i){e.modules[t]=i},e.alias=function(i,n){if(!t.call(e.modules,i))throw Error('Failed to alias "'+i+'", it does not exist');e.aliases[n]=i},e.relative=function(i){function n(e,t){for(var i=e.length;i--;)if(e[i]===t)return i;return-1}function s(t){var n=s.resolve(t);return e(n,i,t)}var r=e.normalize(i,"..");return s.resolve=function(t){var s=t.charAt(0);if("/"==s)return t.slice(1);if("."==s)return e.normalize(r,t);var o=i.split("/"),a=n(o,"deps")+1;return a||(a=0),t=o.slice(0,a+1).join("/")+"/deps/"+t},s.exists=function(i){return t.call(e.modules,s.resolve(i))},s},e.register("component-emitter/index.js",function(e,t,i){function n(e){return e?s(e):void 0}function s(e){for(var t in n.prototype)e[t]=n.prototype[t];return e}i.exports=n,n.prototype.on=function(e,t){return this._callbacks=this._callbacks||{},(this._callbacks[e]=this._callbacks[e]||[]).push(t),this},n.prototype.once=function(e,t){function i(){n.off(e,i),t.apply(this,arguments)}var n=this;return this._callbacks=this._callbacks||{},t._off=i,this.on(e,i),this},n.prototype.off=n.prototype.removeListener=n.prototype.removeAllListeners=function(e,t){this._callbacks=this._callbacks||{};var i=this._callbacks[e];if(!i)return this;if(1==arguments.length)return delete this._callbacks[e],this;var n=i.indexOf(t._off||t);return~n&&i.splice(n,1),this},n.prototype.emit=function(e){this._callbacks=this._callbacks||{};var t=[].slice.call(arguments,1),i=this._callbacks[e];if(i){i=i.slice(0);for(var n=0,s=i.length;s>n;++n)i[n].apply(this,t)}return this},n.prototype.listeners=function(e){return this._callbacks=this._callbacks||{},this._callbacks[e]||[]},n.prototype.hasListeners=function(e){return!!this.listeners(e).length}}),e.register("dropzone/index.js",function(e,t,i){i.exports=t("./lib/dropzone.js")}),e.register("dropzone/lib/dropzone.js",function(e,t,i){(function(){var e,n,s,r,o,a,l,p={}.hasOwnProperty,u=function(e,t){function i(){this.constructor=e}for(var n in t)p.call(t,n)&&(e[n]=t[n]);return i.prototype=t.prototype,e.prototype=new i,e.__super__=t.prototype,e},c=[].slice,h=[].indexOf||function(e){for(var t=0,i=this.length;i>t;t++)if(t in this&&this[t]===e)return t;return-1};n="undefined"!=typeof Emitter&&null!==Emitter?Emitter:t("emitter"),a=function(){},e=function(e){function t(e,i){var n,r,o,a,l;if(this.element=e,this.version=t.version,this.defaultOptions.previewTemplate=this.defaultOptions.previewTemplate.replace(/\n*/g,""),"string"==typeof this.element&&(this.element=document.querySelector(this.element)),!this.element||null==this.element.nodeType)throw Error("Invalid dropzone element.");if(t.forElement(this.element))throw Error("Dropzone already attached.");if(t.instances.push(this),n=this.element.id,r=null!=(l=n?t.options[s(n)]:void 0)?l:{},o=function(){var e,t,i,n,s,r,o;for(n=arguments[0],i=arguments.length>=2?c.call(arguments,1):[],r=0,o=i.length;o>r;r++){t=i[r];for(e in t)s=t[e],n[e]=s}return n},this.options=o({},this.defaultOptions,r,null!=i?i:{}),null==this.options.url&&(this.options.url=this.element.action),!this.options.url)throw Error("No URL provided.");if(this.options.method=this.options.method.toUpperCase(),!t.isBrowserSupported())return this.options.fallback.call(this);if((a=this.getExistingFallback())&&a.parentNode&&a.parentNode.removeChild(a),this.options.previewsContainer){if("string"==typeof this.options.previewsContainer?this.previewsContainer=document.querySelector(this.options.previewsContainer):null!=this.options.previewsContainer.nodeType&&(this.previewsContainer=this.options.previewsContainer),null==this.previewsContainer)throw Error("Invalid `previewsContainer` option provided. Please provide a CSS selector or a plain HTML element.")}else this.previewsContainer=this.element;this.init()}return u(t,e),t.prototype.events=["drop","dragstart","dragend","dragenter","dragover","dragleave","selectedfiles","addedfile","removedfile","thumbnail","error","processingfile","uploadprogress","sending","success","complete","reset"],t.prototype.defaultOptions={url:null,method:"post",parallelUploads:2,maxFilesize:256,paramName:"file",createImageThumbnails:!0,maxThumbnailFilesize:2,thumbnailWidth:100,thumbnailHeight:100,params:{},clickable:!0,enqueueForUpload:!0,previewsContainer:null,dictDefaultMessage:"Drop files here to upload",dictFallbackMessage:"Your browser does not support drag'n'drop file uploads.",dictFallbackText:"Please use the fallback form below to upload your files like in the olden days.",accept:function(e,t){return t()},init:function(){return a},fallback:function(){var e,t,i,n,s,r;for(this.element.className=""+this.element.className+" browser-not-supported",r=this.element.getElementsByTagName("div"),n=0,s=r.length;s>n;n++)e=r[n],/(^| )message($| )/.test(e.className)&&(t=e,e.className="message");return t||(t=o('<div class="message"><span></span></div>'),this.element.appendChild(t)),i=t.getElementsByTagName("span")[0],i&&(i.textContent=this.options.dictFallbackMessage),this.element.appendChild(this.getFallbackForm())},drop:function(){return this.element.classList.remove("drag-hover")},dragstart:a,dragend:function(){return this.element.classList.remove("drag-hover")},dragenter:function(){return this.element.classList.add("drag-hover")},dragover:function(){return this.element.classList.add("drag-hover")},dragleave:function(){return this.element.classList.remove("drag-hover")},selectedfiles:function(){return this.element===this.previewsContainer?this.element.classList.add("started"):void 0},reset:function(){return this.element.classList.remove("started")},addedfile:function(e){return e.previewTemplate=o(this.options.previewTemplate),this.previewsContainer.appendChild(e.previewTemplate),e.previewTemplate.querySelector(".filename span").textContent=e.name,e.previewTemplate.querySelector(".details").appendChild(o('<div class="size">'+this.filesize(e.size)+"</div>"))},removedfile:function(e){return e.previewTemplate.parentNode.removeChild(e.previewTemplate)},thumbnail:function(e,t){return e.previewTemplate.classList.remove("file-preview"),e.previewTemplate.classList.add("image-preview"),e.previewTemplate.querySelector(".details").appendChild(o('<img alt="'+e.name+'" src="'+t+'"/>'))},error:function(e,t){return e.previewTemplate.classList.add("error"),e.previewTemplate.querySelector(".error-message span").textContent=t},processingfile:function(e){return e.previewTemplate.classList.add("processing")},uploadprogress:function(e,t){return e.previewTemplate.querySelector(".progress .upload").style.width=""+t+"%"},sending:a,success:function(e){return e.previewTemplate.classList.add("success")},complete:a,previewTemplate:'<div class="preview file-preview">\n <div class="details">\n <div class="filename"><span></span></div>\n </div>\n <div class="progress"><span class="upload"></span></div>\n <div class="success-mark"><span>✔</span></div>\n <div class="error-mark"><span>✘</span></div>\n <div class="error-message"><span></span></div>\n</div>'},t.prototype.init=function(){var e,t,i,n,s,r,a=this;for("form"===this.element.tagName&&this.element.setAttribute("enctype","multipart/form-data"),this.element.classList.contains("dropzone")&&!this.element.querySelector(".message")&&this.element.appendChild(o('<div class="default message"><span>'+this.options.dictDefaultMessage+"</span></div>")),this.options.clickable&&(this.hiddenFileInput=document.createElement("input"),this.hiddenFileInput.setAttribute("type","file"),this.hiddenFileInput.setAttribute("multiple","multiple"),this.hiddenFileInput.style.display="none",document.body.appendChild(this.hiddenFileInput),this.hiddenFileInput.addEventListener("change",function(){var e;return e=a.hiddenFileInput.files,e.length?(a.emit("selectedfiles",e),a.handleFiles(e)):void 0})),this.files=[],this.filesQueue=[],this.filesProcessing=[],this.URL=null!=(s=window.URL)?s:window.webkitURL,r=this.events,i=0,n=r.length;n>i;i++)e=r[i],this.on(e,this.options[e]);return t=function(e){return e.stopPropagation(),e.preventDefault?e.preventDefault():e.returnValue=!1},this.listeners={dragstart:function(e){return a.emit("dragstart",e)},dragenter:function(e){return t(e),a.emit("dragenter",e)},dragover:function(e){return t(e),a.emit("dragover",e)},dragleave:function(e){return a.emit("dragleave",e)},drop:function(e){return t(e),a.drop(e),a.emit("drop",e)},dragend:function(e){return a.emit("dragend",e)},click:function(e){return a.options.clickable?e.target===a.element||e.target===a.element.querySelector(".message")?a.hiddenFileInput.click():void 0:void 0}},this.enable(),this.options.init.call(this)},t.prototype.getFallbackForm=function(){var e,t,i,n;return(e=this.getExistingFallback())?e:(i='<div class="fallback">',this.options.dictFallbackText&&(i+="<p>"+this.options.dictFallbackText+"</p>"),i+='<input type="file" name="'+this.options.paramName+'" multiple="multiple" /><button type="submit">Upload!</button></div>',t=o(i),"FORM"!==this.element.tagName?(n=o('<form action="'+this.options.url+'" enctype="multipart/form-data" method="'+this.options.method+'"></form>'),n.appendChild(t)):(this.element.setAttribute("enctype","multipart/form-data"),this.element.setAttribute("method",this.options.method)),null!=n?n:t)},t.prototype.getExistingFallback=function(){var e,t,i,n,s,r;for(t=function(e){var t,i,n;for(i=0,n=e.length;n>i;i++)if(t=e[i],/(^| )fallback($| )/.test(t.className))return t},r=["div","form"],n=0,s=r.length;s>n;n++)if(i=r[n],e=t(this.element.getElementsByTagName("div")))return e},t.prototype.setupEventListeners=function(){var e,t,i,n;i=this.listeners,n=[];for(e in i)t=i[e],n.push(this.element.addEventListener(e,t,!1));return n},t.prototype.removeEventListeners=function(){var e,t,i,n;i=this.listeners,n=[];for(e in i)t=i[e],n.push(this.element.removeEventListener(e,t,!1));return n},t.prototype.disable=function(){return this.options.clickable&&this.element.classList.remove("clickable"),this.removeEventListeners(),this.filesProcessing=[],this.filesQueue=[]},t.prototype.enable=function(){return this.options.clickable&&this.element.classList.add("clickable"),this.setupEventListeners()},t.prototype.filesize=function(e){var t;return e>=1e11?(e/=1e11,t="TB"):e>=1e8?(e/=1e8,t="GB"):e>=1e5?(e/=1e5,t="MB"):e>=100?(e/=100,t="KB"):(e=10*e,t="b"),"<strong>"+Math.round(e)/10+"</strong> "+t},t.prototype.drop=function(e){var t;if(e.dataTransfer)return t=e.dataTransfer.files,this.emit("selectedfiles",t),t.length?this.handleFiles(t):void 0},t.prototype.handleFiles=function(e){var t,i,n,s;for(s=[],i=0,n=e.length;n>i;i++)t=e[i],s.push(this.addFile(t));return s},t.prototype.accept=function(e,t){return e.size>1024*1024*this.options.maxFilesize?t("File is too big ("+Math.round(e.size/1024/10.24)/100+"MB). Max filesize: "+this.options.maxFilesize+"MB"):this.options.accept.call(this,e,t)},t.prototype.addFile=function(e){var t=this;return this.files.push(e),this.emit("addedfile",e),this.options.createImageThumbnails&&e.type.match(/image.*/)&&e.size<=1024*1024*this.options.maxThumbnailFilesize&&this.createThumbnail(e),this.accept(e,function(i){return i?t.errorProcessing(e,i):t.options.enqueueForUpload?(t.filesQueue.push(e),t.processQueue()):void 0})},t.prototype.removeFile=function(e){if(e.processing)throw Error("Can't remove file currently processing");return this.files=l(this.files,e),this.filesQueue=l(this.filesQueue,e),this.emit("removedfile",e),0===this.files.length?this.emit("reset"):void 0},t.prototype.removeAllFiles=function(){var e,t,i,n;for(n=this.files.slice(),t=0,i=n.length;i>t;t++)e=n[t],0>h.call(this.filesProcessing,e)&&this.removeFile(e);return null},t.prototype.createThumbnail=function(e){var t,i=this;return t=new FileReader,t.onload=function(){var n;return n=new Image,n.onload=function(){var t,s,r,o,a,l,p,u,c,h,d,m,f;return t=document.createElement("canvas"),s=t.getContext("2d"),l=0,p=0,a=n.width,r=n.height,t.width=i.options.thumbnailWidth,t.height=i.options.thumbnailHeight,m=0,f=0,d=t.width,c=t.height,o=n.width/n.height,h=t.width/t.height,n.height<t.height||n.width<t.width?(c=r,d=a):o>h?(r=n.height,a=r*h):(a=n.width,r=a/h),l=(n.width-a)/2,p=(n.height-r)/2,f=(t.height-c)/2,m=(t.width-d)/2,s.drawImage(n,l,p,a,r,m,f,d,c),u=t.toDataURL("image/png"),i.emit("thumbnail",e,u)},n.src=t.result},t.readAsDataURL(e)},t.prototype.processQueue=function(){var e,t,i;for(t=this.options.parallelUploads,i=this.filesProcessing.length,e=i;t>e;){if(!this.filesQueue.length)return;this.processFile(this.filesQueue.shift()),e++}},t.prototype.processFile=function(e){return this.filesProcessing.push(e),e.processing=!0,this.emit("processingfile",e),this.uploadFile(e)},t.prototype.uploadFile=function(e){var t,i,n,s,r,o,a,l,p,u,c,h,d,m,f=this;if(p=new XMLHttpRequest,p.open(this.options.method,this.options.url,!0),i=function(){return f.errorProcessing(e,p.responseText||"Server responded with "+p.status+" code.")},p.onload=function(t){var n,s;return(s=p.status)>=200&&300>s?(f.emit("uploadprogress",e,100),n=p.responseText,p.getResponseHeader("content-type")&&~p.getResponseHeader("content-type").indexOf("application/json")&&(n=JSON.parse(n)),f.finished(e,n,t)):i()},p.onerror=function(){return i()},a=null!=(h=p.upload)?h:p,a.onprogress=function(t){return f.emit("uploadprogress",e,Math.max(0,Math.min(100,100*(t.loaded/t.total))))},p.setRequestHeader("Accept","application/json"),p.setRequestHeader("Cache-Control","no-cache"),p.setRequestHeader("X-Requested-With","XMLHttpRequest"),p.setRequestHeader("X-File-Name",e.name),t=new FormData,this.options.params){d=this.options.params;for(o in d)l=d[o],t.append(o,l)}if("FORM"===this.element.tagName)for(m=this.element.querySelectorAll("input, textarea, select, button"),u=0,c=m.length;c>u;u++)n=m[u],s=n.getAttribute("name"),r=n.getAttribute("type"),(!r||"checkbox"!==r.toLowerCase()||n.checked)&&t.append(s,n.value);return this.emit("sending",e,p,t),t.append(this.options.paramName,e),p.send(t)},t.prototype.finished=function(e,t,i){return this.filesProcessing=l(this.filesProcessing,e),e.processing=!1,this.processQueue(),this.emit("success",e,t,i),this.emit("finished",e,t,i),this.emit("complete",e)},t.prototype.errorProcessing=function(e,t){return this.filesProcessing=l(this.filesProcessing,e),e.processing=!1,this.processQueue(),this.emit("error",e,t),this.emit("complete",e)},t}(n),e.version="2.0.8",e.options={},e.instances=[],e.forElement=function(t){var i,n,s,r;for("string"==typeof t&&(t=document.querySelector(t)),r=e.instances,n=0,s=r.length;s>n;n++)if(i=r[n],i.element===t)return i;return null},e.blacklistedBrowsers=[/opera.*Macintosh.*version\/12/i],e.isBrowserSupported=function(){var t,i,n,s,r;if(t=!0,window.File&&window.FileReader&&window.FileList&&window.Blob&&window.FormData&&document.querySelector)if("classList"in document.createElement("a"))for(r=e.blacklistedBrowsers,n=0,s=r.length;s>n;n++)i=r[n],i.test(navigator.userAgent)&&(t=!1);else t=!1;else t=!1;return t},l=function(e,t){var i,n,s,r;for(r=[],n=0,s=e.length;s>n;n++)i=e[n],i!==t&&r.push(i);return r},s=function(e){return e.replace(/[\-_](\w)/g,function(e){return e[1].toUpperCase()})},o=function(e){var t;return t=document.createElement("div"),t.innerHTML=e,t.childNodes[0]},"undefined"!=typeof jQuery&&null!==jQuery&&(jQuery.fn.dropzone=function(t){return this.each(function(){return new e(this,t)})}),i!==void 0&&null!==i?i.exports=e:window.Dropzone=e,r=function(e,t){var i,n,s,r,o,a,l,p,u;if(s=!1,u=!0,n=e.document,p=n.documentElement,i=n.addEventListener?"addEventListener":"attachEvent",l=n.addEventListener?"removeEventListener":"detachEvent",a=n.addEventListener?"":"on",r=function(i){return"readystatechange"!==i.type||"complete"===n.readyState?(("load"===i.type?e:n)[l](a+i.type,r,!1),!s&&(s=!0)?t.call(e,i.type||i):void 0):void 0},o=function(){var e;try{p.doScroll("left")}catch(t){return e=t,setTimeout(o,50),void 0}return r("poll")},"complete"!==n.readyState){if(n.createEventObject&&p.doScroll){try{u=!e.frameElement}catch(c){}u&&o()}return n[i](a+"DOMContentLoaded",r,!1),n[i](a+"readystatechange",r,!1),e[i](a+"load",r,!1)}},r(window,function(){var t,i,n,s,r,o;for(n=[],t=function(e){var t,i,s,r;for(r=[],i=0,s=e.length;s>i;i++)t=e[i],/(^| )dropzone($| )/.test(t.className)?r.push(n.push(t)):r.push(void 0);return r},t(document.getElementsByTagName("div")),t(document.getElementsByTagName("form")),o=[],s=0,r=n.length;r>s;s++)i=n[s],o.push(new e(i));return o})}).call(this)}),e.alias("component-emitter/index.js","dropzone/deps/emitter/index.js"),"object"==typeof exports?module.exports=e("dropzone"):"function"==typeof define&&define.amd?define(function(){return e("dropzone")}):window.Dropzone=e("dropzone")})(); |
:: Command execute :: | |
:: Shadow's tricks :D :: | |
Useful Commands
|
:: Preddy's tricks :D :: | |
Php Safe-Mode Bypass (Read Files)
|
--[ c99shell v. 1.0 pre-release build #16 Modded by Shadow & Preddy | RootShell Security Group | Generation time: 0.0202 ]-- |