Linux server-604606.appsiete.com 3.10.0-1160.139.1.el7.tuxcare.els2.x86_64 #1 SMP Mon Nov 3 13:30:41 UTC 2025 x86_64
Apache
: 162.240.172.200 | : 216.73.216.13
14 Domain
7.3.33
gujo45me
www.github.com/MadExploits
Terminal
AUTO ROOT
Adminer
Backdoor Destroyer
Linux Exploit
Lock Shell
Lock File
Create User
CREATE RDP
PHP Mailer
BACKCONNECT
UNLOCK SHELL
HASH IDENTIFIER
CPANEL RESET
CREATE WP USER
README
+ Create Folder
+ Create File
/
home /
gujo45me /
public_html /
demo /
public /
js /
cliente /
[ HOME SHELL ]
Name
Size
Permission
Action
.mad-root
0
B
-rw-r--r--
editar.js
2.71
KB
-rw-r--r--
listar.js
1.48
KB
-rw-r--r--
nuevo.js
3.15
KB
-rw-r--r--
pwnkit
10.99
KB
-rwxr-xr-x
Delete
Unzip
Zip
${this.title}
Close
Code Editor : nuevo.js
$(function () { $.fn.form.settings.rules.docExiste = function(value) { return (verificaExiste('numero_documento', value) > 0 ? false : true); }; function verificaExiste(field, param) { var count; $.ajax({ async: false, url: APP_URL+'/cliente/existeCampo', headers: { 'X-CSRF-TOKEN': $('meta[name="csrf-token"]').attr('content') }, type: 'GET', dataType: 'json', data: { campo: field, valor: param}, success: function (data) { count = data; } }); return count; }; $('#frmNuevo').form({ keyboardShortcuts: false, fields: { nombre: { rules: [{ type : 'empty', prompt : 'Complete este campo'}] }, numero_documento: { rules: [ { type : 'docExiste', prompt : 'El numero de documento ya fue registrado'}, { type : 'empty', prompt : 'Complete este campo'}, { type : 'integer', prompt : 'Ingrese solo números'} ] }, id_tipo_documento: { rules: [{ type : 'empty', prompt : 'Seleccione una opción'}] }, telefono: { optional: true, rules: [{ type : 'integer', prompt : 'Ingrese solo números'}] }, email: { optional: true, rules: [{ type : 'email', prompt : 'Ingrese un email válido'}] }, }, inline : true, }); $('[name="id_tipo_documento"]').change(function() { var option= $("option:selected", this).text(); if (option == "RUC") { $('input[name="numero_documento"]').attr('maxlength', 11); $('#frmNuevo').form('add rule', 'numero_documento', { rules: [ { type : 'docExiste', prompt : 'El numero de documento ya fue registrado'}, { type : 'integer', prompt : 'Ingrese solo números'}, { type : 'exactLength[11]', prompt : 'El RUC debe tener {ruleValue} digitos'} ] }); } if (option == "DNI") { $('input[name="numero_documento"]').attr('maxlength', 8); $('#frmNuevo').form('add rule', 'numero_documento', { rules: [ { type : 'docExiste', prompt : 'El numero de documento ya fue registrado'}, { type : 'integer', prompt : 'Ingrese solo números'}, { type : 'exactLength[8]', prompt : 'El DNI debe tener {ruleValue} digitos'} ] }); } }); $('.btn_registrar').on('click', function() { if ($('#frmNuevo').form('is valid')) { $('#register_modal').modal({ closable: false, onApprove : function() { sendForm(); } }).modal('show'); } else { $('#frmNuevo').form('validate form'); } }); function sendForm() { var data = $('#frmNuevo').serialize(); $.requestApi('/cliente/registrar', data, 'POST', function (resolve) { if (resolve) { if (resolve.message === "success") { $.Helper.clearFields("#frmNuevo"); } $.showMessages(resolve); } }); return false; }; });
Close