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



UserSpice
Confirm Admin Password - Printable Version

+- UserSpice (https://userspice.com/forums)
+-- Forum: Miscellaneous (https://userspice.com/forums/forumdisplay.php?fid=28)
+--- Forum: Modifications and Hackery (https://userspice.com/forums/forumdisplay.php?fid=29)
+--- Thread: Confirm Admin Password (/showthread.php?tid=427)

Pages: 1 2 3 4 5 6


Confirm Admin Password - mudmin - 08-05-2017

@brandin...
Maybe you can take a look at the latest build where I started the reauth thing. The force reauth checkbox isn't updating and even if I put reauth in the db, it's not asking for a pw. Maybe I'm missing something. My brain is a bit fried.


Confirm Admin Password - Brandin - 08-05-2017

I will whenever I get my server working......I did a mariaDB upgrade on it and it fried a bunch of stuff....including creating users! And I'm too lazy to setup localhost lol

Did you dump this reAuth script in or your own?


Confirm Admin Password - Brandin - 08-05-2017

Maybe if I told you to call the reAuth in the nav we both would be fine.....lol

I'm clearly tired too!

Code:
<?php if (!reAuth($_SERVER['PHP_SELF'],$user->data()->id)) ?>

You can move this up into the header if you want but I put it in my nav.


Confirm Admin Password - Brandin - 08-06-2017

I'm probably going to forget 80 more things!!!!!

I forgot to get you to add the last_confirm to the users table as well!!!

last_confirm datetime default NULL

Here is my paste of my users table too in case you need anything else from it:
http://pasted.co/fab5992b


Confirm Admin Password - Brandin - 08-06-2017

I got it to call but looks like the functions weren't put in:
Fatal error: Call to undefined function reAuth() in /home/aircentralized/public_html/us4alpha/users/includes/header.php on line 169


Confirm Admin Password - mudmin - 08-06-2017

The whole lazy thing sounds backwards to me. It takes more time for me to do things on my live server.


Confirm Admin Password - mudmin - 08-06-2017

Yeah. You gave me a bunch of functions and I hadn't gotten a chance to look through them all, so I was adding them as they threw errors. Great work by the way...this reauth function is something I particularly needed.


Confirm Admin Password - Brandin - 08-06-2017

I'm setup to quickly do stuff with my live server and would prefer to do it that way so I can work from home and work on the alpha project. I just make a dev account on my cP server so it's not really much more work then it would be to do a localhost and what not.

And okay I just wasn't sure if they were put in or were just not being called right or something.

You should only need the reAuth and verifyadmin functions for this project.