| Server IP : 162.214.74.102 / Your IP : 216.73.217.80 Web Server : Apache System : Linux dedi-4363141.lrsys.com.br 3.10.0-1160.119.1.el7.tuxcare.els25.x86_64 #1 SMP Wed Oct 1 17:37:27 UTC 2025 x86_64 User : lrsys ( 1015) PHP Version : 5.6.40 Disable Function : exec,passthru,shell_exec,system MySQL : ON | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/lrsys/public_html/lrsys_apps/dialogo/ui/lib/settings/ |
Upload File : |
$(function() {
var _url = $("#_url").val();
var $ib_editor_canvas = $("#ib_editor_canvas");
var editor = ace.edit("editor");
editor.setTheme("ace/theme/monokai");
editor.getSession().setMode("ace/mode/php");
var $editor_file = $("#editor_file");
var $ib_btn_save = $("#ib_btn_save");
$editor_file.change(function() {
$ib_editor_canvas.block({ message: block_msg });
$.get( _url + "editor/" + $editor_file.val() + "/", function( data ) {
$ib_editor_canvas.unblock();
editor.$blockScrolling = Infinity;
editor.setValue(data, -1);
editor.setValue(data, 1);
});
});
$ib_btn_save.on('click', function(e) {
e.preventDefault();
$ib_editor_canvas.block({ message: block_msg });
var codes = editor.getValue();
$.post( _url + "editor/save/", { file: $editor_file.val(), codes: codes })
.done(function( data ) {
$ib_editor_canvas.unblock();
toastr.success(data);
});
});
});