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
/printthread.php 16 require_once
Warning [2] Undefined property: MyLanguage::$archive_pages - Line: 2 - File: printthread.php(287) : eval()'d code PHP 8.2.25 (Linux)
File Line Function
/printthread.php(287) : eval()'d code 2 errorHandler->error
/printthread.php 287 eval
/printthread.php 117 printthread_multipage



UserSpice
Status Update 024 - 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: Status Update 024 (/showthread.php?tid=771)

Pages: 1 2


Status Update 024 - Brandin - 09-24-2017

You can just move the call as far down as possible where a user normally won't edit it...or "after" the fetchPage.


Status Update 024 - mudmin - 09-24-2017

It's in the header where securePage is in the body, so that's a problem. I'm still looking.


Status Update 024 - mudmin - 09-24-2017

Actually, I think we can just wrap the whole function in if count > 0 because if it's not, securePage will catch it.


Status Update 024 - Brandin - 09-24-2017

Technically we can call reAuth from within securePage??? Since you never want to reAuth unless the page is in the DB eh? and securePage is what handles adding/redirecting the user.


Status Update 024 - mudmin - 09-24-2017

Yep. That did the trick.


Status Update 024 - Brandin - 09-24-2017

Try moving it within the securePage function too...I think it would be a good practice...because you don't want to reAuth a page a user is not using securePage on right??


Status Update 024 - mudmin - 09-24-2017

I could see that. securePage is pretty complicated as is. Let me take a look. I'm trying to get the redirect working.


Status Update 024 - mudmin - 09-24-2017

@Brandin Do you have a stray --> in your header?
http://puu.sh/xHMnf/234d7687d1.jpg


Status Update 024 - Brandin - 09-24-2017

Not that I can see


Status Update 024 - mudmin - 09-24-2017

Ok. I'll just figure it out from the diff when I push 25.