<?php $SERVER["SCRIPT_NAME"] = '/shops/deals.php'; define( 'PATH_TO_PAGE_ID_LOOKUP', [ "/index.php" => 1, "/shops/index.php" => 2, "/shops/dailydeals.php" => 4, "/shops/shops.php" => 5, "/shops/deals.php" => 9, "/shops/store.php" => 10, "/user/cashmail.php" => 13, ] ); define('DEFAULT_PAGE_ID', 1); $thisPageId = PATH_TO_PAGE_ID_LOOKUP[$SERVER["SCRIPT_NAME"]] ?? DEFAULT_PAGE_ID; echo $thisPageId;
You have javascript disabled. You will not be able to edit any code.