Added display of project root

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

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";