Change the way that we track modules.

Each module now has a "module.info" file that has information about
the module, including the core.  We can display the installed version,
and the version in the code.

Also take a first shot at a modules admin page.
This commit is contained in:
Bharat Mediratta
2008-12-22 03:41:33 +00:00
parent f7b4222e3f
commit fe27bd1eb3
21 changed files with 116 additions and 19 deletions

View File

@@ -0,0 +1,19 @@
<? defined("SYSPATH") or die("No direct script access."); ?>
<div id="gModules">
<table>
<tr>
<th> <?= _("Installed") ?> </th>
<th> <?= _("Name") ?> </th>
<th> <?= _("Version") ?> </th>
<th> <?= _("Description") ?> </th>
</tr>
<? foreach ($available as $module_name => $module_info): ?>
<tr>
<td> <?= form::checkbox($module_name, '', module::is_installed($module_name)) ?> </td>
<td> <?= _($module_info["name"]) ?> </td>
<td> <?= module::get_version($module_name) ?> </td>
<td> <?= _($module_info["description"]) ?> </td>
</tr>
<? endforeach ?>
</table>
</div>