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
mhhk im being dumb
#10
Is that not why the following is included in securePage():

Code:
}elseif ($pageDetails['private'] == 0){//If page is public, allow access
Code:
return true;

so it allows access for public but then if it the page is set to private then it runs the rest of the checks for permissions.

In that case it is probably best for the snippet to sit in header.php, at least for myself anyway.

I suppose if people have implemented their own fixes in the init file as well then it would be telling them to fix something that has already been fixed. I can understand how difficult it can be to maintain compatibility, I think a lot of people appreciate your hard efforts.
  Reply


Messages In This Thread
mhhk im being dumb - by raven - 11-22-2016, 12:29 PM
mhhk im being dumb - by mudmin - 11-22-2016, 03:18 PM
mhhk im being dumb - by raven - 11-22-2016, 05:53 PM
mhhk im being dumb - by raven - 11-22-2016, 08:29 PM
mhhk im being dumb - by mudmin - 11-23-2016, 12:16 AM
mhhk im being dumb - by raven - 11-23-2016, 01:55 PM
mhhk im being dumb - by mudmin - 11-24-2016, 04:01 PM
mhhk im being dumb - by sabr - 01-15-2017, 03:04 PM
mhhk im being dumb - by mudmin - 01-15-2017, 03:17 PM
mhhk im being dumb - by sabr - 01-15-2017, 03:56 PM
mhhk im being dumb - by mudmin - 01-15-2017, 03:58 PM
mhhk im being dumb - by mudmin - 01-15-2017, 04:01 PM
mhhk im being dumb - by mudmin - 01-15-2017, 04:03 PM
mhhk im being dumb - by sabr - 01-15-2017, 04:26 PM
mhhk im being dumb - by mudmin - 01-15-2017, 04:40 PM

Forum Jump:


Users browsing this thread: 5 Guest(s)