mirror of
https://github.com/Pathduck/gallery3.git
synced 2026-05-28 15:29:09 -04:00
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:
19
core/views/admin_modules.html.php
Normal file
19
core/views/admin_modules.html.php
Normal 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>
|
||||
Reference in New Issue
Block a user