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



UserSpice
Validity Time - 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: Validity Time (/showthread.php?tid=750)



Validity Time - oscar - 09-15-2017

I need to check if the user in within a date/time range of permission to access the protected page.

I define the time-window at the user creation, then I can update it, if necessary (usually not).

The user can login, but can see the pages only when inside the time-window.

Attached there is my modification: seems to work.

Hope this helps, but any update/corrections are welcome Smile

Oscar

PS: How can I send a file??? Big Grin Big Grin Big Grin


Validity Time - mudmin - 09-16-2017

You can paste the contents of the file on pastebin and share the link here and we can take a look. Thanks!


Validity Time - oscar - 09-16-2017

Found: you can download all here.

https://filebin.ca/3ablMfoQzbGw

Inside you will find a little guide that, starting from a fresh install, replicate the function.

Let me know...

Thnx!


Validity Time - mudmin - 09-17-2017

That's awesome. Thank you for this. I'm going to add it as an addon.

I'm also doing one for stripe and google calendar.

Thanks for your contributions.