░▒▓████████████████████████████████▓▒░ ░▒▓█ ▓▒░ ░▒▓█ ~ S W A M P ~ ▓▒░ ░▒▓█ ▓▒░ ░▒▓████████████████████████████████▓▒░
lon105.truehost.cloud
LOCATION:
/home/ilrtztmy/vgcproperty.com/api/public
☗ ROOT
↻ REFRESH
✎ CARVE FLESH
EDITING: leadership.php
<?php // api/public/leadership.php (PUBLIC — no auth required) // GET → LeadershipMember[] (ordered by sort_order) declare(strict_types=1); require_once __DIR__ . '/../admin/cors.php'; require_once __DIR__ . '/../admin/db.php'; require_once __DIR__ . '/../admin/auth_middleware.php'; if ($_SERVER['REQUEST_METHOD'] !== 'GET') { abort(405, 'Method not allowed'); } $rows = db()->query('SELECT * FROM leadership ORDER BY sort_order ASC, created_at ASC')->fetchAll(); json_out(array_map(fn($r) => [ 'id' => $r['id'], 'name' => $r['name'], 'role' => $r['role'], 'bio' => $r['bio'], 'image' => $r['image'], 'order' => (int)$r['sort_order'], ], $rows));
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 leadership.php
PHP
694 B
2026-05-16 15:25
EDIT
📄 properties.php
PHP
2 KB
2026-05-16 15:25
EDIT
📄 services.php
PHP
692 B
2026-05-16 15:25
EDIT