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

Increase readability #741

Open
wants to merge 18 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Altering the function phpversion() to the constant PHP_VERSION
  • Loading branch information
rotelok committed Jun 16, 2018
commit f2b19dd4486485d78ce50cec28abb19e173b74f0
2 changes: 1 addition & 1 deletion editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@
<span class="heading"><?php echo $t['ICEcoder root'];?></span><br>
<?php echo $docRoot.$iceRoot;?><br><br>
<span class="heading"><?php echo $t['PHP version'];?></span><br>
<?php echo phpversion();?><br><br>
<?php echo PHP_VERSION;?><br><br>
<span class="heading"><?php echo $t['Date & time'];?></span><br>
<span id="serverDT"></span><br><br>
<h2><?php echo $t['your device'];?></h2>
Expand Down
4 changes: 2 additions & 2 deletions test.php
Original file line number Diff line number Diff line change
Expand Up @@ -19,10 +19,10 @@


echo '<b>TEST 1 of 3: PHP Version:</b><br>ICEcoder needs at least PHP 5.0, tho 5.3 and above is recommended:<br><br>';
echo "Your PHP Version: ".phpversion()."<br><br>";
echo "Your PHP Version: ". PHP_VERSION ."<br><br>";

echo '<b>TEST RESULT:</b> ';
if (phpversion()*1 < 5.0) {
if (PHP_VERSION *1 < 5.0) {
echo '<span style="color: #b00; font-weight: bold">Your version of PHP doesn\'t seem to be high enough!</span>';
} else {
echo '<span style="color: #080; font-weight: bold">PHP version is OK</span>';
Expand Down