01-16-2017, 02:07 PM
I believe you would need to swap the operator around so would be some like:
//in custom functions
Then you would have the password form and submit check on the page you have been redirected to.
I think this is all correct but will wait for Mudmin's input.
//in custom functions
Code:
public static function verifyadmin() {
Code:
$current=date("Y-m-d h:i:s");
Code:
if ($user->data()->last_confirm - $current < 30//whatever the logic){
Code:
return true;
Code:
} else {
Code:
return false;
Code:
}
Code:
}
Then you would have the password form and submit check on the page you have been redirected to.
I think this is all correct but will wait for Mudmin's input.