function system_load(go) { if(go) loading(1); $.getJSON(home+'system/go/', function(data) { $.each(data, function(i, val) { $('#'+i).html(val); }); loading(0); if(!go) setTimeout(function() {system_load(false)}, 3000); }); } function system_restart(service) { switch(service) { case 'apache2': type = 'apache2'; break; case 'nginx': type = 'nginx'; break; case 'mysql': type = 'mysql'; break; case 'unit': type = 'локацию'; break; } bootbox.dialog('