- b2evolution Support Forums
- Obsolete Forum Threads
- I've made a download script (to streamline releases)
#1 Jul 22, 2007 17:20
I've made a download script that zips up a ... well it's easier to explain in a example.
So "domain.com/b2evo/skins/download/tictac.zip" will look for "domain.com/b2evo/skins/tictac/" and if it exists zip it up, and download it. There is protection in it to stop people accessing dirs/files higher than the initial parent directory. And it works even without the PHP Zip extension installed.
If you do not have .htaccess abilities then you will need to use "domain.com/b2evo/skins/download/download.php?download=tictac" instead.
So you can see that it stops the need to make official releases all the time, the user can just grab the latest and greatest directly from your website, so it's a "See it in action, and download the same code!".
Anyway, to install make the folder "download" where you want to offer these abilities, so for example the skins and plugins folders. Give the folder 777 permission. And add these two files into it:
And your all set :)
Form is loading...