Today was the last day of my leave - Back to work on Monday - and I decided it was about time I actually sat down and worked out how to improve on my initial - rather simple - PHP scripting.
On the Rockbox-Themes site, there is a facility to upload new themes to a temp location on the server. This sends me an e-mail and I upload to the correct page after verification. The code to do this was quite limited in it's functionality and did not enforce any of the rules that were stated in the text of the page.
As a result I have got somewhat fed up of renaming files, converting RAR to ZIP, JPG and BMP to PNG etc., hence the effort today.
Some two hours later and I think I now have an upload script that should eliminate both the Spam attemps and people failing to follow a few simple guidelines. If you want to see the finished (for now!) code point your browser at http://www.rockbox-themes.org/uploader.txt
Overall, I am really very pleased with the success of the website, in December it reached over 22,000 hits, after stalling at around 16,000 per month since August, but so far this year the average is in the region of 1,100 hits per day!
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment