mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2025-12-30 00:53:50 +00:00
Add hostname and use text translations
This commit is contained in:
@@ -403,6 +403,33 @@ $text['label-kernel']['zh-cn'] = "核心";
|
|||||||
$text['label-kernel']['ja-jp'] = "カーネル";
|
$text['label-kernel']['ja-jp'] = "カーネル";
|
||||||
$text['label-kernel']['ko-kr'] = "핵심";
|
$text['label-kernel']['ko-kr'] = "핵심";
|
||||||
|
|
||||||
|
$text['label-uptime']['en-us'] = "Uptime";
|
||||||
|
$text['label-uptime']['en-gb'] = "Uptime";
|
||||||
|
$text['label-uptime']['ar-eg'] = "وقت التشغيل";
|
||||||
|
$text['label-uptime']['de-at'] = "Betriebszeit";
|
||||||
|
$text['label-uptime']['de-ch'] = "Betriebszeit";
|
||||||
|
$text['label-uptime']['de-de'] = "Betriebszeit";
|
||||||
|
$text['label-uptime']['el-gr'] = "Χρόνος εκτέλεσης";
|
||||||
|
$text['label-uptime']['es-cl'] = "Tiempo de actividad";
|
||||||
|
$text['label-uptime']['es-mx'] = "Tiempo de actividad";
|
||||||
|
$text['label-uptime']['fr-ca'] = "Temps de fonctionnement";
|
||||||
|
$text['label-uptime']['fr-fr'] = "Temps de fonctionnement";
|
||||||
|
$text['label-uptime']['he-il'] = "زמיןオンライン";
|
||||||
|
$text['label-uptime']['it-it'] = "Tempo di attività";
|
||||||
|
$text['label-uptime']['ka-ge'] = "მუშაობის დრო";
|
||||||
|
$text['label-uptime']['nl-nl'] = "Uptime";
|
||||||
|
$text['label-uptime']['pl-pl'] = "Czas pracy";
|
||||||
|
$text['label-uptime']['pt-br'] = "Tempo ativo";
|
||||||
|
$text['label-uptime']['pt-pt'] = "Tempo de atividade";
|
||||||
|
$text['label-uptime']['ro-ro'] = "Timpul de funcționare";
|
||||||
|
$text['label-uptime']['ru-ru'] = "Время работы";
|
||||||
|
$text['label-uptime']['sv-se'] = "Drifttid";
|
||||||
|
$text['label-uptime']['uk-ua'] = "Час працювання";
|
||||||
|
$text['label-uptime']['tr-tr'] = "Çalışma süresi";
|
||||||
|
$text['label-uptime']['zh-cn'] = "运行时间";
|
||||||
|
$text['label-uptime']['ja-jp'] = "稼働時間";
|
||||||
|
$text['label-uptime']['ko-kr'] = "작동 시간";
|
||||||
|
|
||||||
$text['label-databases']['en-us'] = "Databases";
|
$text['label-databases']['en-us'] = "Databases";
|
||||||
$text['label-databases']['en-gb'] = "Databases";
|
$text['label-databases']['en-gb'] = "Databases";
|
||||||
$text['label-databases']['ar-eg'] = "قواعد بيانات";
|
$text['label-databases']['ar-eg'] = "قواعد بيانات";
|
||||||
|
|||||||
@@ -28,6 +28,7 @@ Con Portions created by the Initial Developer are Copyright (C) 2008-2025
|
|||||||
//includes files
|
//includes files
|
||||||
require_once dirname(__DIR__, 2) . "/resources/require.php";
|
require_once dirname(__DIR__, 2) . "/resources/require.php";
|
||||||
require_once "resources/check_auth.php";
|
require_once "resources/check_auth.php";
|
||||||
|
|
||||||
//check permissions
|
//check permissions
|
||||||
if (permission_exists('system_view_info')
|
if (permission_exists('system_view_info')
|
||||||
|| permission_exists('system_view_cpu')
|
|| permission_exists('system_view_cpu')
|
||||||
@@ -47,11 +48,11 @@ Con Portions created by the Initial Developer are Copyright (C) 2008-2025
|
|||||||
|
|
||||||
//load editor preferences/defaults
|
//load editor preferences/defaults
|
||||||
if (permission_exists("system_view_support")) {
|
if (permission_exists("system_view_support")) {
|
||||||
$setting_size = !empty($_SESSION["editor"]["font_size"]["text"]) ? $_SESSION["editor"]["font_size"]["text"] : '12px';
|
$setting_size = !empty($settings->get('editor', 'font_size')) ? $settings->get('editor', 'font_size') : '12px';
|
||||||
$setting_theme = !empty($_SESSION["editor"]["theme"]["text"]) ? $_SESSION["editor"]["theme"]["text"] : 'cobalt';
|
$setting_theme = !empty($settings->get('editor', 'theme')) ? $settings->get('editor', 'theme') : 'cobalt';
|
||||||
$setting_invisibles = isset($_SESSION['editor']['invisibles']['text']) ? $_SESSION['editor']['invisibles']["text"] : 'false';
|
$setting_invisibles = $settings->get('editor', 'invisibles', 'false');
|
||||||
$setting_indenting = isset($_SESSION['editor']['indent_guides']['text']) ? $_SESSION['editor']['indent_guides']["text"]: 'false';
|
$setting_indenting = $settings->get('editor', 'indent_guides', 'false');
|
||||||
$setting_numbering = isset($_SESSION['editor']['line_numbers']['text']) ? $_SESSION['editor']['line_numbers']["text"] : 'true';
|
$setting_numbering = $settings->get('editor', 'line_numbers', 'true');
|
||||||
}
|
}
|
||||||
|
|
||||||
//additional includes
|
//additional includes
|
||||||
@@ -241,17 +242,27 @@ Con Portions created by the Initial Developer are Copyright (C) 2008-2025
|
|||||||
if ($system_information['os']['uptime'] !== 'unknown') {
|
if ($system_information['os']['uptime'] !== 'unknown') {
|
||||||
echo "<tr>\n";
|
echo "<tr>\n";
|
||||||
echo " <td width='20%' class=\"vncell\" style='text-align: left;'>\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>\n";
|
||||||
echo " <td class=\"row_style1\">\n";
|
echo " <td class=\"row_style1\">\n";
|
||||||
echo " ".$system_information['os']['uptime']." \n";
|
echo " ".$system_information['os']['uptime']." \n";
|
||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo "</tr>\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 "<tr>\n";
|
||||||
echo " <td width='20%' class=\"vncell\" style='text-align: left;'>\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>\n";
|
||||||
echo " <td class=\"row_style1\">\n";
|
echo " <td class=\"row_style1\">\n";
|
||||||
echo " ".$system_information['os']['date']." \n";
|
echo " ".$system_information['os']['date']." \n";
|
||||||
@@ -459,21 +470,22 @@ Con Portions created by the Initial Developer are Copyright (C) 2008-2025
|
|||||||
|
|
||||||
if (permission_exists("system_view_support")) {
|
if (permission_exists("system_view_support")) {
|
||||||
$system_support = "- Application\n";
|
$system_support = "- Application\n";
|
||||||
$system_support .= " - version ".$system_information['version']."\n";
|
$system_support .= " - version: ".$system_information['version']."\n";
|
||||||
$system_support .= " - branch ".$system_information['git']['branch']."\n";
|
$system_support .= " - branch: ".$system_information['git']['branch']."\n";
|
||||||
$system_support .= " - path ".$system_information['path']."\n";
|
$system_support .= " - path: ".$system_information['path']."\n";
|
||||||
$system_support .= "- PHP\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'])) {
|
if (isset($system_information['switch']['version'])) {
|
||||||
$system_support .= "- Switch\n";
|
$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 .= "- Database\n";
|
||||||
$system_support .= " - name ".$system_information['database']['name']."\n";
|
$system_support .= " - name: ".$system_information['database']['name']."\n";
|
||||||
$system_support .= " - version ".$system_information['database']['version']."\n";
|
$system_support .= " - version: ".$system_information['database']['version']."\n";
|
||||||
$system_support .= "- Operating System\n";
|
$system_support .= "- Operating System\n";
|
||||||
$system_support .= " - name ".$system_information['os']['name']."\n";
|
$system_support .= " - name: ".$system_information['os']['name']."\n";
|
||||||
$system_support .= " - version ".$system_information['os']['version']."\n";
|
$system_support .= " - version: ".$system_information['os']['version']."\n";
|
||||||
|
|
||||||
echo "<div class='card'>\n";
|
echo "<div class='card'>\n";
|
||||||
echo "<table width='100%' border='0' cellpadding='7' cellspacing='0'>\n";
|
echo "<table width='100%' border='0' cellpadding='7' cellspacing='0'>\n";
|
||||||
@@ -597,4 +609,4 @@ Con Portions created by the Initial Developer are Copyright (C) 2008-2025
|
|||||||
//include the footer
|
//include the footer
|
||||||
require_once "resources/footer.php";
|
require_once "resources/footer.php";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
Reference in New Issue
Block a user