One Hat Cyber Team
Your IP :
216.73.216.36
Server IP :
162.240.179.46
Server :
Linux vps-14493116.nutrivittasaude.com.br 5.14.0-611.49.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Apr 21 16:39:08 EDT 2026 x86_64
Server Software :
Apache
PHP Version :
8.2.31
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
home
/
lifeprimeti
/
meta.lifeprimeti.com.br
/
api
/
Edit File:
profissionais.php
<?php require_once __DIR__ . '/../config/database.php'; header('Content-Type: application/json; charset=utf-8'); $empresaId = (int)($_GET['empresa_id'] ?? 0); if (!$empresaId) { echo json_encode([]); exit; } $stmt = $pdo->prepare("SELECT p.id, u.nome, u.foto, p.especialidade, p.cor_calendario FROM profissionais p JOIN usuarios u ON p.usuario_id = u.id WHERE p.empresa_id = ? AND u.ativo = 1 AND p.ativo = 1 ORDER BY u.nome"); $stmt->execute([$empresaId]); $lista = $stmt->fetchAll(); echo json_encode($lista);
Simpan