* Check DB structure version, config file version and MPOS core version * Added new Admin Dashboard to show this core information * Cronjobs will be disabled if SQL files are not imported * SQL files must re-set the db_upgrade_required setting * Cronjobs will disabled if config files are not updated * Simple config file update and version string update will fix this * Added MPOS status overview * Cronjobs and Wallet information for now, others may be added later * Added new navigation link for Admin Panel Dashboard * Added new version file * Will require updates whenever DB or configs are updated * Update SQL file that adds the DB_VERSION setting This will address #1242 and already includes a huge chunk of changes required to make this work.
67 lines
2.4 KiB
Smarty
67 lines
2.4 KiB
Smarty
{nocache}
|
|
<article class="module width_quarter">
|
|
<header><h3>MPOS Version Information</h3></header>
|
|
<table width="25%" class="tablesorter" cellspacing="0">
|
|
<thead>
|
|
<tr>
|
|
<th>Component</th>
|
|
<th align="center">Current</th>
|
|
<th align="center">Installed</th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td><strong>MPOS</strong></td>
|
|
<td align="center"><font color="green">{$VERSION['CURRENT']['CORE']}</font></td>
|
|
<td align="center">
|
|
<font color="{if $VERSION['INSTALLED']['CORE'] == $VERSION['CURRENT']['CORE']}green{else}red{/if}">{$VERSION['INSTALLED']['CORE']}</font>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Config</strong></td>
|
|
<td align="center"><font color="green">{$VERSION['CURRENT']['CONFIG']}</font></td>
|
|
<td align="center">
|
|
<font color="{if $VERSION['INSTALLED']['CONFIG'] == $VERSION['CURRENT']['CONFIG']}green{else}red{/if}">{$VERSION['INSTALLED']['CONFIG']}</font>
|
|
</td>
|
|
</tr>
|
|
<tr>
|
|
<td><strong>Database</strong></td>
|
|
<td align="center"><font color="green">{$VERSION['CURRENT']['DB']}</font></td>
|
|
<td align="center">
|
|
<font color="{if $VERSION['INSTALLED']['DB'] == $VERSION['CURRENT']['DB']}green{else}red{/if}">{$VERSION['INSTALLED']['DB']}</font>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</article>
|
|
<article class="module width_quarter">
|
|
<header><h3>MPOS Status</h3></header>
|
|
<table class="tablesorter" cellspacing="0">
|
|
<thead>
|
|
<tr>
|
|
<th colspan="2" align="center">Cronjobs</th>
|
|
<th align="center">Wallet</th>
|
|
</tr>
|
|
<tr>
|
|
<th align="center"><strong>Errors</strong></th>
|
|
<th align="center"><strong>Disabled</strong></th>
|
|
<th align="center"><strong>Errors</strong></th>
|
|
</tr>
|
|
</thead>
|
|
<tbody>
|
|
<tr>
|
|
<td align="center">
|
|
<a href="{$smarty.server.PHP_SELF}?page=admin&action=monitoring">{if $CRON_ERROR == 0}None - OK{else}{$CRON_ERROR}{/if}</a>
|
|
</td>
|
|
<td align="center">
|
|
<a href="{$smarty.server.PHP_SELF}?page=admin&action=monitoring">{if $CRON_DISABLED == 0}None - OK{else}{$CRON_DISABLED}{/if}</a>
|
|
</td>
|
|
<td align="center">
|
|
<a href="{$smarty.server.PHP_SELF}?page=admin&action=wallet">{$WALLET_ERROR|default:"None - OK"}</a>
|
|
</td>
|
|
</tr>
|
|
</tbody>
|
|
</table>
|
|
</article>
|
|
{/nocache}
|