The following warnings occurred: | ||||||||||||||||||||||||
Warning [2] Undefined variable $unreadreports - Line: 26 - File: global.php(961) : eval()'d code PHP 8.2.25 (Linux)
|
prorecting multiple pages in different folders - Printable Version +- UserSpice (https://userspice.com/forums) +-- Forum: Support Center (https://userspice.com/forums/forumdisplay.php?fid=23) +--- Forum: UserSpice 4.3 and Below (https://userspice.com/forums/forumdisplay.php?fid=26) +--- Thread: prorecting multiple pages in different folders (/showthread.php?tid=405) Pages:
1
2
|
prorecting multiple pages in different folders - meetmec12 - 12-25-2016 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 prorecting multiple pages in different folders - meetmec12 - 12-27-2016 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 prorecting multiple pages in different folders - dan - 12-27-2016 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 prorecting multiple pages in different folders - meetmec12 - 12-27-2016 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 prorecting multiple pages in different folders - mudmin - 12-28-2016 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. prorecting multiple pages in different folders - meetmec12 - 12-29-2016 Thank you prorecting multiple pages in different folders - meetmec12 - 01-03-2017 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 . prorecting multiple pages in different folders - mudmin - 01-03-2017 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? prorecting multiple pages in different folders - meetmec12 - 01-04-2017 all users a in user group. still geting error: The page isn’t redirecting properly prorecting multiple pages in different folders - mudmin - 01-04-2017 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? |