Software: Apache/2.4.6 (CentOS) OpenSSL/1.0.2k-fips PHP/5.4.16. PHP/5.4.16 uname -a: Linux roko-bkp 3.10.0-1160.102.1.el7.x86_64 #1 SMP Tue Oct 17 15:42:21 UTC 2023 x86_64 uid=48(apache) gid=48(apache) groups=48(apache),1003(webmaster) Safe-mode: OFF (not secure) /var/www/html/site/ipanel/js/ drwxr-xr-x |
Viewing file: Select action/file-type: jQuery.validator.addMethod("dateBR", function(value, element) { //contando chars if(value.length!=10) return false; // verificando data var data = value; var dia = data.substr(0,2); var barra1 = data.substr(2,1); var mes = data.substr(3,2); var barra2 = data.substr(5,1); var ano = data.substr(6,4); if(data.length != 10 || barra1 != "/" || barra2 != "/" || isNaN(dia) || isNaN(mes) || isNaN(ano) || dia > 31 || mes > 12)return false; if((mes == 4 || mes == 6 || mes == 9 || mes == 11) && dia==31)return false; if(mes == 2 && (dia > 29 || (dia == 29 && ano%4 != 0)))return false; if(ano < 1900)return false; return true; }, "Informe uma data válida"); |
:: Command execute :: | |
--[ c99shell v.2.1 [PHP 7 Update] [1.12.2019] maintained by KaizenLouie and updated by cermmik | C99Shell Github (MySQL update) | Generation time: 0.0032 ]-- |