Home Files
Adminer
Execute Command
PHP Eval
Symlink
File Upload
Owner :
www-data
PHP Version
8.1.8
Disk Space
203.89 GB
Server Addr
171.9.3.2
Your IP
171.9.3.1
Edit File
File:
<?php //usado para saber informações de CNPJ class AtualizaCnpj { function Retornar($cnpj) { $json_file = file_get_contents("https://services.assesi.com/v1/cnpj/".$cnpj); $json_str = json_decode($json_file, true); return $json_str; } function AddCnpj($sql,$json,$util) { $json['data_situacao'] = $util->convertDataMysql($json['data_situacao'])." 00:00:00"; $json['abertura'] = $util->convertDataMysql($json['abertura'])." 00:00:00"; $json['ultima_atualizacao'] = $util->convertDataMysql($json['ultima_atualizacao'])." 00:00:00"; $json['data_situacao_especial'] = $util->convertDataMysql($json['data_situacao_especial'])." 00:00:00"; $sql->consulta("INSERT INTO `receita_pessoas` (`data_situacao`, `nome`, `uf`, `situacao`, `bairro`, `logradouro`, `numero`, `cep`, `municipio`, `abertura`, `natureza_juridica`, `cnpj`, `ultima_atualizacao`, `status`, `tipo`, `fantasia`, `complemento`, `telefone`, `efr`, `motivo_situacao`, `situacao_especial`, `data_situacao_especial`, `capital_social`) VALUES ('".$json['data_situacao']."', '".$json['nome']."', '".$json['uf']."', '".$json['situacao']."', '".$json['bairro']."', '".$json['logradouro']."', '".$json['numero']."', '".$json['cep']."', '".$json['municipio']."', '".$json['abertura']."', '".$json['natureza_juridica']."', '".$json['cnpj']."', '".$json['ultima_atualizacao']."', '".$json['status']."', '".$json['tipo']."', '".$json['fantasia']."', '".$json['complemento']."', '".$json['telefone']."', '".$json['efr']."', '".$json['motivo_situacao']."', '".$json['situacao_especial']."', '".$json['data_situacao_especial']."', '".$json['capital_social']."');"); } }