Tul xxx Tul
User / IP
:
216.73.216.217
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
/
trabajostoremaylor
/
app
/
helpers
/
Viewing: Session.php
<?php namespace App\Helpers; class Session { public static function start(): void { if (session_status() === PHP_SESSION_NONE) { session_start(); } } public static function get(string $key, mixed $default = null): mixed { self::start(); return $_SESSION[$key] ?? $default; } public static function set(string $key, mixed $value): void { self::start(); $_SESSION[$key] = $value; } public static function forget(string $key): void { self::start(); if (isset($_SESSION[$key])) { unset($_SESSION[$key]); } } public static function flash(string $key, mixed $value): void { self::start(); $_SESSION['_flash'][$key] = $value; } public static function getFlash(string $key, mixed $default = null): mixed { self::start(); $value = $_SESSION['_flash'][$key] ?? $default; if (isset($_SESSION['_flash'][$key])) { unset($_SESSION['_flash'][$key]); } if (empty($_SESSION['_flash'])) { unset($_SESSION['_flash']); } return $value; } public static function isLogged(): bool { self::start(); return !empty(self::get('user_role')); } public static function isAdmin(): bool { self::start(); return self::get('user_role') === 'admin'; } public static function isEmployer(): bool { self::start(); return self::get('user_role') === 'employer'; } public static function redirectIfNotLogged(): void { self::start(); if (!self::isLogged()) { header('Location: ' . Url::to('/login')); exit; } } public static function logout(): void { self::start(); $_SESSION = []; if (ini_get('session.use_cookies')) { $params = session_get_cookie_params(); setcookie(session_name(), '', time() - 42000, $params['path'], $params['domain'], $params['secure'], $params['httponly']); } session_destroy(); } }
Coded With 💗 by
0x6ick