This file is indexed.

/usr/share/javascript/jquery-uploadify/jquery.uploadify.min.js is in libjs-jquery-uploadify 10-1.

This file is owned by root:root, with mode 0o644.

The actual contents of the file can be viewed below.

1
2
3
4
5
/*
Uploadify v3.2
Copyright (c) 2012 Reactive Apps, Ronnie Garcia
Released under the MIT License <http://www.opensource.org/licenses/mit-license.php> 
*/(function(e){var t={init:function(t,r){return this.each(function(){var i=e(this),s=i.clone(),o=e.extend({id:i.attr("id"),swf:"uploadify.swf",uploader:"uploadify.php",auto:!0,buttonClass:"",buttonCursor:"hand",buttonImage:null,buttonText:"SELECT FILES",checkExisting:!1,debug:!1,fileObjName:"Filedata",fileSizeLimit:0,fileTypeDesc:"All Files",fileTypeExts:"*.*",height:30,itemTemplate:!1,method:"post",multi:!0,formData:{},preventCaching:!0,progressData:"percentage",queueID:!1,queueSizeLimit:999,removeCompleted:!0,removeTimeout:3,requeueErrors:!1,successTimeout:30,uploadLimit:0,width:120,overrideEvents:[]},t),u={assume_success_timeout:o.successTimeout,button_placeholder_id:o.id,button_width:o.width,button_height:o.height,button_text:null,button_text_style:null,button_text_top_padding:0,button_text_left_padding:0,button_action:o.multi?SWFUpload.BUTTON_ACTION.SELECT_FILES:SWFUpload.BUTTON_ACTION.SELECT_FILE,button_disabled:!1,button_cursor:o.buttonCursor=="arrow"?SWFUpload.CURSOR.ARROW:SWFUpload.CURSOR.HAND,button_window_mode:SWFUpload.WINDOW_MODE.TRANSPARENT,debug:o.debug,requeue_on_error:o.requeueErrors,file_post_name:o.fileObjName,file_size_limit:o.fileSizeLimit,file_types:o.fileTypeExts,file_types_description:o.fileTypeDesc,file_queue_limit:o.queueSizeLimit,file_upload_limit:o.uploadLimit,flash_url:o.swf,prevent_swf_caching:o.preventCaching,post_params:o.formData,upload_url:o.uploader,use_query_string:o.method=="get",file_dialog_complete_handler:n.onDialogClose,file_dialog_start_handler:n.onDialogOpen,file_queued_handler:n.onSelect,file_queue_error_handler:n.onSelectError,swfupload_loaded_handler:o.onSWFReady,upload_complete_handler:n.onUploadComplete,upload_error_handler:n.onUploadError,upload_progress_handler:n.onUploadProgress,upload_start_handler:n.onUploadStart,upload_success_handler:n.onUploadSuccess};r&&(u=e.extend(u,r)),u=e.extend(u,o);var a=swfobject.getFlashPlayerVersion(),f=a.major>=9;if(f){window["uploadify_"+o.id]=new SWFUpload(u);var l=window["uploadify_"+o.id];i.data("uploadify",l);var c=e("<div />",{id:o.id,"class":"uploadify",css:{height:o.height+"px",width:o.width+"px"}});e("#"+l.movieName).wrap(c),c=e("#"+o.id),c.data("uploadify",l);var h=e("<div />",{id:o.id+"-button","class":"uploadify-button "+o.buttonClass});o.buttonImage&&h.css({"background-image":"url('"+o.buttonImage+"')","text-indent":"-9999px"}),h.html('<span class="uploadify-button-text">'+o.buttonText+"</span>").css({height:o.height+"px","line-height":o.height+"px",width:o.width+"px"}),c.append(h),e("#"+l.movieName).css({position:"absolute","z-index":1});if(!o.queueID){var p=e("<div />",{id:o.id+"-queue","class":"uploadify-queue"});c.after(p),l.settings.queueID=o.id+"-queue",l.settings.defaultQueue=!0}l.queueData={files:{},filesSelected:0,filesQueued:0,filesReplaced:0,filesCancelled:0,filesErrored:0,uploadsSuccessful:0,uploadsErrored:0,averageSpeed:0,queueLength:0,queueSize:0,uploadSize:0,queueBytesUploaded:0,uploadQueue:[],errorMsg:"Some files were not added to the queue:"},l.original=s,l.wrapper=c,l.button=h,l.queue=p,o.onInit&&o.onInit.call(i,l)}else o.onFallback&&o.onFallback.call(i)})},cancel:function(t,n){var r=arguments;this.each(function(){var t=e(this),n=t.data("uploadify"),i=n.settings,s=-1;if(r[0])if(r[0]=="*"){var o=n.queueData.queueLength;e("#"+i.queueID).find(".uploadify-queue-item").each(function(){s++,r[1]===!0?n.cancelUpload(e(this).attr("id"),!1):n.cancelUpload(e(this).attr("id")),e(this).find(".data").removeClass("data").html(" - Cancelled"),e(this).find(".uploadify-progress-bar").remove(),e(this).delay(1e3+100*s).fadeOut(500,function(){e(this).remove()})}),n.queueData.queueSize=0,n.queueData.queueLength=0,i.onClearQueue&&i.onClearQueue.call(t,o)}else for(var u=0;u<r.length;u++)n.cancelUpload(r[u]),e("#"+r[u]).find(".data").removeClass("data").html(" - Cancelled"),e("#"+r[u]).find(".uploadify-progress-bar").remove(),e("#"+r[u]).delay(1e3+100*u).fadeOut(500,function(){e(this).remove()});else{var a=e("#"+i.queueID).find(".uploadify-queue-item").get(0);$item=e(a),n.cancelUpload($item.attr("id")),$item.find(".data").removeClass("data").html(" - Cancelled"),$item.find(".uploadify-progress-bar").remove(),$item.delay(1e3).fadeOut(500,function(){e(this).remove()})}})},destroy:function(){this.each(function(){var t=e(this),n=t.data("uploadify"),r=n.settings;n.destroy(),r.defaultQueue&&e("#"+r.queueID).remove(),e("#"+r.id).replaceWith(n.original),r.onDestroy&&r.onDestroy.call(this),delete n})},disable:function(t){this.each(function(){var n=e(this),r=n.data("uploadify"),i=r.settings;t?(r.button.addClass("disabled"),i.onDisable&&i.onDisable.call(this)):(r.button.removeClass("disabled"),i.onEnable&&i.onEnable.call(this)),r.setButtonDisabled(t)})},settings:function(t,n,r){var i=arguments,s=n;this.each(function(){var o=e(this),u=o.data("uploadify"),a=u.settings;if(typeof i[0]=="object")for(var f in n)setData(f,n[f]);if(i.length===1)s=a[t];else{switch(t){case"uploader":u.setUploadURL(n);break;case"formData":r||(n=e.extend(a.formData,n)),u.setPostParams(a.formData);break;case"method":n=="get"?u.setUseQueryString(!0):u.setUseQueryString(!1);break;case"fileObjName":u.setFilePostName(n);break;case"fileTypeExts":u.setFileTypes(n,a.fileTypeDesc);break;case"fileTypeDesc":u.setFileTypes(a.fileTypeExts,n);break;case"fileSizeLimit":u.setFileSizeLimit(n);break;case"uploadLimit":u.setFileUploadLimit(n);break;case"queueSizeLimit":u.setFileQueueLimit(n);break;case"buttonImage":u.button.css("background-image",settingValue);break;case"buttonCursor":n=="arrow"?u.setButtonCursor(SWFUpload.CURSOR.ARROW):u.setButtonCursor(SWFUpload.CURSOR.HAND);break;case"buttonText":e("#"+a.id+"-button").find(".uploadify-button-text").html(n);break;case"width":u.setButtonDimensions(n,a.height);break;case"height":u.setButtonDimensions(a.width,n);break;case"multi":n?u.setButtonAction(SWFUpload.BUTTON_ACTION.SELECT_FILES):u.setButtonAction(SWFUpload.BUTTON_ACTION.SELECT_FILE)}a[t]=n}});if(i.length===1)return s},stop:function(){this.each(function(){var t=e(this),n=t.data("uploadify");n.queueData.averageSpeed=0,n.queueData.uploadSize=0,n.queueData.bytesUploaded=0,n.queueData.uploadQueue=[],n.stopUpload()})},upload:function(){var t=arguments;this.each(function(){var n=e(this),r=n.data("uploadify");r.queueData.averageSpeed=0,r.queueData.uploadSize=0,r.queueData.bytesUploaded=0,r.queueData.uploadQueue=[];if(t[0])if(t[0]=="*")r.queueData.uploadSize=r.queueData.queueSize,r.queueData.uploadQueue.push("*"),r.startUpload();else{for(var i=0;i<t.length;i++)r.queueData.uploadSize+=r.queueData.files[t[i]].size,r.queueData.uploadQueue.push(t[i]);r.startUpload(r.queueData.uploadQueue.shift())}else r.startUpload()})}},n={onDialogOpen:function(){var e=this.settings;this.queueData.errorMsg="Some files were not added to the queue:",this.queueData.filesReplaced=0,this.queueData.filesCancelled=0,e.onDialogOpen&&e.onDialogOpen.call(this)},onDialogClose:function(t,n,r){var i=this.settings;this.queueData.filesErrored=t-n,this.queueData.filesSelected=t,this.queueData.filesQueued=n-this.queueData.filesCancelled,this.queueData.queueLength=r,e.inArray("onDialogClose",i.overrideEvents)<0&&this.queueData.filesErrored>0&&alert(this.queueData.errorMsg),i.onDialogClose&&i.onDialogClose.call(this,this.queueData),i.auto&&e("#"+i.id).uploadify("upload","*")},onSelect:function(t){var n=this.settings,r={};for(var i in this.queueData.files){r=this.queueData.files[i];if(r.uploaded!=1&&r.name==t.name){var s=confirm('The file named "'+t.name+'" is already in the queue.\nDo you want to replace the existing item in the queue?');if(!s)return this.cancelUpload(t.id),this.queueData.filesCancelled++,!1;e("#"+r.id).remove(),this.cancelUpload(r.id),this.queueData.filesReplaced++}}var o=Math.round(t.size/1024),u="KB";o>1e3&&(o=Math.round(o/1e3),u="MB");var a=o.toString().split(".");o=a[0],a.length>1&&(o+="."+a[1].substr(0,2)),o+=u;var f=t.name;f.length>25&&(f=f.substr(0,25)+"..."),itemData={fileID:t.id,instanceID:n.id,fileName:f,fileSize:o},n.itemTemplate==0&&(n.itemTemplate='<div id="${fileID}" class="uploadify-queue-item">					<div class="cancel">						<a href="javascript:$(\'#${instanceID}\').uploadify(\'cancel\', \'${fileID}\')">X</a>					</div>					<span class="fileName">${fileName} (${fileSize})</span><span class="data"></span>					<div class="uploadify-progress">						<div class="uploadify-progress-bar"><!--Progress Bar--></div>					</div>				</div>');if(e.inArray("onSelect",n.overrideEvents)<0){itemHTML=n.itemTemplate;for(var l in itemData)itemHTML=itemHTML.replace(new RegExp("\\$\\{"+l+"\\}","g"),itemData[l]);e("#"+n.queueID).append(itemHTML)}this.queueData.queueSize+=t.size,this.queueData.files[t.id]=t,n.onSelect&&n.onSelect.apply(this,arguments)},onSelectError:function(t,n,r){var i=this.settings;if(e.inArray("onSelectError",i.overrideEvents)<0)switch(n){case SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED:i.queueSizeLimit>r?this.queueData.errorMsg+="\nThe number of files selected exceeds the remaining upload limit ("+r+").":this.queueData.errorMsg+="\nThe number of files selected exceeds the queue size limit ("+i.queueSizeLimit+").";break;case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT:this.queueData.errorMsg+='\nThe file "'+t.name+'" exceeds the size limit ('+i.fileSizeLimit+").";break;case SWFUpload.QUEUE_ERROR.ZERO_BYTE_FILE:this.queueData.errorMsg+='\nThe file "'+t.name+'" is empty.';break;case SWFUpload.QUEUE_ERROR.FILE_EXCEEDS_SIZE_LIMIT:this.queueData.errorMsg+='\nThe file "'+t.name+'" is not an accepted file type ('+i.fileTypeDesc+")."}n!=SWFUpload.QUEUE_ERROR.QUEUE_LIMIT_EXCEEDED&&delete this.queueData.files[t.id],i.onSelectError&&i.onSelectError.apply(this,arguments)},onQueueComplete:function(){this.settings.onQueueComplete&&this.settings.onQueueComplete.call(this,this.settings.queueData)},onUploadComplete:function(t){var n=this.settings,r=this,i=this.getStats();this.queueData.queueLength=i.files_queued,this.queueData.uploadQueue[0]=="*"?this.queueData.queueLength>0?this.startUpload():(this.queueData.uploadQueue=[],n.onQueueComplete&&n.onQueueComplete.call(this,this.queueData)):this.queueData.uploadQueue.length>0?this.startUpload(this.queueData.uploadQueue.shift()):(this.queueData.uploadQueue=[],n.onQueueComplete&&n.onQueueComplete.call(this,this.queueData));if(e.inArray("onUploadComplete",n.overrideEvents)<0)if(n.removeCompleted)switch(t.filestatus){case SWFUpload.FILE_STATUS.COMPLETE:setTimeout(function(){e("#"+t.id)&&(r.queueData.queueSize-=t.size,r.queueData.queueLength-=1,delete r.queueData.files[t.id],e("#"+t.id).fadeOut(500,function(){e(this).remove()}))},n.removeTimeout*1e3);break;case SWFUpload.FILE_STATUS.ERROR:n.requeueErrors||setTimeout(function(){e("#"+t.id)&&(r.queueData.queueSize-=t.size,r.queueData.queueLength-=1,delete r.queueData.files[t.id],e("#"+t.id).fadeOut(500,function(){e(this).remove()}))},n.removeTimeout*1e3)}else t.uploaded=!0;n.onUploadComplete&&n.onUploadComplete.call(this,t)},onUploadError:function(t,n,r){var i=this.settings,s="Error";switch(n){case SWFUpload.UPLOAD_ERROR.HTTP_ERROR:s="HTTP Error ("+r+")";break;case SWFUpload.UPLOAD_ERROR.MISSING_UPLOAD_URL:s="Missing Upload URL";break;case SWFUpload.UPLOAD_ERROR.IO_ERROR:s="IO Error";break;case SWFUpload.UPLOAD_ERROR.SECURITY_ERROR:s="Security Error";break;case SWFUpload.UPLOAD_ERROR.UPLOAD_LIMIT_EXCEEDED:alert("The upload limit has been reached ("+r+")."),s="Exceeds Upload Limit";break;case SWFUpload.UPLOAD_ERROR.UPLOAD_FAILED:s="Failed";break;case SWFUpload.UPLOAD_ERROR.SPECIFIED_FILE_ID_NOT_FOUND:break;case SWFUpload.UPLOAD_ERROR.FILE_VALIDATION_FAILED:s="Validation Error";break;case SWFUpload.UPLOAD_ERROR.FILE_CANCELLED:s="Cancelled",this.queueData.queueSize-=t.size,this.queueData.queueLength-=1;if(t.status==SWFUpload.FILE_STATUS.IN_PROGRESS||e.inArray(t.id,this.queueData.uploadQueue)>=0)this.queueData.uploadSize-=t.size;i.onCancel&&i.onCancel.call(this,t),delete this.queueData.files[t.id];break;case SWFUpload.UPLOAD_ERROR.UPLOAD_STOPPED:s="Stopped"}e.inArray("onUploadError",i.overrideEvents)<0&&(n!=SWFUpload.UPLOAD_ERROR.FILE_CANCELLED&&n!=SWFUpload.UPLOAD_ERROR.UPLOAD_STOPPED&&e("#"+t.id).addClass("uploadify-error"),e("#"+t.id).find(".uploadify-progress-bar").css("width","1px"),n!=SWFUpload.UPLOAD_ERROR.SPECIFIED_FILE_ID_NOT_FOUND&&t.status!=SWFUpload.FILE_STATUS.COMPLETE&&e("#"+t.id).find(".data").html(" - "+s));var o=this.getStats();this.queueData.uploadsErrored=o.upload_errors,i.onUploadError&&i.onUploadError.call(this,t,n,r,s)},onUploadProgress:function(t,n,r){var i=this.settings,s=new Date,o=s.getTime(),u=o-this.timer;u>500&&(this.timer=o);var a=n-this.bytesLoaded;this.bytesLoaded=n;var f=this.queueData.queueBytesUploaded+n,l=Math.round(n/r*100),c="KB/s",h=0,p=a/1024/(u/1e3);p=Math.floor(p*10)/10,this.queueData.averageSpeed>0?this.queueData.averageSpeed=Math.floor((this.queueData.averageSpeed+p)/2):this.queueData.averageSpeed=Math.floor(p),p>1e3&&(h=p*.001,this.queueData.averageSpeed=Math.floor(h),c="MB/s"),e.inArray("onUploadProgress",i.overrideEvents)<0&&(i.progressData=="percentage"?e("#"+t.id).find(".data").html(" - "+l+"%"):i.progressData=="speed"&&u>500&&e("#"+t.id).find(".data").html(" - "+this.queueData.averageSpeed+c),e("#"+t.id).find(".uploadify-progress-bar").css("width",l+"%")),i.onUploadProgress&&i.onUploadProgress.call(this,t,n,r,f,this.queueData.uploadSize)},onUploadStart:function(t){var n=this.settings,r=new Date;this.timer=r.getTime(),this.bytesLoaded=0,this.queueData.uploadQueue.length==0&&(this.queueData.uploadSize=t.size),n.checkExisting&&e.ajax({type:"POST",async:!1,url:n.checkExisting,data:{filename:t.name},success:function(n){if(n==1){var r=confirm('A file with the name "'+t.name+'" already exists on the server.\nWould you like to replace the existing file?');r||(this.cancelUpload(t.id),e("#"+t.id).remove(),this.queueData.uploadQueue.length>0&&this.queueData.queueLength>0&&(this.queueData.uploadQueue[0]=="*"?this.startUpload():this.startUpload(this.queueData.uploadQueue.shift())))}}}),n.onUploadStart&&n.onUploadStart.call(this,t)},onUploadSuccess:function(t,n,r){var i=this.settings,s=this.getStats();this.queueData.uploadsSuccessful=s.successful_uploads,this.queueData.queueBytesUploaded+=t.size,e.inArray("onUploadSuccess",i.overrideEvents)<0&&e("#"+t.id).find(".data").html(" - Complete"),i.onUploadSuccess&&i.onUploadSuccess.call(this,t,n,r)}};e.fn.uploadify=function(n){if(t[n])return t[n].apply(this,Array.prototype.slice.call(arguments,1));if(typeof n=="object"||!n)return t.init.apply(this,arguments);e.error("The method "+n+" does not exist in $.uploadify")}})($);