The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/global.php(961) : eval()'d code 26 errorHandler->error
/global.php 961 eval
/showthread.php 28 require_once





× This forum is read only. As of July 23, 2019, the UserSpice forums have been closed. To receive support, please join our Discord by clicking here. Thank you!

  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
securePage issue
#1
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
  Reply


Messages In This Thread
securePage issue - by philb1664 - 03-05-2017, 04:21 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)