Re: Accounting module

#45874

webwarrior
Member

The accounting module should be up and running first, then the walled garden affect should be build into the code that does the redirect to the captive portal, and should allow for at least 5 urls to be entered.

To email a username, that was chosen on one of the custom wep pages, can be done easily, and when the submit button is clicked, an entry can be written into the database, and the account enabled for login.

Just a few smart lines of code, and 2 extra web pages, and we are there.
I have worked out a simple way to have an accounting module for hotels, that will keep any specific account active for 24 hours, and then disable that account. It requires for the zeroshell server to be restarted every morning early.

We can make it work. I just need some sample code on how to write to the database.