Added display of project root

This commit is contained in:
Matthew Vale
2015-12-21 10:46:27 +00:00
parent c8f55bf922
commit 91e4d3af28
2 changed files with 34 additions and 1 deletions

View File

@@ -20,6 +20,16 @@ $text['title-sys-info']['sv-se'] = "System Information";
$text['title-sys-info']['uk'] = "Інформація про систему";
$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']['es-cl'] = "Información de 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']['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']['es-cl'] = "";
$text['label-git_info']['pt-pt'] = "";

View File

@@ -85,7 +85,7 @@ $document['title'] = $text['title-sys-status'];
echo " </td>\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)){
$git_exe = '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 " <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']);
if ($fp) {
$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";
$tmp_result = shell_exec('uname -a');
echo "-->\n";