The following warnings occurred:
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.1.2-1ubuntu2.14 (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
Private Pages (Twig)
#2
Hi whatwilldo,

How're you? Welcome!

Call the init using a require once and your securePage. Try this:
<?php require_once '../users/init.php';?>
<?php if (!securePage($_SERVER['PHP_SELF'])){die();} ?>

The ../ gets you out of your current directory and to the init file...there are other ways you can do this but that is the best way I have find currently...let me know what else you need.

Also note: I know nothing about Slim and Twig so what I'm saying very well could be wrong!

B.
  Reply


Messages In This Thread
Private Pages (Twig) - by whatwilldo - 10-28-2017, 05:29 PM
Private Pages (Twig) - by Brandin - 10-28-2017, 05:47 PM
Private Pages (Twig) - by whatwilldo - 10-28-2017, 05:58 PM
Private Pages (Twig) - by Brandin - 10-28-2017, 06:03 PM
Private Pages (Twig) - by whatwilldo - 10-28-2017, 06:23 PM
Private Pages (Twig) - by Brandin - 10-28-2017, 06:28 PM

Forum Jump:


Users browsing this thread: 1 Guest(s)