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
/printthread.php 16 require_once



UserSpice
Urgent help required - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28)
+--- Forum: Off-topic Discussions (https://userspice.com/forums/forumdisplay.php?fid=10)
+--- Thread: Urgent help required (/showthread.php?tid=1008)



Urgent help required - pahalprashant - 03-18-2018

When i put some php files in the userspice directory and flag them as private in the settings even then they can be used by anyone (no login required why??) Can anyone please help me out


Urgent help required - Brandin - 03-18-2018

You are not calling the securePage function on the pages.


Urgent help required - pahalprashant - 03-19-2018

I do not understand what do you mean by secure function but i can not use this code given on homepage of userspice installation

$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();


Urgent help required - Brandin - 03-19-2018

You don't need the header and the nav to use securePage. As long as you call init.php you can use the functions, which means you need to use securePage. Otherwise the pages won't be protected.