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
I broke my pages
#2
There are 2 things you can do with ajax parser files. I tend not to like to clog up my pages table with parser files, so I tend to not use the securePage function and instead do something like...

require_once("../../users/init.php"); /obviously with your own path
$db = DB::getInstance();
if(!hasPerm([2,3],$user->data()->id)){
die("Not logged in");
}

If you really want the parsers files to use securePage, then you have to add the folder that they're stored in to the z_us_root file.
  Reply


Messages In This Thread
I broke my pages - by astropos - 01-22-2019, 01:41 PM
RE: I broke my pages - by mudmin - 01-22-2019, 01:47 PM
RE: I broke my pages - by astropos - 01-22-2019, 02:24 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)