mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-13 17:04:50 +02:00
#10296 added date in popup about
This commit is contained in:
parent
839e8a3515
commit
a39fe577b5
@ -516,6 +516,27 @@ class Diagnostics extends Wizard
|
|||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Date system
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getSystemDate(): string
|
||||||
|
{
|
||||||
|
$result = [
|
||||||
|
'error' => false,
|
||||||
|
'data' => [
|
||||||
|
'date' => [
|
||||||
|
'name' => __('System Date (Console)'),
|
||||||
|
'value' => date('H:i:s Y-m-d'),
|
||||||
|
],
|
||||||
|
],
|
||||||
|
];
|
||||||
|
|
||||||
|
return json_encode($result);
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Database size stats.
|
* Database size stats.
|
||||||
*
|
*
|
||||||
|
@ -797,6 +797,7 @@ if (is_ajax()) {
|
|||||||
$db_fragmentation = json_decode($d->getTablesFragmentation());
|
$db_fragmentation = json_decode($d->getTablesFragmentation());
|
||||||
$sys_info = json_decode($d->getSystemInfo());
|
$sys_info = json_decode($d->getSystemInfo());
|
||||||
$php_sys = json_decode($d->getPHPSetup());
|
$php_sys = json_decode($d->getPHPSetup());
|
||||||
|
$system_date = json_decode($d->getSystemDate());
|
||||||
|
|
||||||
$fragmentation_status = '';
|
$fragmentation_status = '';
|
||||||
if ($db_fragmentation->data->tablesFragmentationStatus->status === 1) {
|
if ($db_fragmentation->data->tablesFragmentationStatus->status === 1) {
|
||||||
@ -1030,6 +1031,14 @@ if (is_ajax()) {
|
|||||||
<p>'.$sys_info->data->ipInfo->value.'</p>
|
<p>'.$sys_info->data->ipInfo->value.'</p>
|
||||||
</th>
|
</th>
|
||||||
</tr>
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th style="width: 15%;">
|
||||||
|
<p><span>'.$system_date->data->date->name.'</span></p>
|
||||||
|
</th>
|
||||||
|
<th style="width: 85%;">
|
||||||
|
<p>'.$system_date->data->date->value.'</p>
|
||||||
|
</th>
|
||||||
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
</div>
|
</div>
|
||||||
|
Loading…
x
Reference in New Issue
Block a user