FreezeWarp / freeze-messenger

An advanced messenger with a backend written in PHP. Supports MySQL, PostgreSQL, and SQL Server for database; Redis, Memcached, and APC for caching; and various methods for message streaming. Frontend is Bootstrap and Typescript.
Other
2 stars 0 forks source link

Upload Restrictions #96

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
--

Original issue reported on code.google.com by JosephTP...@gmail.com on 7 Aug 2011 at 10:39

GoogleCodeExporter commented 9 years ago
Far as I can tell, the following will take care of the issues:

1. Create new table: counters (yes, there still need to be more)
2. Create a function to read counters in commonQueries where needed.
3. Create a function to increment counters in commonQueries where needed.
4. Increment counters on every upload.
5. Increment the `users` table's upload count on every file upload.
6. Check if either is too large, and fail to upload if so.

Original comment by JosephTP...@gmail.com on 8 Aug 2011 at 5:54

GoogleCodeExporter commented 9 years ago

Original comment by JosephTP...@gmail.com on 8 Aug 2011 at 6:03

GoogleCodeExporter commented 9 years ago
Done with 1-3.

Original comment by JosephTP...@gmail.com on 8 Aug 2011 at 6:38

GoogleCodeExporter commented 9 years ago

Original comment by JosephTP...@gmail.com on 12 Aug 2011 at 1:40