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
#1
Hello,
the code
Code:
if (!securePage($_SERVER['PHP_SELF'])){die();}
is in my configuration not working in a new file without the link.
Code:
require_once $abs_us_root.$us_url_root.'users/helpers/helpers.php';

Than the page is visible, or redirected to the login screen, nice and perfect coding.
The link for this page is on the main screen, and if the user is not logged in, or has the correct settings for this file, why bother him with a link that he can not activate.
If I disable the link with securePage the error message is on my main page.


Quote:You must go into the Admin Panel and click the Manage Pages button to add this page to the database. Doing so will make this error go away.


How to code this one?
  Reply


Messages In This Thread
securePage - by sqluser - 11-03-2016, 08:44 PM
securePage - by Brandin - 11-05-2016, 11:48 AM
securePage - by mudmin - 11-05-2016, 02:03 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)