AnonSec Shell
Server IP : 54.36.91.62  /  Your IP : 216.73.217.94
Web Server : Apache
System : Linux webm013.cluster127.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 : coopiak ( 151928)
PHP Version : 8.3.23
Disable Function : _dyuweyrj4,_dyuweyrj4r,dl
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : OFF  |  Pkexec : OFF
Directory :  /home/c/o/o/coopiak/amisdesseniors-fr/nice2/administrator/components/com_jlexreview/assets/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ HOME ]     

Current File : /home/c/o/o/coopiak/amisdesseniors-fr/nice2/administrator/components/com_jlexreview/assets/sync.js
(function($){
	$(document).ready(function(){
		// form
		(function(){
			if(typeof ace=='undefined') return;

			var init=function(){
				ace.config.set('basePath',window.path2ace);

				$('.aceditor').each(function(){
					var txt = $(this),
						el = ace.edit(txt.next('div')[0]);
					el.setTheme("ace/theme/monokai");
					el.setOptions({
						minLines:5,
					    maxLines: 15
					});

					el.getSession().setMode("ace/mode/php");
					el.setValue(txt.val());
					//el.getValue();

					el.getSession().on("change", function () {
					    txt.val(el.getValue());
					});

					txt.hide();
				});
			};
			
			var wt=window.setInterval(function(){
				if(typeof window.path2ace=='undefined') return;
				init();
				window.clearInterval(wt);
			},500);
		})();
		
		// sync bar
		(function(){
			var r={
					option:'com_jlexreview',
					view:'sync',
					task:'sync',
					offset:0
				};

			var g=function(){
				$.post(window.jlexpath+'/index.php', r, function(d){
					var p=0;
					if(d.total>d.offset+d.limit){
						// continue
						p=parseInt((d.offset+d.limit)*100/d.total);
						r.offset=d.offset+d.limit;
						g();
					} else {
						// complete
						p=100;
						window.setTimeout(function(){
							window.location.reload();
						},2000);
					}

					$('#syncIndex .jpercent span').text(p);
					$('#syncIndex .jprocess').css('width', p+'%');
				},'json');
			};

			Joomla.submitbutton = function(task)
			{
				if(task=='sync'){
					$('#syncIndex').addClass('active');
					g();
					return false;
				}

				Joomla.submitform(task);
				return true;
			}
		})();
	});
})(jQuery);

Anon7 - 2022
AnonSec Team