Automatic Account Suspension/Expiration Script

jandafields

Well-Known Member
May 6, 2004
435
4
168
USA
cPanel Access Level
Root Administrator
I have written a script for my own use that shows all accounts, and it has a date field that the accounts will be suspended on. When I receive a payment from a customer, I change the suspend date in that field to the next month/year/whatever they paid for. As long as they are making payments, I am always increasing that date with their payment and they never get suspended. If they miss a payment, their account is automatically suspended on that date. When they make up the payment and you modify that date, their account becomes active again.

If they are paid up through December 31, 2008, then their account will be automatically suspended on January 1, 2009, unless I receive payment before then, in which case I would change the date to February 1, 2009 (or whatever).

So, basically this is an easier way for me to keep track of accounts without having to use something like ModernBill. Of course, I would love to use ModernBill, but I'm not able to justify it at this moment.

If enough people are interested, I would consider tweaking and releasing this script. I don't intend on charging for it, but donations are always welcome.

Reply if interested, or just reply with comments even if you aren't interested.
 

SageBrian

Well-Known Member
Jun 1, 2002
416
2
318
NY/CT (US)
cPanel Access Level
Root Administrator
What would be nice is an interface where we can set up notes about an account.

Even just a simple Contact Management thing, with Contact info (besides email), comments/notes, and then an expire date.

Even if it was just 2 fields, ExDate; Notes

Enter ExDate, have script read date and suspend as necessary.
And all the contact info could just go into Notes.
 

jandafields

Well-Known Member
May 6, 2004
435
4
168
USA
cPanel Access Level
Root Administrator
Here is what it looks like at this point. It functions as it currently is, and works perfectly for what I do, but I plan to add more to it.

If anyone has pointers on making this a whm plugin, please let me know. This is written in php, but whm requires perl scripts.
 
Last edited: