Skip to content

Commit

Permalink
remove bug at startup
Browse files Browse the repository at this point in the history
  • Loading branch information
JimTR committed Aug 31, 2021
1 parent c3f85e8 commit 9e360dd
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions functions.php
Original file line number Diff line number Diff line change
@@ -1,13 +1,15 @@
<?php
//echo 'functions 1.04';
define('fversion',2.04);
$build = "38494-2347046334";
$runfile = basename($argv[0]);
if (isset($argv[1]) and $runfile == 'functions.php') {
echo 'Functions v'.fversion.PHP_EOL;
echo 'Build '.$build.PHP_EOL;
exit;
}
$build = "38536-3213837468";
if (isset($argv)) {
$runfile = basename($argv[0]);
if (isset($argv[1]) and $runfile == 'functions.php') {
echo 'Functions v'.fversion.PHP_EOL;
echo 'Build '.$build.PHP_EOL;
exit;
}
}
function get_boot_time() {
$tmp = explode(' ', file_get_contents('/proc/uptime'));

Expand Down

0 comments on commit 9e360dd

Please sign in to comment.