var jsscriptslist='',script_debug='debug-c.js',debug_stop=0,jsscriptslist=jsscriptslist.concat(new Array(script_debug));function str_get_array_from_array(arr){var arrtarget=new Array();for(var i=0;ilen){myApp.line=8;var newmsg='';for(var j=0;j>=msg.length+len;j++){newmsg+=msg.substr(j,len)+chrrc;j=j+len;};myApp.line=13;if(newmsg)msg=newmsg;};myApp.line=saveline;return(msg);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function alert_for_msg(msg){alert(msg);};function alert_for_msg_for_debug(msg){if(!myApp.debug)return(null);alert(msg);};myDebug._alert=function(msg,stop){try{var line=myApp.line;if(!myApp.debug)return(null);var tagfct={'file':script_jscommon,'fct':'myDebug._alert=function(msg)'},stop=jscommon_stop;var debugline=(stop?parseInt(stop):0);if(isNaN(debugline))debugline=-1;stop=(stop?stop:false);stop=(!msg||stop);var diff_line=parseInt(debugline-parseInt(msg[1]));if(isNaN(diff_line))diff_line=-1;var test_diff=(diff_line!=0);if(typeof stop!=='boolean')stop=test_diff;stop=(stop||test_diff);if(stop)return(false);else{var xalert='DEBUG: alert() '+':'+chrrc+chrrc+' in fonction='+tagfct[kjsfct]+chrrc+' in file='+tagfct[kjsfile]+':'+chrrc+chrrc+' from fonction='+msg[0]+chrrc+' from file='+msg[2]+chrrc+' in line='+msg[1]+' - lines difference='+diff_line+' ('+test_diff+') - stop='+stop+chrrc+chrrc+' myApp.kislocalsite='+myApp.kislocalsite+' - myApp.debug='+myApp.debug+' - myApp.line='+myApp.line+' - myApp.konclick='+myApp.konclick+' - !msg='+!msg+chrrc+chrrc;};var len=100;if(typeof msg==='string'){alert_for_msg('alert(msg)'+chrrc+chrrc+get_cutted_message(msg,len));return(true);};line=(msg[1]?msg[1]:line);if((typeof msg==='object'||typeof msg[0]==='[object Object]')){};var file=(msg[0]?msg[0]:kjsfile),fonction=(msg[2]?msg[2]:kjsfct);var i,c,message=xalert+' typeof msg:'+typeof msg;switch(msg[0]){case'c':if(myApp.test=='')return(false);message=get_cutted_message(message,len);break;default:if(msg){c=msg.length;if(c>3)for(i=3;i-1){myApp.line=84;myDebug._alert(new Array(fct,myApp.line,script_name,file,'data='+data,'i='+i),myApp.line+stop);longtext=data.substring(i+sep.length,data.length);data=data.substring(0,i+1);var tag='content\':';i=longtext.search(tag);if(i>-1){content=result['content']=longtext.substring(i+tag.length,longtext.length);};myApp.line=93;myDebug._alert(new Array(fct,myApp.line,script_name,file,'data='+data,'content='+content),myApp.line+stop);};i=data.search('Fatal error:');j=content.search('Fatal error:');if(i>-1||j>-1){if(i>-1)t=data.substring(i,i+(offset?offset:400));if(j>-1)t=content.substring(i,i+(offset?offset:400));myApp.line=99;myDebug._alert(new Array(fct,myApp.line,script_name,file,chrrc+' CRASH IN PHP '+chrrc,t),myApp.line+stop-stop);result['ret']=false;};i=data.search('class=\'xdebug-error\'');if(i>-1){t=data.substring(i,i+(offset?offset:400));myApp.line=106;myDebug._alert(new Array(fct,myApp.line,script_name,file,t),myApp.line+stop);result['ret']=false;};result['error']=(status!='success');result['type']=result['post']=result['targetreload']=result['targetdiv']=result['params']='';try{outdata=JSON.parse(data);result['type']='json';myApp.line=113;myDebug._alert(new Array(fct,myApp.line,script_name,file,'outdata[json]='+outdata['json']),myApp.line+stop);}catch(e){if(data.substring(0,2)==='::')data=data.substring(2);outdata=data.split('::');result['type']=(data.search('::')>0?'::':'other');myApp.line=120;myDebug._alert(new Array(fct,myApp.line,script_name,file,'outdata='+outdata),myApp.line+stop);};if(result['type']=='json'){result2=outdata['call'];if(!content)content=outdata['content'];myApp.line=126;myDebug._alert(new Array(fct,myApp.line,script_name,file,'result[ret]='+result['ret'],'result='+result),myApp.line+stop);if(outdata['targetdiv'])myApp.konclick=outdata['targetdiv'];if(outdata['targetreload'])targetreload=outdata['targetreload'];if(outdata['scroll'])scroll=outdata['scroll'];if(outdata['params'])params=outdata['params'];}else if(result['type']=='::'){var i=(outdata[2]&&outdata[2].length<20?2:1);result2=outdata[i];content=outdata[i+1];}else outdata=data;result['data']=outdata;result['result2']=result2;result['scroll']=scroll;result['params']=params;if(!result['content'])result['content']=content;result['targetdiv']=myApp.konclick;if(!targetreload)result['targetreload']=targetreload;myApp.line=143;myDebug._alert(new Array(fct,myApp.line,script_name,file,'result[ret]='+result['ret'],'result[targetdiv]='+result['targetdiv'],'result[targetreload]='+result['targetreload'],'result[content]='+result['content']),myApp.line+stop);myApp.line=saveline;return(result);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function mjsreplaceall(text,src,dest){var tagfct={'file':script_debug,'fct':'mjsreplaceall(text,src,dest)'},stop=debug_stop;if(!text||text==''||typeof text!=='string')return(text);var re=new RegExp();switch(src){case'\n':re=/\n/g;break;case'/!':re=/\/!/g;break;case'wyz':re=/wyz/g;break;default:myApp.line+=' / 19 text:'+text+' - type of text:'+(typeof text)+' - tagfct:'+tagfct;if(text=='myApp.konclick=0.paper.0.0.div'||text=='get_boot_cfg_jsph0')return(text);for(var i=0;i<100;i++){text=text.replace(src,dest);if(text.search(src)<0)break;};return(text);};return(text.replace(re,dest));};function GetDateToCookie(value){try{myApp.line=511;var tagfct={'file':script_debug,'fct':'SetCookie(name,value,expires)'},stop=debug_stop;var today=new Date(),expires=new Date();expires.setTime(today.getTime()+(value*24*60*60*1000));return(expires);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function SetCookie(name,value,expires){try{myApp.line=31;var tagfct={'file':script_debug,'fct':'SetCookie(name,value,expires)'},stop=debug_stop;if(!name)return(null);var arr=new Array(name,value,expires,path,domain,false);var argv=get_arguments_details(SetCookie.arguments,arr);var expires=argv[2],path=argv[3],domain=argv[4],secure=argv[5];value=escape(value);expires=((expires==null)?1:expires);var cookie=name+'='+value+(',expires='+GetDateToCookie(expires))+((path==null)?(value?',path=/':''):(',path='+path))+((domain==null)?'':(value?(',domain='+domain):''))+((secure==true)?(value?',secure':''):'');document.cookie=cookie;return(cookie);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function switch_to_debug_or_no(meid,force){try{myApp.line=266;var tagfct={'file':script_debug,'fct':'switch_to_debug_or_no(meid,force)'},stop=debug_stop;if(!myApp.kislocalsite)return(null);var o,v=parseInt(myApp.debug),text='',name='mydebug';if(meid||(force&&force=='force')){dest=(isNaN(v)||!v?1:0);if(!confirm('id:'+meid+' - put myApp.debug from '+v+' to '+dest+' ?'))return(null);var msg='Debug';myApp.debug=dest;o=GetId(meid);if(o)o.innerHTML=(myApp.debug?'-':'+')+msg;};SetCookie(name,myApp.debug,30);}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function jd_set_text_with_langs(idname,xlang){try{myApp.line=287;var tagfct={'file':script_debug,'fct':'jd_set_text_with_langs(idname,xlang)'},stop=debug_stop;var o,t,lang,text;o=GetId('jdtwl_textarea'+idname);lang=GetId('jdtwl_lang'+idname);if(lang&&o){lang=(xlang?xlang:lang.value);if(!xlang)t=GetId('jdtwl_textarea'+idname);else t=GetId('jdtwl_textarea'+idname+lang);if(t)o.value=t.value;text=o.value;t=GetId('jdtwl_realtextarea'+idname);if(t)t.innerHTML=mjsreplaceall(text,chrrc,'
');}}catch(e){if($.isFunction(window.dbgvec))debug_view_e_catch(e,tagfct);}};function jd_display_text_with_langs(what,idname,lang){try{myApp.line=463;var tagfct={'file':script_debug,'fct':'jd_display_text_with_langs(what,idname,lang)'},stop=debug_stop;if(!what)return(false);var x,y,t,o,text;switch(what){case'hidden':t='jdtwl_textareatr';x=GetId(t+'1'+idname);if(x&&lang){t=(lang.innerHTML==myApp.kcssinline?myApp.kcssinline:myApp.kcssnone);x.style.display=t;lang.innerHTML=(t==myApp.kcssinline?myApp.kcssnone:myApp.kcssinline);if(lang.innerHTML==myApp.kcssnone){GetId('jdtwl_buttonL'+idname+'0').click();}};break;case'update':var file,lang=GetId('jdtwl_lang'+idname).value;text=GetId('jdtwl_textarea'+idname).value;myApp.display_message_popup(true,'');os_display_popuploader(true);file=myApp.kDIR_xommon+'/security/cfgsite.php';var o=GetId('jdtwl_file'+idname);filetext=(o?o.innerHTML:'');if(confirm('Save this text to language : '+lang+','+filetext+' ?'+chrrc+chrrc+file+chrrc+chrrc+text)){call_ajax_post(file,new Array('_filetext','_idname','_text','_lang',filetext,idname,text,lang),new Array(),new Array('updatefile'),true);}else os_display_popuploader(false);break;case'chglang':var list=GetId('jdtwl_list'+idname).value.split(',');for(var i=0;i