LittleDemon WebShell


Linux in-mum-web1499.main-hosting.eu 5.14.0-503.40.1.el9_5.x86_64 #1 SMP PREEMPT_DYNAMIC Mon May 5 06:06:04 EDT 2025 x86_64
Path : /home/u901718425/domains/task.urbanpillar.in/public_html/
File Upload :
Command :
Current File : /home/u901718425/domains/task.urbanpillar.in/public_html/db.php

<?php

// Set session lifetime to 12 hours (43200 seconds)
session_set_cookie_params([
    'lifetime' => 43200, // 12 hours
    'path' => '/',
    'domain' => '',       // Set to your domain if needed
    'secure' => isset($_SERVER['HTTPS']), // true if using HTTPS
    'httponly' => true,
    'samesite' => 'Strict'
]);

session_start();
// db connection
$host = 'localhost';
$user = 'u901718425_task_admin';
$pass = 'P]SmK2AWbw9';
$db   = 'u901718425_task';

$conn = new mysqli($host, $user, $pass, $db);
if ($conn->connect_error) {
    http_response_code(500);
    echo json_encode(["error" => "Database connection failed"]);
    exit;
}

// header('Content-Type: application/json');

error_reporting(E_ALL);
ini_set('display_errors', 1);

?>

LittleDemon - FACEBOOK
[ KELUAR ]