The following warnings occurred: | ||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (Linux)
|
securePage issue - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: securePage issue (/showthread.php?tid=488) |
securePage issue - philb1664 - 03-05-2017 Hi, I'm using the following code in a file in a subdirectory, and while it allows me to log in, if I put the full url in the browser, it brings up the page. With other pages at the same level, the conditional does work, and the request 'dies' require_once '../../../users/init.php'; // the securePage conditional doesn't work require_once $abs_us_root.$us_url_root.'users/includes/header.php'; require_once $abs_us_root.$us_url_root.'users/includes/navigation.php'; if (!securePage($_SERVER['PHP_SELF'])){die();} The problem page 'requires' a number of other files - of my own, which load, so is there anything in particular I should look through these other files? Many thanks |