01-20-2017, 04:30 PM
Ok. I tested this and it works.
So, I have a column in my user table called last_confirm and it is formatted Y-m-d h:i, so it looks like this
2016-01-20 00:00:00
Then I wrote this function and put it in the usersc/includes/custom_functions.php
https://hastebin.com/kitifexufe.xml
Then, to invoke it, you need to pass the user id in there, so on whatever page you want to call it, do this...
<?php verifyadmin($user->data()->id) ?>
Give that a whirl.
So, I have a column in my user table called last_confirm and it is formatted Y-m-d h:i, so it looks like this
2016-01-20 00:00:00
Then I wrote this function and put it in the usersc/includes/custom_functions.php
https://hastebin.com/kitifexufe.xml
Then, to invoke it, you need to pass the user id in there, so on whatever page you want to call it, do this...
<?php verifyadmin($user->data()->id) ?>
Give that a whirl.