Skip to content
This repository was archived by the owner on Dec 14, 2023. It is now read-only.

Commit a3e5b79

Browse files
author
mattpass
committed
ICE root only shown now, default also, display versions
1 parent 1e01e78 commit a3e5b79

File tree

1 file changed

+17
-1
lines changed

1 file changed

+17
-1
lines changed

editor.php

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
<span class="heading"><?php echo $t['Root'];?></span><br>
116116
<?php echo $docRoot;?><br><br>
117117
<span class="heading"><?php echo $t['ICEcoder root'];?></span><br>
118-
<?php echo $docRoot.$iceRoot;?><br><br>
118+
<?php echo "" !== $iceRoot ? $iceRoot : "[Default]";?><br><br>
119119
<span class="heading"><?php echo $t['PHP version'];?></span><br>
120120
<?php echo phpversion();?><br><br>
121121
<span class="heading"><?php echo $t['Date & time'];?></span><br>
@@ -157,6 +157,22 @@
157157
<?php
158158
}
159159
?>
160+
<h2>ICEcoder</h2>
161+
<span class="heading"><?php echo $t['version'];?></span><br>
162+
<?php
163+
// If we have a .git dir, get the Git short commit hash to display as a link
164+
$gitCommitTextLink = "";
165+
if (is_dir(dirname(__FILE__) . "/.git")) {
166+
$gitCommit = trim(exec('git log --pretty="%h" -n1 HEAD'));
167+
$gitCommitTextLink = ' (Git commit: <a href="https://github.com/icecoder/ICEcoder/commit/' . $gitCommit . '" style="color: #eee; text-decoration: none" target="_blank">' . $gitCommit . '</a>)';
168+
}
169+
echo "v" . $ICEcoder["versionNo"] . $gitCommitTextLink;
170+
?><br><br>
171+
<span class="heading"><?php echo $t['codemirror version'];?></span><br>
172+
<script>
173+
document.write(CodeMirror.version);
174+
</script>
175+
<br><br>
160176
</div>
161177

162178
<div style="clear: both"></div>

0 commit comments

Comments
 (0)