I just finished setting up a repository in my server. I renamed the module name to Module Repository and put it under Module Management, because I plan to have a wider scope. The next step is to add developer membership so that people can upload their own modules.
Now it has access to the modules on my server. You can check the code and see it. I use curl, so it requires curl support. I hope it works well on your shop as well.
I added another section at the bottom, a list of letters. Clicking on any of them will return the list of modules starting with that letter. You can install them by clicking on the link next to each module.
The repository is here:
http://www.agait.com...sta_repository/There are two files here:
modules.php
This file gives a list of available modules, as a serialized array. The arguments you can use are:
letter: The first letter of the module title. This is used to see and alphabetic list of all modules. 20 modules at a time.
page: Page number, starting from 1, in increments of 1. Modules from 40 to 60 would have the page number 3.
module: The class name of the module. If provided returns only information on the latest version of this module.
The returned data is in the following format:
array(
array('module_name', 'module_title', 'module_version')
array('module_name', 'module_title', 'module_version')
)
module.php
This file returns the serialized module data. The contents of the mdl file. Parameters:
module: The class name of the module. If provided returns only the latest version of this module.
version: Version number of the module. If empty the latest version will be returned.
I did not follow your convention, but this is just as easy. Hopefully you will be able to add any functionality you made with ease.
I am attaching the latest files. I have not done a lot of testing.