03-05-2017, 04:21 PM
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
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