Discussion Forums  >  Uncategorized

Replies: 0    Views: 190

PSMDanny
Apple Fan
Profile
Posts: 1166
Reg: Dec 09, 2011
Heerlen
21,940
01/12/12 07:24 AM (14 years ago)

BT-Server: Modification to get noticed when a user exceeds disk limit

Hi everyone, Thought I would share again something. This is the story: If you have other people than yourself playing with apps it would be handy if you would get a notice when a user is using your server as a storagebox. There is no limit (beside the limit on the filesize on upload of a single file) on how much a user can upload. With this modification you can set a max disk-usage. If a user exceeds your disk-quota you get an email with all the details and you can contact that person and do whatever you want. This modification (only) works when a user visits the “Files / Media” screen in the backend of your bt-server and only works per session (if the user exceeds the quota). So a user logs in and goes to app1. Next he goes to “Files / Media” and if the total size of all his files exceeds the limit you've set in the variable $maxspace he gets a warning and you get an email. If he visits the page again, no email is sent again. If the user goes to another app he created then it's the same procedure. As long as the user stays logged-in (session) Download description here. It's done in a minute. http://dl.dropbox.com/u/3427464/UserQuotaLimitBTServer.pdf Enjoy it Best Regards, Danny
 

Login + Screen Name Required to Post

pointerLogin to participate so you can start earning points. Once you're logged in (and have a screen name entered in your profile), you can subscribe to topics, follow users, and start learning how to make apps like the pros.