Advertisement
Guest User

myg3nx

a guest
Jul 22nd, 2013
146
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 40.68 KB | None | 0 0
  1. <?
  2. define("PHPFOX",true);define("PHPFOX_DS",DIRECTORY_SEPARATOR);define("PHPFOX_DIR",dirname(dirname(dirname(dirname(__FILE__)))).PHPFOX_DS);define("PHPFOX_START_TIME",array_sum(explode(" ",microtime())));include PHPFOX_DIR.PHPFOX_DS."include".PHPFOX_DS."init.inc.php";if(!phpfox::getService("ephoto")->jasdhasdasdoasuudioas())
  3. {echo "try {eval(\"".base64_encode("JHFlNjNiNGYyNzg3MGY3MDI2NWZlNjFjMGQyNjNhOTI0PSJceDYyIjskbjg1MTBlOGRiNmRkZjUxN2Y0OTZjMjJ
  4. iNTNiMGZmMTY9Ilx4NjUiOyR0NDk5N2YzZmMyOWY5OTdhNGNhMWNiMzA3YzY2ZWFiNj0iXHg2NiI7JGM3NThlNjU
  5. 0NGI2NTU2NWUyMmM3NDZjZmZjYjZhZjU4PSJceDY3IjskbzcxNjBkMDA3NjA0YzhhOWMwMzQzZmRjZTc4NjBiMDk
  6. 9Ilx4NmQiOyR1YjU2M2I1OGI5ODZjNmMwMTI2M2YyYjJkNjk5MDMxNj0iXHg2ZiI7JGM1M2Q5MWI2ZjU4MDdhMDl
  7. jNmY2YzdhYTA5M2Y1YjZjPSJceDZmIjskeDgzM2I3NDJhMzQwNTE1N2EwNTAwNGRmN2FiYzA5OTU9Ilx4NmYiOyR
  8. vM2E3MGIyOGQ3YzNiYThjNjYzMjU4MTFhMTIxMmUwOT0iXHg2ZiI7JGoyMDMwNTBmMzkzMDI0MjQ2ZjRjNjI1NWZ
  9. lMWFkYTJkPSJceDczIjskb2U3ODAyMjJjMzhjZTU2Y2YzNzY5N2UwMjkzYmQ2MDY9Ilx4NzMiOyR3N2ExYjEyOTc
  10. yOTEwNmIxODhmNmE2MGUyMzkzM2IzOD0iXHg3MyI7JG4yM2IyMmRkNTkyYjkyYzNlMDM0MDE0MzA4MTc4ODEzPSJ
  11. ceDczIjskcWU2M2I0ZjI3ODcwZjcwMjY1ZmU2MWMwZDI2M2E5MjQuPSJcMTQxIjskbjg1MTBlOGRiNmRkZjUxN2Y
  12. 0OTZjMjJiNTNiMGZmMTYuPSJcMTYyIjskdDQ5OTdmM2ZjMjlmOTk3YTRjYTFjYjMwN2M2NmVhYjYuPSJcMTUxIjs
  13. kYzc1OGU2NTQ0YjY1NTY1ZTIyYzc0NmNmZmNiNmFmNTguPSJcMTcyIjskbzcxNjBkMDA3NjA0YzhhOWMwMzQzZmR
  14. jZTc4NjBiMDkuPSJcMTQ0IjskdWI1NjNiNThiOTg2YzZjMDEyNjNmMmIyZDY5OTAzMTYuPSJcMTQyIjskYzUzZDk
  15. xYjZmNTgwN2EwOWM2ZjZjN2FhMDkzZjViNmMuPSJcMTQyIjskeDgzM2I3NDJhMzQwNTE1N2EwNTAwNGRmN2FiYzA
  16. 5OTUuPSJcMTQyIjskbzNhNzBiMjhkN2MzYmE4YzY2MzI1ODExYTEyMTJlMDkuPSJcMTQyIjskajIwMzA1MGYzOTM
  17. wMjQyNDZmNGM2MjU1ZmUxYWRhMmQuPSJcMTY0Ijskb2U3ODAyMjJjMzhjZTU2Y2YzNzY5N2UwMjkzYmQ2MDYuPSJ
  18. cMTY0IjskdzdhMWIxMjk3MjkxMDZiMTg4ZjZhNjBlMjM5MzNiMzguPSJcMTY0IjskbjIzYjIyZGQ1OTJiOTJjM2U
  19. wMzQwMTQzMDgxNzg4MTMuPSJcMTY0IjskcWU2M2I0ZjI3ODcwZjcwMjY1ZmU2MWMwZDI2M2E5MjQuPSJceDczIjs
  20. kbjg1MTBlOGRiNmRkZjUxN2Y0OTZjMjJiNTNiMGZmMTYuPSJceDY1IjskdDQ5OTdmM2ZjMjlmOTk3YTRjYTFjYjM")."\");} catch (e){}";exit();}$f=$_GET["f"];$bIsValid=false;$sContent="";if($f=="view.js"){$bIsValid=true;$sValidDomain=$_SERVER["SERVER_NAME"];$sContent="(function(f){function b(){}function g(i,h){if(c){return h.indexOf(i)}for(var j=h.length;j--;){if(h[j]===i){return j}}return -1}var a=b.prototype,c=Array.prototype.indexOf?!0:!1;a._getEvents=function(){return this._events||(this._events={})},a.getListeners=function(k){var j,l,h=this._getEvents();if("object"==typeof k){j={};for(l in h){h.hasOwnProperty(l)&&k.test(l)&&(j[l]=h[l])}}else{j=h[k]||(h[k]=[])}return j},a.getListenersAsObject=function(i){var h,j=this.getListeners(i);return j instanceof Array&&(h={},h[i]=j),h||j},a.addListener=function(l,j){var h,k=this.getListenersAsObject(l);for(h in k){k.hasOwnProperty(h)&&-1===g(j,k[h])&&k[h].push(j)}return this},a.on=a.addListener,a.defineEvent=function(h){return this.getListeners(h),this},a.defineEvents=function(i){for(var h=0;i.length>h;h+=1){this.defineEvent(i[h])}return this},a.removeListener=function(m,j){var h,l,k=this.getListenersAsObject(m);for(l in k){k.hasOwnProperty(l)&&(h=g(j,k[l]),-1!==h&&k[l].splice(h,1))}return this},a.off=a.removeListener,a.addListeners=function(i,h){return this.manipulateListeners(!1,i,h)},a.removeListeners=function(i,h){return this.manipulateListeners(!0,i,h)},a.manipulateListeners=function(m,j,q){var h,l,k=m?this.removeListener:this.addListener,p=m?this.removeListeners:this.addListeners;if("object"!=typeof j||j instanceof RegExp){for(h=q.length;h--;){k.call(this,j,q[h])}}else{for(h in j){j.hasOwnProperty(h)&&(l=j[h])&&("function"==typeof l?k.call(this,h,l):p.call(this,h,l))}}return this},a.removeEvent=function(k){var j,l=typeof k,h=this._getEvents();if("string"===l){delete h[k]}else{if(\"object\"===l){for(j in h){h.hasOwnProperty(j)&&k.test(j)&&delete h[j]}}else{delete this._events}}return this},a.emitEvent=function(m,j){var o,h,l,k=this.getListenersAsObject(m);for(h in k){if(k.hasOwnProperty(h)){for(o=k[h].length;o--;){l=j?k[h][o].apply(null,j):k[h][o](),l===!0&&this.removeListener(m,k[h][o])}}}return this},a.trigger=a.emitEvent,a.emit=function(i){var h=Array.prototype.slice.call(arguments,1);return this.emitEvent(i,h)},"function\"==typeof define&&define.amd?define(function(){return b}):f.EventEmitter=b})(this),function(f){var b=document.documentElement,g=function(){};b.addEventListener?g=function(i,h,j){i.addEventListener(h,j,!1)}:b.attachEvent&&(g=function(h,j,e){h[j+e]=e.handleEvent?function(){var i=f.event;i.target=i.target||i.srcElement,e.handleEvent.call(e,i)}:function(){var i=f.event;i.target=i.target||i.srcElement,e.call(h,i)},h.attachEvent(\"on"+j,h[j+e])});var a=function(){};b.removeEventListener?a=function(i,h,j){i.removeEventListener(h,j,!1)}:b.detachEvent&&(a=function(k,j,l){k.detachEvent("on\"+j,k[j+l]);try{delete k[j+l]}catch(h){k[j+l]=void 0}});var c={bind:g,unbind:a};"function"==typeof define&&define.amd?define(c):f.eventie=c}(this),function(k){function m(h,a){for(var i in a){h[i]=a[i]}return h}function f(a){return"[object Array]\"===l.call(a)}function g(o){var h=[];if(f(o)){h=o}else{if("number\"==typeof o.length){for(var a=0,n=o.length;n>a;a++){h.push(o[a])}}else{h.push(o)}}return h}function b(q,s){function i(r,u,t){if(!(this instanceof i)){return new i(r,u)}"string"==typeof r&&(r=document.querySelectorAll(r)),this.elements=g(r),this.options=m({},this.options),\"function"==typeof u?t=u:m(this.options,u),t&&this.on(\"always",t),this.getImages(),p&&(this.jqDeferred=new p.Deferred);var a=this;setTimeout(function(){a.check()})}function h(a){this.img=a}i.prototype=new q,i.prototype.options={},i.prototype.getImages=function(){this.images=[];for(var y=0,u=this.elements.length;u>y;y++){var A=this.elements[y];\"IMG"===A.nodeName&&this.addImage(A);for(var a=A.querySelectorAll("img"),x=0,v=a.length;v>x;x++){var z=a[x];this.addImage(z)}}},i.prototype.addImage=function(n){var a=new h(n);this.images.push(a)},i.prototype.check=function(){function y(t,n){return u.options.debug&&j&&c.log("confirm",t,n),u.progress(t),z++,z===a&&u.complete(),!0}var u=this,z=0,a=this.images.length;if(this.hasAnyBroken=!1,!a){return this.complete(),void 0}for(var x=0;a>x;x++){var v=this.images[x];v.on("confirm\",y),v.check()}},i.prototype.progress=function(a){this.hasAnyBroken=this.hasAnyBroken||!a.isLoaded,this.emit(\"progress",this,a),this.jqDeferred&&this.jqDeferred.notify(this,a)},i.prototype.complete=function(){var n=this.hasAnyBroken?\"fail":\"done\";if(this.isComplete=!0,this.emit(n,this),this.emit("always\",this),this.jqDeferred){var a=this.hasAnyBroken?\"reject":\"resolve\";this.jqDeferred[a](this)}},p&&(p.fn.imagesLoaded=function(r,a){var u=new i(this,r,a);return u.jqDeferred.promise(p(this))});var o={};return h.prototype=new q,h.prototype.check=function(){var n=o[this.img.src];if(n){return this.useCached(n),void 0}if(o[this.img.src]=this,this.img.complete&&void 0!==this.img.naturalWidth){return this.confirm(0!==this.img.naturalWidth,\"naturalWidth"),void 0}var a=this.proxyImage=new Image;s.bind(a,\"load",this),s.bind(a,"error",this),a.src=this.img.src},h.prototype.useCached=function(n){if(n.isConfirmed){this.confirm(n.isLoaded,"cached was confirmed\")}else{var a=this;n.on("confirm",function(r){return a.confirm(r.isLoaded,\"cache emitted confirmed"),!0})}},h.prototype.confirm=function(n,a){this.isConfirmed=!0,this.isLoaded=n,this.emit(\"confirm\",this,a)},h.prototype.handleEvent=function(n){var a=\"on"+n.type;this[a]&&this[a](n)},h.prototype.onload=function(){this.confirm(!0,"onload\"),this.unbindProxyEvents()},h.prototype.onerror=function(){this.confirm(!1,\"onerror"),this.unbindProxyEvents()},h.prototype.unbindProxyEvents=function(){s.unbind(this.proxyImage,\"load",this),s.unbind(this.proxyImage,"error",this)},i}var p=k.jQuery,c=k.console,j=c!==void 0,l=Object.prototype.toString;\"function"==typeof define&&define.amd?define(["eventEmitter\",\"eventie\"],b):k.imagesLoaded=b(k.EventEmitter,k.eventie)}(window);var isOpera=!!window.opera||navigator.userAgent.indexOf("Opera")>=0;var isFirefox=typeof InstallTrigger!=="undefined";var isSafari=Object.prototype.toString.call(window.HTMLElement).indexOf("Constructor")>0;var isChrome=!!window.chrome;var isIE=false;var CFCBrowser=isFirefox?"firefox\":(isChrome?"chrome\":(isSafari?\"safari":(isOpera?"opera\":(isIE?\"ie\":null))));\$Core.ePhoto={width:0,height:0,img_width:0,img_height:0,photos:[],urls:[],aImgWidth:[],aImgHeight:[],aImgLink:[],thumbnails:[],requests:[],end_left:0,end_right:0,dom_ready:0,all_item:0,c_item:4,sCallUrl:\"ephoto.loadPhotoDetail\",is_change:1,bIsInit:false,aTags:{},is_resize:0,load_item:10,fullslide:false,slideshow:0,currentslide:0,bIsDragDrop:0,iCurrentAlbum:0,iLeftAlbum:0,iParentLeft:0,bIsSelectAlbum:false,sTypeView:"photo\",sCurrentUrl:\"",allowPushState:true,viewPhoto:function(g,a,f,c){if(a!=1){\$Core.ePhoto.photos=[];\$Core.ePhoto.urls=[];\$Core.ePhoto.thumbnails=[];\$Core.ePhoto.aImgWidth=[];\$Core.ePhoto.aImgHeight=[]}var b=0;var e="\";if(this.photos.length==0){\$.ajaxCall("ephoto.loadInitPhoto\","photo_id=\"+g+\"&page_size=\"+this.load_item+"&type_id="+c+"&type=\"+f);e=\$(\"#photo_holder_image_"+g).attr("image_url")}else{b=\$.inArray(parseInt(g),this.photos);if(b==-1){\$Core.ePhoto.photos=[];\$.ajaxCall(\"ephoto.loadInitPhoto",\"photo_id="+g+"&page_size="+this.load_item+\"&type_id=0&type="+f);e=\$(\"#photo_holder_image_\"+g).attr("image_url");b=0}else{e=this.urls[b]}}if(f=="user"){\$Core.ePhoto.sTypeView=\"feed\"}else{\$Core.ePhoto.sTypeView="photo\"}\$Core.ePhoto.is_change=1;\$Core.ePhoto.view(e,b,g,c,f);\$Core.ePhoto.sCurrentUrl=window.location.href},view:function(b,l,e,g,a,n){if(\$Core.ePhoto.dom_ready==1){if(l!=-1){if(window.location.host!=="$sValidDomain\"){return false}\$(\"#cfc_image_showing\").attr(\"value",e);\$("#cfc_type_id_showing").attr(\"value",g);\$(\"#cfc_type_showing").attr(\"value",a);var f=0;var j=0;var i=\"\";if(\$(\"#photo_holder_image_"+e).length>0){i=\$("#photo_holder_image_\"+e).attr(\"href");f=\$(\"#photo_holder_image_"+e).attr("image_width\");j=\$(\"#photo_holder_image_\"+e).attr(\"image_height\")}else{i=\$Core.ePhoto.aImgLink[l];f=\$Core.ePhoto.aImgWidth[l];j=\$Core.ePhoto.aImgHeight[l]}if(\$Core.ePhoto.allowPushState&&i!==\"\"){if(history.state===null||typeof(history.state.id)===\"undefined\"){history.pushState({id:"ePhoto\"},"\",i)}else{if(typeof(history.state.id)!==\"undefined\"){history.replaceState({id:"ePhoto\"},\"\",i)}}}var k=f/j;var o=\$Core.ePhoto.width-380;var c=\$Core.ePhoto.height-140;if(typeof(n)!==\"undefined"&&n==1){d=new Date();b+="?"+d.getTime()}\$(\"#cfc_image\").remove();\$(".cfc_photos_image").html('<img class="cfc_image\" id=\"cfc_image" src="'+b+'" >');\$Core.ePhoto.img_width=f;\$Core.ePhoto.img_height=j;\$Core.ePhoto.resizePhoto(o,c,f,j,k);var h=parseInt((o-\$Core.ePhoto.img_width)/2);var m=parseInt((c-\$Core.ePhoto.img_height)/2+2);\$(".cfc_photos_image").css({width:this.img_width,height:this.img_height,left:h,top:m});\$("#cfc_image\").css({"max-width\":this.img_width,\"max-height":this.img_height});\$(\".view_photo_based_on_google\").show();\$("#cfc_is_showing").attr(\"value\",1);\$(\".cfc_photos_control_next").attr(\"onclick","\$Core.ePhoto.nextPhoto("+e+","+g+',"'+a+'")');\$(\".cfc_photos_control_prev\").attr("onclick",\"\$Core.ePhoto.prevPhoto("+e+",\"+g+',"'+a+'")');if(this.photos.length!=0){\$Core.ePhoto.controlSlide()}else{this.dom_ready=0}if(this.is_change==1){\$Core.ePhoto.beginLoading();\$Core.ePhoto.killRequest();\$Core.ePhoto.addRequest(e)}}}},viewAlbum:function(c,a,e){\$Core.ePhoto.photos=[];\$Core.ePhoto.urls=[];\$Core.ePhoto.thumbnails=[];\$Core.ePhoto.aImgWidth=[];\$Core.ePhoto.aImgHeight=[];\$Core.ePhoto.sTypeView=\"album";\$.ajaxCall("ephoto.loadInitPhoto\",\"photo_id=\"+a+"&page_size="+this.load_item+\"&type_id="+c+"&type=\"+e);if(a!=0){\$Core.ePhoto.is_change=1;var b=\$("#photo_holder_image_"+a).attr("image_url");\$Core.ePhoto.view(b,0,a,c,e)}\$(\".ephoto_row_popup").unbind("click")},beginLoading:function(){if(\$(\".cfc_photo_loading_detail\").length==0){\$sDiv='<div class="cfc_photo_loading_detail\"></div>';\$(".cfc_photos_right").append(\$sDiv)}\$(".cfc_photos_action").html(\"");\$(\".cfc_photos_rotate\").html("\")},initMiniAction:function(){\$(".ephoto_row_like\").unbind(\"click");\$(\".ephoto_row_like\").click(function(){var b=\$(this).parent().attr("data-filter");var c=\$(this).parent().attr("rel\");var a=\"";if(b==\"photo"){a=\"photo"}if(b=="album\"){a=\"photo_album\"}\$.ajaxCall(\"ephoto.addLike\","type_id=\"+a+"&item_id=\"+c+"&parent_id=\"+c);return false});\$(".ephoto_row_unlike").unbind("click");\$(\".ephoto_row_unlike").click(function(){var b=\$(this).parent().attr(\"data-filter\");var c=\$(this).parent().attr(\"rel");var a="\";if(b==\"photo"){a="photo"}if(b==\"album"){a="photo_album"}\$.ajaxCall(\"ephoto.deleteLike\","type_id="+a+"&item_id=\"+c+"&parent_id="+c);return false});\$(\".ephoto_row_popup\").unbind("click\");\$(".ephoto_row_popup\").click(function(){var a=\$(this).parent().attr("data-filter");var b=\$(this).parent().attr("type");var e=\$(this).parent().attr(\"rel");var c=\$(this).parent().attr(\"view\");switch(a){case"photo\":if(c!=0){\$Core.ePhoto.viewAlbum(c,e,\"album")}else{\$Core.ePhoto.viewPhoto(e,0,b,c)}break;case\"album":\$Core.ePhoto.viewAlbum(e,0,"album\");break;default:break}});\$(\".ephoto_row_comment\").unbind(\"click");\$(\".ephoto_row_comment").click(function(){var a=\$(this).parents(\".image_hover_holder\").find(\"a.photo_holder_image\").attr("href");window.location=a+\"add-comment"});\$(\".ephoto_row_view\").unbind("click");\$(".ephoto_row_view\").click(function(){var a=\$(this).parents(".image_hover_holder").find("a.photo_holder_image").attr("href");window.location=a})},initPhotoShow:function(){if(CFCBrowser==="ie"&&parseInt(\$.browser.version,10)<10||CFCBrowser==="safari\"){this.allowPushState=false}if("draggable" in document.createElement(\"span")){\$Core.ePhoto.bIsDragDrop=1}if(\$(\".ephoto_upload_popup").length==0){\$("body\").append('<div class=\"ephoto_upload_popup\"></div>');if(((oParams.sController.substr(0,6))=="ephoto\"||(oParams.sController.substr(0,5))=="photo\")&&(oParams.sController.substr(0,14)!="ephoto.admincp\")&&(oParams.sController.substr(0,13)!="photo.admincp")&&(oParams.sController!=\"ephoto.add\"&&oParams.sController!=\"photo.add\")){\$.ajaxCall(\"ephoto.loadUploadBox\","is_dnd="+\$Core.ePhoto.bIsDragDrop)}}if((!oCore[\"core.is_admincp\"])){if(\$(".view_photo_based_on_google").length==0){\$(\"body").append('<div class=\"view_photo_based_on_google\"></div>');\$.ajaxCall(\"ephoto.loadPhotoBox")}}if(\$.browser.msie&&parseInt(\$.browser.version,10)==8&&!getParam("bJsIsMobile")){\$(\".photo_row_image_hover_in").css({width:159,height:159})}\$Core.ePhoto.initMiniAction()},countPhoto:function(){\$Core.ePhoto.all_item=\$Core.ePhoto.photos.length},controlSlide:function(){var b=\$(\"#cfc_image_showing\").val();var a=\$.inArray(parseInt(b),this.photos);if(this.end_left==1&&a==0){\$(".cfc_photos_prev\").hide();if(this.all_item>1){\$(".cfc_photos_next\").show()}}else{if(a==0&&this.all_item>1){\$(".cfc_photos_next").show()}}if(this.end_right==1&&a==(this.all_item-1)){\$(".cfc_photos_next").hide();if(this.all_item>1){\$(".cfc_photos_prev").show()}}else{if(a==(this.all_item-1)&&this.all_item>1){\$(\".cfc_photos_prev").show()}}if(a>0&&a<this.all_item-1){\$(\".cfc_photos_prev").show();\$(".cfc_photos_next\").show()}},insertPhoto:function(h,c,g,b,e,a,f){if(b==\"prev\"){\$Core.ePhoto.photos.unshift(parseInt(h));\$Core.ePhoto.aImgWidth.unshift(parseInt(e));\$Core.ePhoto.aImgHeight.unshift(parseInt(a));\$Core.ePhoto.urls.unshift(c);\$Core.ePhoto.thumbnails.unshift(g);\$Core.ePhoto.aImgLink.unshift(f)}if(b=="next\"){\$Core.ePhoto.photos.push(parseInt(h));\$Core.ePhoto.aImgWidth.push(parseInt(e));\$Core.ePhoto.aImgHeight.push(parseInt(a));\$Core.ePhoto.urls.push(c);\$Core.ePhoto.thumbnails.push(g);\$Core.ePhoto.aImgLink.push(f)}},removeView:function(){\$(".view_photo_based_on_google\").hide();\$(".ephoto_upload_popup").hide();\$("#cfc_is_showing").attr(\"value\",0);if(this.allowPushState){history.back()}\$Core.ePhoto.initMiniAction();\$Core.ePhoto.viewAll(0)},nextPhoto:function(f,b,e){if(f!=\"\"){var a=\$.inArray(parseInt(f),this.photos);if(a==this.all_item-1){return false}\$Core.ePhoto.is_change=1;\$Core.ePhoto.aTags={};\$("#noteform").remove();\$Core.ePhoto.view(this.urls[a+1],a+1,this.photos[a+1],b,e);if(a>=(this.all_item-this.c_item)&&this.end_right==0&&this.bIsInit==true){\$Core.ePhoto.bIsInit=false;var c=this.photos[this.all_item-1];\$.ajaxCall(\"ephoto.loadMorePhoto\",\"photo_id="+c+"&status=next&type_id="+b+\"&type="+e)}}},prevPhoto:function(g,b,f){if(g!=\"\"){var a=\$.inArray(parseInt(g),this.photos);if(a==0){return false}\$Core.ePhoto.is_change=1;\$Core.ePhoto.aTags={};\$("#noteform\").remove();\$Core.ePhoto.view(this.urls[a-1],a-1,this.photos[a-1],b,f);if(a<=this.c_item-1&&this.end_left==0&&this.bIsInit==true){\$Core.ePhoto.bIsInit=false;var e=this.photos[0];\$.ajaxCall(\"ephoto.loadMorePhoto","photo_id="+e+"&status=prev&type_id="+b+\"&type=\"+f)}if(a>=(this.all_item-this.c_item)&&this.end_right==0&&this.bIsInit==true){\$Core.ePhoto.bIsInit=false;var c=this.photos[this.all_item-1];\$.ajaxCall("ephoto.loadMorePhoto\","photo_id=\"+c+"&status=next&type_id="+b+\"&type="+f)}}},bindPhotoView:function(){\$(".cfc_photos_control_prev\").hover(function(){\$(".cfc_photos_prev").addClass("cfc_hover_prev")},function(){\$(".cfc_photos_prev").removeClass("cfc_hover_prev")});\$(\".cfc_photos_control_next").hover(function(){\$(\".cfc_photos_next\").addClass(\"cfc_hover_next")},function(){\$(".cfc_photos_next").removeClass(\"cfc_hover_next\")});\$(window).resize(function(){\$Core.ePhoto.width=\$(window).width();\$Core.ePhoto.height=\$(window).height();var a=parseInt(\$("#cfc_is_showing\").val());\$Core.ePhotoViewAll.count_view=parseInt((parseInt(\$Core.ePhoto.width)-140)/120);if(a){\$Core.ePhoto.is_change=0;var c=\$.inArray(parseInt(\$("#cfc_image_showing").val()),\$Core.ePhoto.photos);var b=\$(\"#cfc_type_id_showing\").val();var e=\$("#cfc_type_showing").val();\$Core.ePhoto.view(\$Core.ePhoto.urls[c],c,\$Core.ePhoto.photos[c],b,e)}});\$(\".cfc_fullscreen\").click(function(){\$Core.ePhoto.viewAll(0)});\$(\".cfc_photos_slide_show_holder\").click(function(){\$Core.ePhoto.fullslide=true;\$Core.ePhoto.viewFullScreen()});\$(\".cfc_photos_image\").dblclick(function(){\$Core.ePhoto.fullslide=false;\$Core.ePhoto.viewFullScreen()});\$(document).keydown(function(a){if(!bByPassLoadedKeyBrowser){if(a.keyCode==37){\$("#photo_view_theater_mode .previous a:first\").click();\$(\".cfc_photos_control_prev\").click()}else{if(a.keyCode==39){\$("#photo_view_theater_mode .next a:first\").click();\$(\".cfc_photos_control_next").click()}}if(a.keyCode==27){\$Core.ePhoto.removeView()}}})},viewFullScreen:function(){\$(".cfc_photos_view_full_screen\").show();var b=\$(\"#cfc_image_showing\").val();var a=\$.inArray(parseInt(b),this.photos);if(a!==-1||b!==\""){\$("#cfc_photos_full_screen\").attr("src",this.urls[a]);\$(".cfc_photos_view_full_screen").fullScreen();w=screen.height-10;\$(".cfc_photos_view_full_screen\").css({height:w+"px\"});if(this.fullslide){\$Core.ePhoto.playSlideShow(a)}else{\$(".cfc_full_screen_resume").hide();\$(".cfc_full_screen_pause").hide();\$(".cfc_full_screen_play\").show();\$(\".cfc_full_screen_play").attr("onclick\","\$Core.ePhoto.playSlideShow(\"+a+");\")}}},slideFullScreen:function(){\$Core.ePhoto.slideshow=setInterval(function(){\$Core.ePhoto.currentslide++;\$Core.ePhoto.startSlideShow()},3000)},startSlideShow:function(){\$(\"#cfc_photos_full_screen\").attr(\"src\",this.urls[\$Core.ePhoto.currentslide]);if(\$Core.ePhoto.currentslide>=\$Core.ePhoto.all_item-1){\$Core.ePhoto.currentslide=-1}},pauseSlideShow:function(){\$(".cfc_full_screen_pause").addClass(\"cfc_full_screen_resume\").removeClass("cfc_full_screen_pause");\$(\".cfc_full_screen_resume\").attr("onclick",\"\$Core.ePhoto.resumeSlideShow();\");\$sHtml='<div class="cfc_full_screen_holder\"></div><div class=\"cfc_full_screen_resume_icon\"></div><div class=\"cfc_full_screen_text\">Resume</div>';\$(".cfc_full_screen_resume").html(\$sHtml);\$(\".cfc_full_screen_resume").show();\$(\".cfc_full_screen_pause\").hide();\$(".cfc_full_screen_play").hide();clearInterval(\$Core.ePhoto.slideshow)},resumeSlideShow:function(){\$Core.ePhoto.playSlideShow(\$Core.ePhoto.currentslide)},playSlideShow:function(a){\$(\".cfc_full_screen_resume").addClass(\"cfc_full_screen_pause\").removeClass(\"cfc_full_screen_resume");\$(\".cfc_full_screen_pause").attr(\"onclick\","\$Core.ePhoto.pauseSlideShow();");\$sHtml='<div class=\"cfc_full_screen_holder"></div><div class="cfc_full_screen_pause_icon"></div><div class=\"cfc_full_screen_text\">Pause</div>';\$(".cfc_full_screen_pause").html(\$sHtml);\$(\".cfc_full_screen_pause").show();\$(\".cfc_full_screen_resume").hide();\$(\".cfc_full_screen_play").hide();\$Core.ePhoto.currentslide=a;\$Core.ePhoto.slideFullScreen()},exitSlideShow:function(){clearInterval(\$Core.ePhoto.slideshow);\$(".cfc_photos_view_full_screen\").hide()},clone:function(a){return \$.extend(true,{},\$Core.ePhoto.aTags)},resizeTag:function(a){sTagContent=\$Core.ePhoto.clone(\$Core.ePhoto.aTags);if(isset(sTagContent)&&!empty(sTagContent)){\$iImgWidthResize=\$("#cfc_image\").parent().width();\$iImgHeightResize=\$("#cfc_image").parent().height();\$iImgWidth=parseInt(\$("#photo_holder_image_\"+sTagContent.item_id).attr(\"image_width\"));\$iImgHeight=parseInt(\$(\"#photo_holder_image_"+sTagContent.item_id).attr("image_height\"));\$iRate=\$iImgWidth/\$iImgWidthResize;for(tag in sTagContent.notes){sTagContent.notes[tag][\"height\"]=sTagContent.notes[tag]["height"]/\$iRate;sTagContent.notes[tag]["width\"]=(sTagContent.notes[tag]["width\"]/\$iRate);sTagContent.notes[tag]["x1\"]=(sTagContent.notes[tag]["x1"]/\$iRate);sTagContent.notes[tag][\"y1"]=(sTagContent.notes[tag][\"y1\"]/\$iRate)}for(jstag in sTagContent.js_notes){sTagContent.js_notes[jstag]["height\"]=(sTagContent.js_notes[jstag]["height\"]/\$iRate);sTagContent.js_notes[jstag][\"width\"]=(sTagContent.js_notes[jstag]["width"]/\$iRate);sTagContent.js_notes[jstag][\"x1\"]=(sTagContent.js_notes[jstag]["x1"]/\$iRate);sTagContent.js_notes[jstag]["y1\"]=(sTagContent.js_notes[jstag]["y1\"]/\$iRate)}if(this.is_change==0||(typeof(a)!==\"undefined\"&&a)){for(tag in sTagContent.js_notes){\$(\"#js_note_"+sTagContent.js_notes[tag].note_id).css({left:sTagContent.js_notes[tag]["x1"],top:sTagContent.js_notes[tag]["y1\"],width:sTagContent.js_notes[tag]["width\"],height:sTagContent.js_notes[tag]["height\"]})}}else{}}},addTagAction:function(a){\$Core.ePhoto.aTags=a;\$Core.ePhoto.resizeTag()},deleterTagAction:function(a){\$("li#ephoto_tag_view_"+a).remove();if(\$(".view_img_photo ul\").children().size()==0){\$(\".view_album\").hide()}},resizePhoto:function(e,b,h,f,c){if(h>=e&&f>=b){var a=e/c;if(a>=b){var g=b*c;if(g>e){\$Core.ePhoto.img_height=e/c;\$Core.ePhoto.img_width=e}else{\$Core.ePhoto.img_height=parseInt(b);\$Core.ePhoto.img_width=parseInt(b*c)}}else{\$Core.ePhoto.img_height=parseInt(a);\$Core.ePhoto.img_width=parseInt(e)}}else{if(h>=e||f>=b){if(h>=e){\$Core.ePhoto.img_width=e;\$Core.ePhoto.img_height=parseInt(e/c)}if(f>=b){\$Core.ePhoto.img_width=parseInt(b*c);\$Core.ePhoto.img_height=b}}else{\$Core.ePhoto.img_width=h;\$Core.ePhoto.img_height=f}}if(isset(\$Core.ePhoto.aTags)&&!empty(\$Core.ePhoto.aTags)){\$Core.ePhoto.resizeTag()}},killRequest:function(){var a=this.requests.length;if(a>0){for(var b=0;b<a;b++){this.requests[b].abort()}}},addRequest:function(b){var a=\"&"+getParam(\"sGlobalTokenName\")+"[ajax]=true&\"+getParam(\"sGlobalTokenName\")+\"[call]=\"+this.sCallUrl;if(!a.match(/\[security_token\]/i)){a+="&"+getParam("sGlobalTokenName\")+\"[security_token]=\"+oCore["log.security_token"]}a+=\"&photo_id=\"+encodeURIComponent(b);var c=\$.ajax({type:\"POST\",url:getParam("sJsStatic\")+\"ajax.php\",data:a,success:function(e){\$Core.ePhoto.parseData(e)}});this.requests.push(c)},parseData:function(e){\$aResutls=\$.parseJSON(e);var c="\";if(\$aResutls.photo.moderation==1){c='<div class=\"cfc_photos_delete" onclick="\$Core.ePhoto.deletePhoto(this); return false;" title=\"'+oTranslations[\"ephoto.delete"]+'\" ><a href=\"'+\$aResutls.photo.delete_link+'" class=\"cfc_photos_delete_icon \"></a></div><div class="cfc_photos_edit\" onclick=\"\$Core.ePhoto.editPhoto();" title=\"'+oTranslations["ephoto.edit"]+'"><div class=\"cfc_photos_edit_icon\"></div></div>';\$(\".cfc_photos_action").html(c);c='<div class="cfc_photos_ratate_left\" onclick=\"\$Core.ePhoto.rotatePhoto(\'left\'); return false;\" title="'+oTranslations[\"ephoto.rotate_left\"]+'\"><a href="javascript:void(0);\" class="cfc_photos_ratate_left_icon\"></a></div><div class="cfc_photos_ratate_right\" onclick="\$Core.ePhoto.rotatePhoto(\'right\'); return false;" title="'+oTranslations[\"ephoto.rotate_right"]+'"><a href=\"javascript:void(0);\"  class=\"cfc_photos_ratate_right_icon"></a></div>';\$(".cfc_photos_rotate\").html(c)}else{\$(\".cfc_photos_action\").html("");\$(".cfc_photos_rotate\").html("\")}c='<a href=\"'+\$aResutls.photo.link+'\" class="cfc_photos_name_icon \" title=\"'+\$aResutls.photo.titletrim+'">'+\$aResutls.photo.title+\"</a>\";\$(\".cfc_photos_name").html(c);var a=\$.inArray(parseInt(\$aResutls.photo.photo_id),this.photos)+1;c='<div class="cfc_photos_created">'+\$aResutls.photo.create+'</div><div class=\"cfc_photos_space\">-</div><div class="cfc_photos_user_name\"><a href="'+\$aResutls.photo.user_link+'">'+\$aResutls.photo.full_name+'</a></div><div class="cfc_photos_count_item"><b>'+a+\"</b> "+oTranslations[\"ephoto.of"]+" "+this.all_item+"</div>";\$(\".cfc_photos_owner").html(c);var b=\$aResutls.html.replace(/\\/g,\"");\$(".cfc_photos_right\").html(b);\$Core.ePhoto.aTags=\$aResutls.tagContent;if(\$aResutls.allow_dw==1){\$(\"#js_cfc_download_photo").attr({href:\$aResutls.dwlink});\$(".cfc_photos_download\").css({display:\"inline-block"})}else{\$(\".cfc_photos_download\").hide()}if(\$.browser.msie&&parseInt(\$.browser.version,10)==8&&!getParam(\"bJsIsMobile\")){\$(\".quickEdit").parent().hide();\$(".quickEdit\").parent().next();\$(".cfc_photos_slide_show\").hide()}\$Core.loadInit()},viewAll:function(a){if(this.dom_ready==1){if(a==1){var e=\$("#cfc_image_showing").val();var b=\$.inArray(parseInt(e),this.photos);if(b==-1){b=0}\$Core.ePhotoViewAll.count_view=parseInt((parseInt(this.width)-144)/120);if(b<\$Core.ePhotoViewAll.count_view){\$Core.ePhotoViewAll.current=0}else{\$Core.ePhotoViewAll.current=b}\$(\".cfc_photos_view_all_button_holder").attr(\"onclick",\"\$Core.ePhoto.viewAll(0);");\$(".cfc_fullscreen").css({height:"100%\","z-index":4003}).show();\$(\".cfc_photos_view_all").css({height:"180","z-index":4003}).show();\$(\".cfc_photos_view_all_header\").show();\$(".cfc_photos_all_item_holder").width(9999);\$(\".cfc_photos_footer\").css({\"z-index":4004});\$(\".cfc_photos_item").removeClass(\"image_selector\");\$("#cfc_photos_item_"+e).addClass("image_selector\");\$(".cfc_all_photos").html(\" (\"+this.all_item+")");var c=0;if(b>=\$Core.ePhotoViewAll.count_view){c=b*120}else{c=0}\$(\".cfc_photos_all_item_holder\").css({left:-c});\$Core.ePhotoViewAll.loadInit()}else{\$(\".cfc_photos_view_all_button_holder").attr(\"onclick",\"\$Core.ePhoto.viewAll(1);\");\$(".cfc_fullscreen\").css({height:"0\",\"z-index\":4003}).show();\$(\".cfc_photos_view_all\").css({height:"0",\"z-index\":4003}).show();\$(".cfc_photos_view_all_header\").hide();\$(".cfc_photos_footer\").css({"z-index\":4001})}}},bindViewAllPhoto:function(){var a=0;var c=\"";for(a;a<this.all_item;a++){c+='<div class=\"cfc_photos_item" id="cfc_photos_item_'+this.photos[a]+'" onclick="return \$Core.ePhoto.clickViewPhoto('+this.photos[a]+')" rel="'+a+'" >';c+='<img alt="\" src="'+this.thumbnails[a]+'\" /></div>'}if(\$(".cfc_photos_view_full_screen\").length==0){var b='<div class="cfc_photos_view_full_screen\">';b+='<div class="cfc_full_screen_controll"><div class=\"cfc_controll_action"><div class="cfc_full_screen_play\" ><div class=\"cfc_full_screen_holder\"></div><div class="cfc_full_screen_play_icon"></div><div class="cfc_full_screen_text\">Play</div></div><div class=\"cfc_full_screen_resume"><div class="cfc_full_screen_holder"></div><div class="cfc_full_screen_resume_icon\"></div><div class="cfc_full_screen_text">Resume</div></div><div class=\"cfc_full_screen_close\"><div class=\"cfc_full_screen_holder"></div><div class=\"cfc_full_screen_close_icon\"></div></div></div></div>';b+='<img id=\"cfc_photos_full_screen" alt=\"\" src=\"\" /></div>';\$(\"body").append(b)}\$(\".cfc_photos_all_item_holder").html(c)},clickViewPhoto:function(g){\$Core.ePhoto.is_change=1;var b=\$.inArray(parseInt(g),\$Core.ePhoto.photos);var a=\$(\"#cfc_type_id_showing\").val();var f=\$("#cfc_type_showing").val();\$Core.ePhoto.view(\$Core.ePhoto.urls[b],b,g,a,f);\$Core.ePhoto.viewAll(0);if(b<=this.c_item-1&&this.end_left==0&&this.bIsInit==true){\$Core.ePhoto.bIsInit=false;var e=this.photos[0];\$.ajaxCall("ephoto.loadMorePhoto\",\"photo_id="+e+"&status=prev&type_id=\"+a+\"&type=\"+f)}if(b>=(this.all_item-this.c_item)&&this.end_right==0&&this.bIsInit==true){\$Core.ePhoto.bIsInit=false;var c=this.photos[this.all_item-1];\$.ajaxCall("ephoto.loadMorePhoto\",\"photo_id=\"+c+"&status=next&type_id="+a+\"&type=\"+f)}},sharePhoto:function(a,c,e,b){\$.ajaxCall("ephoto.sharePhoto",\"url=\"+a+"&title="+c+\"&id=\"+e+"&type=\"+b)},editPhoto:function(){var a=\$(\"#cfc_image_showing").val();if(isset(a)&&!empty(a)){\$Core.ePhoto.removeView();\$Core.box(\"ephoto.editPhoto\","700\",\"photo_id=\"+a)}},deletePhoto:function(a){if(confirm(oTranslations["ephoto.are_you_sure"])){window.location.href=\$(a).find(\"a\").attr("href")}},rotatePhoto:function(a){var e=\$(\"#cfc_image_showing").val();var b=\$(\"#cfc_type_id_showing").val();var c=\$("#cfc_type_showing").val();\$(\".cfc_photos_image\").html(\$.ajaxProcess(\"","large\")).height(\$("#cfc_image").height()).css({"text-align\":\"center\"}).show();\$.ajaxCall(\"ephoto.rotatePopup","photo_id="+e+"&photo_cmd="+a+"&type=\"+c+\"&type_id="+b)},openUpload:function(){var a=\$(\".ephoto_upload_background\").width();var c=\$(".ephoto_upload_background").height();var b=(this.width-a)/2;var e=(this.height-c)/2;if(b<0){b=0}if(e<0){e=0}\$(".ephoto_upload_background\").css({left:b,top:this.height});\$(\".ephoto_upload_popup").show();\$(\".ephoto_upload_background\").animate({top:e,},500)},closeUpload:function(){\$(".ephoto_upload_background").animate({top:\$Core.ePhoto.height,},500);setTimeout(function(){\$(\".ephoto_upload_popup\").hide()},500);\$Core.ePhoto.resetUpload()},closeAddAlbum:function(){\$(".ephoto_upload_content_holder").css({display:"inline-block\"});\$(\".ephoto_create_new_album\").animate({top:430,},500);setTimeout(function(){\$(\".ephoto_create_new_album").hide()},500);\$Core.ePhoto.resetAddAlbum()},initUploadPrivacy:function(a){if(a){if(\$(\".ephoto_upload_categories\").length==0){\$(".ephoto_upload_extra").slideUp()}else{\$(".ephoto_upload_privacy\").hide();\$(".ephoto_upload_privacy_comment").hide()}}else{if(\$(\".ephoto_upload_categories\").length==0){\$(".ephoto_upload_extra\").slideDown()}else{\$(".ephoto_upload_privacy").show();\$(\".ephoto_upload_privacy_comment\").show()}}},chooseAnotherAlbum:function(b){if(b==1){\$(\".ephoto_upload_album_detail\").hide();\$(".ephoto_upload_ablum_item\").show();\$(\".ephoto_upload_ablum_add").show();\$(".ephoto_upload_ablum_slide_holder\").css({overflow:"hidden\"});\$("#js_upload_album_\"+\$Core.ePhoto.iCurrentAlbum).parent().animate({left:\$Core.ePhoto.iLeftAlbum,},500);\$(\".ephoto_album_content\").animate({left:\$Core.ePhoto.iParentLeft,},500)}else{\$(\".ephoto_upload_album_detail\").hide();\$(\".ephoto_upload_ablum_item").show();\$(\".ephoto_upload_ablum_add").show();var a=\$(".ephoto_album_content\").children().size();\$Core.ePhotoScrollAlbum.iCurrent=a;var e=0;var c=0;e=(a-1)*100;if(a>5){c=(a-5)*100}\$Core.ePhotoScrollAlbum.iCurrentLeft=-c;\$(\".ephoto_upload_ablum_slide_holder\").css({overflow:"hidden\"});\$("#js_upload_album_"+\$Core.ePhoto.iCurrentAlbum).parent().animate({left:e,},1000);\$(\".ephoto_album_content\").animate({left:-c,},500);\$("#js_select_dif_album\").attr("rel\",1)}\$(\"#js_upload_album").attr(\"value",\"\");\$Core.ePhoto.bIsSelectAlbum=false;\$Core.ePhoto.initUploadPrivacy(false)},bCantUploadMore:true,iMaxItemUpload:10,uploadMore:function(a){this.bCantUploadMore=a},maxItemUpload:function(a){this.iMaxItemUpload=a},photoProgressBarSettings:function(){if(\$Core.exists("#js_photo_form_holder")){oProgressBar={holder:\"#js_photo_form_holder\",progress_id:\"#js_progress_bar\",uploader:\"#js_photo_upload_input",add_more:this.bCantUploadMore,max_upload:this.iMaxItemUpload,total:1,frame_id:"js_upload_frame",file_id:\"image[]",valid_file_ext:new Array("gif\","png","jpg\","jpeg\")};\$Core.progressBarInit()}},resetAddAlbum:function(){\$(\".ephoto_create_new_album #name\").attr(\"value",\"");\$(".ephoto_create_new_album #description").attr("value",\"\");\$(".ephoto_create_new_album").find(\".privacy_setting_holder").each(function(){\$(this).find("ul").find("li:first a\").click()})},resetUpload:function(){\$Core.ePhoto.resetAddAlbum();\$(".ephoto_upload_menu ul li:first a\").click();\$(\".ephoto_upload_extra\").find(\".privacy_setting_holder\").each(function(){\$(this).find(\"ul\").find("li:first a").click()});\$Core.ePhoto.chooseAnotherAlbum(1);\$(".ephoto_album_content\").css({left:0});\$Core.ePhotoScrollAlbum.reset();\$Core.ePhotoDnd.resetPhoto()},initClickUploadAlbum:function(){\$(".ephoto_upload_ablum_item a").click(function(){if(!\$Core.ePhoto.bIsSelectAlbum){\$Core.ePhoto.iCurrentAlbum=\$(this).attr(\"rel");\$Core.ePhoto.iLeftAlbum=\$(this).parent().position().left;\$Core.ePhoto.iParentLeft=\$(".ephoto_album_content").position().left;var b=\$(this).parent().attr("title\");\$(".ephoto_upload_ablum_slide_holder\").css({overflow:\"visible"});\$(\".ephoto_album_content").css({left:0,width:"auto\"});var a=\$Core.ePhoto.iLeftAlbum+\$Core.ePhoto.iParentLeft;\$(this).parent().css({left:a});\$("#js_upload_album\").attr("value\",\$Core.ePhoto.iCurrentAlbum);\$(this).parent().animate({left:-120,},500);\$(\".ephoto_upload_ablum_add").hide();\$(".ephoto_upload_ablum_item").each(function(c,f){if(\$(f).find(\"a\").attr("rel")!=\$Core.ePhoto.iCurrentAlbum){\$(f).hide()}});\$(\".album_name\").html(b);setTimeout(function(){\$(".ephoto_upload_album_detail\").show()},500);\$Core.ePhoto.bIsSelectAlbum=true;\$Core.ePhoto.initUploadPrivacy(true)}})},initUpload:function(){\$Core.ePhoto.initClickUploadAlbum();var a=false;\$(\".ephoto_upload_popup").unbind("click");\$(\".ephoto_upload_popup\").click(function(){if(!a){\$Core.ePhoto.closeUpload()}else{a=false}});\$(\".ephoto_upload_background\").click(function(){a=true});\$(\".ephoto_upload_menu ul li a").click(function(){if(!\$(this).hasClass("active")){\$(\".ephoto_upload_method").hide();\$(\".ephoto_upload_menu ul\").find(\".active\").removeClass("active\");\$(this).parent().addClass(\"active");var b=\$(this).parent().attr(\"id");\$(".ephoto_"+b).animate({left:0,},500);\$("#js_upload_error_message").html(\"");if(b==\"dnd_upload"){\$(\".ephoto_dnd_upload\").show();\$(\".ephoto_mass_upload").css("left",660);\$(".ephoto_basic_upload").css("left",660);\$("#js_upload_method").attr("value\","dndupload")}else{if(b==\"mass_upload\"){\$(\".ephoto_mass_upload").show();\$(\".ephoto_dnd_upload\").css(\"left",-660);\$(".ephoto_basic_upload\").css("left\",660);\$("#js_upload_method").attr(\"value","massuploader\")}else{\$(".ephoto_basic_upload").show();\$(".ephoto_dnd_upload").css("left",-660);\$(".ephoto_mass_upload\").css(\"left\",-660);\$(\"#js_upload_method\").attr("value","basicupload\")}}}});\$(\".ephoto_upload_header_close\").click(function(){\$Core.ePhoto.closeUpload()});\$(".ephoto_upload_ablum_add").click(function(){\$(\".ephoto_upload_content_holder\").hide();\$(".ephoto_create_new_album").css({display:"inline-block\"});\$(".ephoto_create_new_album").animate({top:0,},500);\$(".ephoto_album_content").css({left:0})});\$("#js_ephoto_cancel_add_album\").click(function(){\$Core.ePhoto.closeAddAlbum()});\$(\".ephoto_category_active\").click(function(){var b=\$(this).parent().find(\".ephoto_category_upload_holder");if(\$(this).hasClass(\"is_active\")){b.hide();\$(this).removeClass(\"is_active")}else{\$(".privacy_setting_active").each(function(){if(\$(this).hasClass("is_active")){\$(this).parent().find(\".privacy_setting_holder\").hide();\$(this).removeClass(\"is_active\")}});b.show();\$(this).addClass("is_active")}return false});\$(".ephoto_category_upload_holder ul li a\").click(function(){var c=\$(this).parents(\".upload_categories\").find(\".ephoto_category_active");var b=\$(this).html();if(b.toLowerCase().indexOf(\"<span>\")>-1){var e=explode("<span>",b);if(!isset(e[1])){e=explode("<SPAN>",b)}b=e[0]}c.html(\""+b+'<span class="js_hover_info">'+b+\"</span>\");\$(this).parents(\".upload_categories").find(\".ephoto_category_upload_holder").hide();c.removeClass(\"is_active");\$(this).parents(\".upload_categories").find("input").val(\$(this).attr("rel"));\$(".ephoto_category_upload_holder ul li a\").removeClass("is_active_image\");\$(this).addClass(\"is_active_image\");return false});\$("#js_select_dif_album\").click(function(){\$Core.ePhoto.chooseAnotherAlbum(\$(this).attr("rel\"))});if(\$(\".ephoto_upload_categories").length==0){\$(".ephoto_upload_privacy\").css(\"margin-left\",0)}},redirectAction:function(b,c,a){if(c){if(confirm(oTranslations["ephoto.this_process_will_redirect_to_selected_album_do_you_want_to_continue"])){window.location=a}else{window.location=b}}else{window.location=b}},resend:function(a){window.location=a},initViewTag:function(a,b){\$sHtml='<input type="hidden" id="image_height" name="val[tag][i_height]" value="'+b+'">';\$sHtml+='<input type="hidden\" id=\"image_width\" name="val[tag][i_width]\" value=\"'+a+'">';\$(\"#NoteAddForm\").append(\$sHtml)},viewAfterRotate:function(){var b=\$.inArray(parseInt(\$(\"#cfc_image_showing\").val()),\$Core.ePhoto.photos);var a=\$("#cfc_type_id_showing").val();var c=\$("#cfc_type_showing").val();\$Core.ePhoto.is_change=1;\$Core.ePhoto.view(\$Core.ePhoto.urls[b],b,\$Core.ePhoto.photos[b],a,c,1)}};\$Behavior.photoView=function(){if(\$Core.ePhoto.bIsInit===false){\$Core.ePhoto.initPhotoShow();\$Core.ePhoto.width=\$(window).width();\$Core.ePhoto.height=\$(window).height()}else{console.log("bindview");\$Core.ePhoto.bindPhotoView();if(\$Core.ePhoto.aTags!==\"\"){}}\$Core.ePhoto.bIsInit=true;\$("#js_ephoto_upload_button").unbind("click");\$("#js_ephoto_upload_button").click(function(){\$Core.ePhoto.openUpload()});\$(".profile_menu_photo").hover(function(){if(!\$(this).hasClass(\"profile_menu_active")){\$(this).find(\"img").attr({src:oParams.sJsHome+\"module/ephoto/static/image/profile_photo_hover.png"});\$(this).css({margin:0,width:\"48%","background-color":\"#535e63\",padding:\"5px 5px"});\$(this).find("a\").css({color:"#fff\"});\$(this).find(\".ephoto_menu_count\").css({color:"#ddd\"})}},function(){if(!\$(this).hasClass(\"profile_menu_active\")){\$(this).find(\"img\").attr({src:oParams.sJsHome+"module/ephoto/static/image/profile_photo.png"});\$(this).css({margin:5,width:\"48%",\"background-color\":\"#F9F9F9\",padding:0});\$(this).find(\"a").css({color:"#535353"});\$(this).find(\".ephoto_menu_count").css({color:"#7b7b7b\"})}});\$(\".profile_menu_album\").hover(function(){if(!\$(this).hasClass("profile_menu_active\")){\$(this).find("img").attr({src:oParams.sJsHome+\"module/ephoto/static/image/profile_album_hover.png\"});\$(this).css({margin:0,width:"48%\",\"background-color":"#535e63",padding:"5px 5px\"});\$(this).find(\"a\").css({color:"#fff"});\$(this).find(".ephoto_menu_count").css({color:\"#ddd\"})}},function(){if(!\$(this).hasClass("profile_menu_active\")){\$(this).find(\"img").attr({src:oParams.sJsHome+"module/ephoto/static/image/profile_album.png\"});\$(this).css({margin:5,width:\"48%\",\"background-color\":"#F9F9F9",padding:0});\$(this).find(\"a").css({color:"#535353\"});\$(this).find(".ephoto_menu_count").css({color:\"#7b7b7b\"})}});\$(\".image_hover_holder").hover(function(){\$(this).find(".photo_row_image_hover").css({visibility:"visible"})},function(){\$(this).find(".photo_row_image_hover").css({visibility:\"hidden\"})});\$(\".recent_album_item").hover(function(){\$(this).find(\".photo_row_album_image_hover\").css({visibility:\"visible\"})},function(){\$(this).find(\".photo_row_album_image_hover").css({visibility:\"hidden\"})});\$(\".album_item\").hover(function(){\$(this).find(\".photo_row_album_image_hover").css({visibility:"visible"})},function(){\$(this).find(\".photo_row_album_image_hover").css({visibility:"hidden"})});\$(\"#js_update_photo_form\").submit(function(){\$(\"#js_updating_photo\").html(\$.ajaxProcess(oTranslations["ephoto.updating_photo"]));\$(this).ajaxCall(\"ephoto.updatePhoto\");\$(\"#js_photo_edit_form\").hide();\$(\"#js_photo_outer_content").show();return false});\$(\"#js_photo_cancel_edit").click(function(){\$("#js_photo_edit_form\").hide();\$(\"#js_photo_outer_content\").show();return false});\$(\".comment_mini_end textarea\").focus(function(){bByPassLoadedKeyBrowser=true});\$(\".comment_mini_end textarea").blur(function(){bByPassLoadedKeyBrowser=false});if(bLoadedKeyBrowser==true){return}bLoadedKeyBrowser=true};var bLoadedKeyBrowser=false;var bByPassLoadedKeyBrowser=false;";}if($bIsValid){$headers=array("Cache-Control"=>"public, max-age=2592000","Connection"=>"Keep-Alive","ExpiresActive"=>"On","ExpiresDefault"=>"\"access plus 1 month\"","Content-Type"=>"text/javascript");if(count($headers)){foreach($headers as$name=>$val){header($name.": ".$val);}}echo$sContent;exit(1);}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement