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
Status Update 003
#1
I added a bunch of Brandin's functions which will work for these and a few of his mods. Everything seems to be working except the checkbox to force reauth. I also need to see what happens if you try to add reauth to a page outside the users folder.

This build requires the latest db in the download.
  Reply
#2
Mudmin,

I have folders outside of users folder (usersc and my other folders /templates /cron etc) and everything works fine.

Thank you!
  Reply
#3
Awesome! Good to know.
  Reply
#4
Changes I made to this build:
-Added nounderline text dec to custom.css or another CSS file you put your own stuff in - or you can call it on the messages section directly, but I think it looks nicer everywhere Wink
http://pasted.co/860a150e
-Changed line 167 to account for users that are not logged in.
Code:
if ($user->isLoggedIn()) { (!reAuth($_SERVER['PHP_SELF'],$user->data()->id)); }
We shouldn't have to worry about reAuth on public pages because you shouldn't be able to reAuth on public pages Big Grin

ReAuth Fix!!!
After empty private ~ line 47 add:
http://pasted.co/4b9f9e6e

You also need the language keys for this from the DP (PAGE_REAUTH_TOGGLED)
  Reply
#5
You also should modify the private toggle when toggled to 0 ~ line 65 you should run this too:
Code:
(updateReAuth($pageId, 0))
You don't want a private page to have reAuth.
  Reply
#6
Sorry. My brain hurts. What file am I supposed to modify with those changes?

I added the css stuff to the bootstrap_corrections file so it is loaded everywhere.

Thanks so much for your help
  Reply
#7
That's okay! I should have put that I'm sorry!

Code:
header.php
Code:
if ($user->isLoggedIn()) { (!reAuth($_SERVER['PHP_SELF'],$user->data()->id)); }

ReAuth fixes are both on
Code:
admin_page.php
After empty private ~ line 47 add:
http://pasted.co/4b9f9e6e

Around line 65 ~ where you toggle private to 0, after it runs you want to:
Code:
(updateReAuth($pageId, 0))
  Reply
#8
Sorry. Still not understanding the line 65 part. Can you paste the entire //Toggle reauth setting snippet?

I'm dense on those things.
  Reply
#9
Replace Toggle Private Page Setting ~ line 54 with:
http://pasted.co/e6a3272b
  Reply
#10
Yep. That did the trick! Thanks!
  Reply


Forum Jump:


Users browsing this thread: 2 Guest(s)