mirror of
https://github.com/fusionpbx/fusionpbx.git
synced 2026-01-06 19:53:56 +00:00
Add database information (#6551)
* Add database information Show the database version. * Add title-database * Update app_config.php
This commit is contained in:
@@ -5,7 +5,7 @@
|
|||||||
$apps[$x]['uuid'] = "b7ef56fd-57c5-d4e8-bb4b-7887eede2e78";
|
$apps[$x]['uuid'] = "b7ef56fd-57c5-d4e8-bb4b-7887eede2e78";
|
||||||
$apps[$x]['category'] = "System";
|
$apps[$x]['category'] = "System";
|
||||||
$apps[$x]['subcategory'] = "";
|
$apps[$x]['subcategory'] = "";
|
||||||
$apps[$x]['version'] = "1.0";
|
$apps[$x]['version'] = "1.1";
|
||||||
$apps[$x]['license'] = "Mozilla Public License 1.1";
|
$apps[$x]['license'] = "Mozilla Public License 1.1";
|
||||||
$apps[$x]['url'] = "http://www.fusionpbx.com";
|
$apps[$x]['url'] = "http://www.fusionpbx.com";
|
||||||
$apps[$x]['description']['en-us'] = "Displays information for CPU, HDD, RAM and more.";
|
$apps[$x]['description']['en-us'] = "Displays information for CPU, HDD, RAM and more.";
|
||||||
@@ -47,9 +47,11 @@
|
|||||||
$apps[$x]['permissions'][$y]['menu']['uuid'] = "5243e0d2-0e8b-277a-912e-9d8b5fcdb41d";
|
$apps[$x]['permissions'][$y]['menu']['uuid'] = "5243e0d2-0e8b-277a-912e-9d8b5fcdb41d";
|
||||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||||
$y++;
|
$y++;
|
||||||
|
$apps[$x]['permissions'][$y]['name'] = "system_view_database";
|
||||||
|
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
||||||
|
$y++;
|
||||||
$apps[$x]['permissions'][$y]['name'] = "system_view_memcache";
|
$apps[$x]['permissions'][$y]['name'] = "system_view_memcache";
|
||||||
$apps[$x]['permissions'][$y]['menu']['uuid'] = "5243e0d2-0e8b-277a-912e-9d8b5fcdb41d";
|
$apps[$x]['permissions'][$y]['menu']['uuid'] = "5243e0d2-0e8b-277a-912e-9d8b5fcdb41d";
|
||||||
$apps[$x]['permissions'][$y]['groups'][] = "superadmin";
|
|
||||||
$y++;
|
$y++;
|
||||||
$apps[$x]['permissions'][$y]['name'] = "system_view_backup";
|
$apps[$x]['permissions'][$y]['name'] = "system_view_backup";
|
||||||
$apps[$x]['permissions'][$y]['menu']['uuid'] = "5243e0d2-0e8b-277a-912e-9d8b5fcdb41d";
|
$apps[$x]['permissions'][$y]['menu']['uuid'] = "5243e0d2-0e8b-277a-912e-9d8b5fcdb41d";
|
||||||
@@ -204,4 +206,4 @@
|
|||||||
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
|
$apps[$x]['default_settings'][$y]['default_setting_enabled'] = "true";
|
||||||
$apps[$x]['default_settings'][$y]['default_setting_description'] = "";
|
$apps[$x]['default_settings'][$y]['default_setting_description'] = "";
|
||||||
|
|
||||||
?>
|
?>
|
||||||
|
|||||||
@@ -1,5 +1,4 @@
|
|||||||
<?php
|
<?php
|
||||||
#This file was last reorganized on 19th of September 2017 08:54:24 AM UTC
|
|
||||||
|
|
||||||
$text['title-sys-status']['en-us'] = "System Status";
|
$text['title-sys-status']['en-us'] = "System Status";
|
||||||
$text['title-sys-status']['en-gb'] = "System Status";
|
$text['title-sys-status']['en-gb'] = "System Status";
|
||||||
@@ -64,6 +63,27 @@ $text['title-os-info']['ru-ru'] = "Информация о операционн
|
|||||||
$text['title-os-info']['sv-se'] = "Operativsystem Systeminformation";
|
$text['title-os-info']['sv-se'] = "Operativsystem Systeminformation";
|
||||||
$text['title-os-info']['uk-ua'] = "Інформація про Операційна система ";
|
$text['title-os-info']['uk-ua'] = "Інформація про Операційна система ";
|
||||||
|
|
||||||
|
$text['title-database']['en-us'] = "Database Information";
|
||||||
|
$text['title-database']['en-gb'] = "Database Information";
|
||||||
|
$text['title-database']['ar-eg'] = "";
|
||||||
|
$text['title-database']['de-at'] = "Database Information"; //copied from de-de
|
||||||
|
$text['title-database']['de-ch'] = "Database Information"; //copied from de-de
|
||||||
|
$text['title-database']['de-de'] = "Database Information";
|
||||||
|
$text['title-database']['es-cl'] = "Información de Database";
|
||||||
|
$text['title-database']['es-mx'] = "Información de Database"; //copied from es-cl
|
||||||
|
$text['title-database']['fr-ca'] = "Information Database"; //copied from fr-fr
|
||||||
|
$text['title-database']['fr-fr'] = "Information Database";
|
||||||
|
$text['title-database']['he-il'] = "";
|
||||||
|
$text['title-database']['it-it'] = "Informazioni Database";
|
||||||
|
$text['title-database']['nl-nl'] = "Database Informatie";
|
||||||
|
$text['title-database']['pl-pl'] = "";
|
||||||
|
$text['title-database']['pt-br'] = "Informação da memória cache";
|
||||||
|
$text['title-database']['pt-pt'] = "Informação da Database";
|
||||||
|
$text['title-database']['ro-ro'] = "";
|
||||||
|
$text['title-database']['ru-ru'] = "";
|
||||||
|
$text['title-database']['sv-se'] = "Database Information ";
|
||||||
|
$text['title-database']['uk-ua'] = "";
|
||||||
|
|
||||||
$text['title-memcache']['en-us'] = "Memcache Information";
|
$text['title-memcache']['en-us'] = "Memcache Information";
|
||||||
$text['title-memcache']['en-gb'] = "Memcache Information";
|
$text['title-memcache']['en-gb'] = "Memcache Information";
|
||||||
$text['title-memcache']['ar-eg'] = "";
|
$text['title-memcache']['ar-eg'] = "";
|
||||||
|
|||||||
@@ -312,7 +312,7 @@
|
|||||||
echo "<br /><br />";
|
echo "<br /><br />";
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//Windows
|
//Windows
|
||||||
if (stristr(PHP_OS, 'WIN')) {
|
if (stristr(PHP_OS, 'WIN')) {
|
||||||
echo "<!--\n";
|
echo "<!--\n";
|
||||||
@@ -475,6 +475,33 @@
|
|||||||
echo "<br /><br />";
|
echo "<br /><br />";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//database information
|
||||||
|
if (permission_exists('system_view_database')) {
|
||||||
|
if ($db_type == 'pgsql') {
|
||||||
|
|
||||||
|
$sql = "select version(); ";
|
||||||
|
$database = new database;
|
||||||
|
$database_version = $database->select($sql, null, 'column');
|
||||||
|
|
||||||
|
echo "<table width=\"100%\" border=\"0\" cellpadding=\"7\" cellspacing=\"0\">\n";
|
||||||
|
echo "<tr>\n";
|
||||||
|
echo " <th class='th' colspan='2' align='left'>".$text['title-database']."</th>\n";
|
||||||
|
echo "</tr>\n";
|
||||||
|
echo "<tr>\n";
|
||||||
|
echo " <td width='20%' class=\"vncell\" style='text-align: left;'>\n";
|
||||||
|
echo " ".$text['label-version']." \n";
|
||||||
|
echo " </td>\n";
|
||||||
|
echo " <td class=\"row_style1\">\n";
|
||||||
|
echo "<pre>\n";
|
||||||
|
echo "$database_version<br>";
|
||||||
|
echo "</pre>\n";
|
||||||
|
echo " </td>\n";
|
||||||
|
echo "</tr>\n";
|
||||||
|
echo "</table>\n";
|
||||||
|
}
|
||||||
|
echo "<br /><br />";
|
||||||
|
}
|
||||||
|
|
||||||
//memcache information
|
//memcache information
|
||||||
if (permission_exists("system_view_memcache") && file_exists($_SERVER["PROJECT_ROOT"]."/app/sip_status/app_config.php")){
|
if (permission_exists("system_view_memcache") && file_exists($_SERVER["PROJECT_ROOT"]."/app/sip_status/app_config.php")){
|
||||||
echo "<table width='100%' border='0' cellpadding='7' cellspacing='0'>\n";
|
echo "<table width='100%' border='0' cellpadding='7' cellspacing='0'>\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user