Added display of project root
This commit is contained in:
@@ -20,6 +20,16 @@ $text['title-sys-info']['sv-se'] = "System Information";
|
|||||||
$text['title-sys-info']['uk'] = "Інформація про систему";
|
$text['title-sys-info']['uk'] = "Інформація про систему";
|
||||||
$text['title-sys-info']['de-at'] = "System Information";
|
$text['title-sys-info']['de-at'] = "System Information";
|
||||||
|
|
||||||
|
$text['title-os-info']['en-us'] = "Operating System Information";
|
||||||
|
$text['title-os-info']['es-cl'] = "Información de Sistema Operativo";
|
||||||
|
$text['title-os-info']['pt-pt'] = "Informação do Sistema Operativo";
|
||||||
|
$text['title-os-info']['fr-fr'] = "";
|
||||||
|
$text['title-os-info']['pt-br'] = "Informação do Sistema operacional";
|
||||||
|
$text['title-os-info']['pl'] = "Informacje o System operacyjny";
|
||||||
|
$text['title-os-info']['sv-se'] = "Operativsystem Systeminformation";
|
||||||
|
$text['title-os-info']['uk'] = "Інформація про Операційна система ";
|
||||||
|
$text['title-os-info']['de-at'] = "Informationen zum Betriebssystem";
|
||||||
|
|
||||||
$text['title-memcache']['en-us'] = "Memcache Information";
|
$text['title-memcache']['en-us'] = "Memcache Information";
|
||||||
$text['title-memcache']['es-cl'] = "Información de Memcache";
|
$text['title-memcache']['es-cl'] = "Información de Memcache";
|
||||||
$text['title-memcache']['pt-pt'] = "Informação da Memcache";
|
$text['title-memcache']['pt-pt'] = "Informação da Memcache";
|
||||||
@@ -90,6 +100,16 @@ $text['label-version']['sv-se'] = "";
|
|||||||
$text['label-version']['uk'] = "";
|
$text['label-version']['uk'] = "";
|
||||||
$text['label-version']['de-at'] = "";
|
$text['label-version']['de-at'] = "";
|
||||||
|
|
||||||
|
$text['label-path']['en-us'] = "Project Path";
|
||||||
|
$text['label-path']['es-cl'] = "";
|
||||||
|
$text['label-path']['pt-pt'] = "";
|
||||||
|
$text['label-path']['fr-fr'] = "";
|
||||||
|
$text['label-path']['pt-br'] = "";
|
||||||
|
$text['label-path']['pl'] = "";
|
||||||
|
$text['label-path']['sv-se'] = "";
|
||||||
|
$text['label-path']['uk'] = "";
|
||||||
|
$text['label-path']['de-at'] = "";
|
||||||
|
|
||||||
$text['label-git_info']['en-us'] = "Git Information";
|
$text['label-git_info']['en-us'] = "Git Information";
|
||||||
$text['label-git_info']['es-cl'] = "";
|
$text['label-git_info']['es-cl'] = "";
|
||||||
$text['label-git_info']['pt-pt'] = "";
|
$text['label-git_info']['pt-pt'] = "";
|
||||||
|
|||||||
+14
-1
@@ -85,7 +85,7 @@ $document['title'] = $text['title-sys-status'];
|
|||||||
echo " </td>\n";
|
echo " </td>\n";
|
||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
|
|
||||||
$git_path = normalize_path_to_os($_SERVER["DOCUMENT_ROOT"]."/.git");
|
$git_path = normalize_path_to_os($_SERVER['PROJECT_ROOT']."/.git");
|
||||||
if(file_exists($git_path)){
|
if(file_exists($git_path)){
|
||||||
$git_exe = 'git';
|
$git_exe = 'git';
|
||||||
if (strtoupper(substr(PHP_OS, 0, 3)) === 'SUN') { $git_exe = shell_exec('which git'); }
|
if (strtoupper(substr(PHP_OS, 0, 3)) === 'SUN') { $git_exe = shell_exec('which git'); }
|
||||||
@@ -107,6 +107,15 @@ $document['title'] = $text['title-sys-status'];
|
|||||||
echo "</tr>\n";
|
echo "</tr>\n";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "<tr>\n";
|
||||||
|
echo " <td width='20%' class=\"vncell\" style='text-align: left;'>\n";
|
||||||
|
echo " ".$text['label-path']."\n";
|
||||||
|
echo " </td>\n";
|
||||||
|
echo " <td class=\"row_style1\">\n";
|
||||||
|
echo " ".$_SERVER['PROJECT_ROOT']."\n";
|
||||||
|
echo " </td>\n";
|
||||||
|
echo "</tr>\n";
|
||||||
|
|
||||||
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
$fp = event_socket_create($_SESSION['event_socket_ip_address'], $_SESSION['event_socket_port'], $_SESSION['event_socket_password']);
|
||||||
if ($fp) {
|
if ($fp) {
|
||||||
$switch_version = event_socket_request($fp, 'api version');
|
$switch_version = event_socket_request($fp, 'api version');
|
||||||
@@ -131,6 +140,10 @@ $document['title'] = $text['title-sys-status'];
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
echo "<tr>\n";
|
||||||
|
echo " <th class='th' colspan='2' align='left' style='padding-top:2em'>".$text['title-os-info']."</th>\n";
|
||||||
|
echo "</tr>\n";
|
||||||
|
|
||||||
echo "<!--\n";
|
echo "<!--\n";
|
||||||
$tmp_result = shell_exec('uname -a');
|
$tmp_result = shell_exec('uname -a');
|
||||||
echo "-->\n";
|
echo "-->\n";
|
||||||
|
|||||||
Reference in New Issue
Block a user