File Manager
Editing: sell.php
<?php session_start(); // Check if the user is logged in if (isset($_SESSION['user_id'])) { // User is logged in, redirect to dashboard header("Location: dashboard.php"); } else { // User is not logged in, redirect to the public Add Product page header("Location: /addproduct"); } exit; ?>
💾 Save
⬅ Back