<?php
/**
 * SmartForex Engine - Root URL Gateway Router
 * Location: public_html/index.php
 */
session_start();

// Agar user pehle se logged in hai, toh direct trading panel par redirect karein
if (isset($_SESSION['user_id'])) {
    header("Location: dashboard.php");
    exit;
} else {
    // Agar login nahi hai, toh automatic login display engine par forward karein
    header("Location: login.php");
    exit;
}
?>