Add hostname and use text translations

This commit is contained in:
markjcrane
2025-12-03 11:24:48 -07:00
parent 8131e91378
commit 7126b1c47d
2 changed files with 49 additions and 11 deletions

View File

@@ -239,17 +239,27 @@ Con Portions created by the Initial Developer are Copyright (C) 2008-2025
if ($system_information['os']['uptime'] !== 'unknown') {
echo "<tr>\n";
echo " <td width='20%' class=\"vncell\" style='text-align: left;'>\n";
echo " Uptime\n";
echo " ".$text['label-uptime']."\n";
echo " </td>\n";
echo " <td class=\"row_style1\">\n";
echo " ".$system_information['os']['uptime']." \n";
echo " </td>\n";
echo "</tr>\n";
}
if (!empty($system_information['os']['hostname'])) {
echo "<tr>\n";
echo " <td width='20%' class=\"vncell\" style='text-align: left;'>\n";
echo " ".$text['label-hostname']."\n";
echo " </td>\n";
echo " <td class=\"row_style1\">\n";
echo " ".$system_information['os']['hostname']." \n";
echo " </td>\n";
echo "</tr>\n";
}
}
echo "<tr>\n";
echo " <td width='20%' class=\"vncell\" style='text-align: left;'>\n";
echo " Date\n";
echo " ".$text['label-date']."\n";
echo " </td>\n";
echo " <td class=\"row_style1\">\n";
echo " ".$system_information['os']['date']." \n";
@@ -457,21 +467,22 @@ Con Portions created by the Initial Developer are Copyright (C) 2008-2025
if (permission_exists("system_view_support")) {
$system_support = "- Application\n";
$system_support .= " - version ".$system_information['version']."\n";
$system_support .= " - branch ".$system_information['git']['branch']."\n";
$system_support .= " - path ".$system_information['path']."\n";
$system_support .= " - version: ".$system_information['version']."\n";
$system_support .= " - branch: ".$system_information['git']['branch']."\n";
$system_support .= " - path: ".$system_information['path']."\n";
$system_support .= "- PHP\n";
$system_support .= " - version ".$system_information['php']['version']."\n";
$system_support .= " - version: ".$system_information['php']['version']."\n";
$system_support .= " - apcu enabled: ".$system_information['php']['apcu']."\n";
if (isset($system_information['switch']['version'])) {
$system_support .= "- Switch\n";
$system_support .= " - version ".$system_information['switch']['version']."\n";
$system_support .= " - version: ".$system_information['switch']['version']."\n";
}
$system_support .= "- Database\n";
$system_support .= " - name ".$system_information['database']['name']."\n";
$system_support .= " - version ".$system_information['database']['version']."\n";
$system_support .= " - name: ".$system_information['database']['name']."\n";
$system_support .= " - version: ".$system_information['database']['version']."\n";
$system_support .= "- Operating System\n";
$system_support .= " - name ".$system_information['os']['name']."\n";
$system_support .= " - version ".$system_information['os']['version']."\n";
$system_support .= " - name: ".$system_information['os']['name']."\n";
$system_support .= " - version: ".$system_information['os']['version']."\n";
echo "<div class='card'>\n";
echo "<table width='100%' border='0' cellpadding='7' cellspacing='0'>\n";