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
prorecting multiple pages in different folders
#1
I have about 4 folderts with and index.HTML which I will change to .php extension of course. The issue is this : the index files rely on CSS files in CSS folder and js too. How do I protect the index.php pages Thank you
  Reply
#2
I was able to use get my folders listed in the US pages on admin manage page by editing the path line in INI.php . how ever after setting the pages to private they are still opened as public when I load the page. I then add the if statement checkiing login status in blank_page .php but I get require once error .pls help
  Reply
#3
Sorry. I don't think editing the ini file is the way to do it. You need to edit the z_us_root file in the root folder of userspice. That contains an array of all of the folders that you want userspice to look at
  Reply
#4
great! it worked my other folders now shows in admin manage page. but i still had errors requiring ini.php in users folder. i solved this with :require_once $_SERVER['DOCUMENT_ROOT'].'/userspice/users/init.php'; i dont knw if i have break anything. i need the proper way to do this. Thanks
  Reply
#5
That shouldn't break anything. Normally you can do a relative path for that but if the server root thing works for you then go for it.

We couldn't do that by default because different servers treat that differently.
  Reply
#6
Thank you
  Reply
#7
Just discovered an issue ! By default users are sent to account.php if they visit a page they are not registers as group member . i get redirecting error now instead of redirecting to account.php .
  Reply
#8
Ahh. Yes. Every new user needs to be added as "user" even if they are part of another group? Did you uncheck the user box when you were creating your users?
  Reply
#9
all users a in user group. still geting error: The page isn’t redirecting properly
  Reply
#10
Ok. We can figure this out.

What does the error say?

Here are a few things to check.
1. Did you modify helpers.php or us_helpers.php? (This would tell us if a function was broken during modifications).
2. If you go into the admin panel and click on admin pages, does account.php have the "user" permission group assigned to it?
3. Did you modify the header or anything at the top of the page on any of your redirecting pages where you might have gotten rid of the include of the init.php?
4. Last try... go into account.php and change line 25 to
Code:
<?php //if (!securePage($_SERVER['PHP_SELF'])){die();}

Did that fix the error?
  Reply


Forum Jump:


Users browsing this thread: 9 Guest(s)