/home/ejrndhmu/.trash/reseller.7/index.php
<?php
session_start();
require_once '../includes/config.php';

// Check if user is logged in and is reseller
if (!isset($_SESSION['user_id']) || $_SESSION['role'] !== 'reseller') {
    // Redirect to main login page
    header('Location: ../login.php');
    exit();
}

// If authenticated, redirect to dashboard
header('Location: dashboard.php');
exit();
?>