Is there a way I can make a script that will either...
A) Hook up a download to a SVN repository, so each time someone clicks "Download" it zip's up the repository and downloads it. (I know this is possible - STG has this in their MOD Manager...and I could just copy some of that code, I have access to it, but I have no idea how it works)
or...
B) Automagically zip up the repository at a certain time, and make a topic in a forum, and attach the download.
A is preferred, and is probably much easier, so any help would be great!
Download from SVN
-
- Supporter
- Posts: 316
- Joined: 18 Sep 2007, 14:35
- Real name: David
- Contact:
Download from SVN
That's like, I can't beat my neighbor in an argument, so instead I kill his dog.
-Best English Teacher Ever
- igorw
- Past Contributor
- Posts: 1967
- Joined: 01 Jun 2006, 20:48
- Real name: Igor [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Download from SVN
You could use [url=http://phpbbmodders.net/board/viewtopic.php?f=94&t=2666]functions_svn[/url] to update the SVN repo (assuming SVN is installed on your server), and then phpBB's includes/functions_compress.php to create the zip. Then a variation of the code in download/file.php to push it to the client.
- we're poor!
- Mighty Gorgon
- New member
- Posts: 44
- Joined: 25 Jul 2007, 12:34
- Real name: Luca
- Location: Italy
- Contact:
- igorw
- Past Contributor
- Posts: 1967
- Joined: 01 Jun 2006, 20:48
- Real name: Igor [phpBB Debug] PHP Warning: in file [ROOT]/vendor/twig/twig/lib/Twig/Extension/Core.php on line 1266: count(): Parameter must be an array or an object that implements Countable
Re: Download from SVN
Another thing regarding the SVN thing. Since your server may not have SVN installed (functions_svn requires it), you could use [url=http://www.phpclasses.org/browse/package/4270.html]this class[/url] (you'll have to register at the site), that allows you to download files from an SVN repo using webdav (XML over HTTP), all written in PHP.
- we're poor!
Return to “phpBB Development discussion”
Who is online
Users browsing this forum: No registered users and 25 guests