Skip to content
Permalink
Browse files

fixed again some warnings in error.log, also put GITID in footer of Page

  • Loading branch information...
dg9vh committed Jun 16, 2018
1 parent c0c9245 commit 7dced54ab3b338f9b911f62980a38965f3e3fb1b
Showing with 12 additions and 3 deletions.
  1. +9 −0 include/functions.php
  2. +1 −1 include/lh.php
  3. +1 −1 txinfo.php
  4. +1 −1 version.php
@@ -19,6 +19,15 @@ function getYSFReflectorFileVersion() {
}
}
function getGitVersion(){
if (file_exists(".git")) {
exec("git rev-parse --short HEAD", $output);
return 'GitID #<a href="https://github.com/dg9vh/YSFReflector-Dashboard/commit/'.$output[0].'" target="_blank">'.$output[0].'</a>';
} else {
return 'GitID unknown';
}
}
function getYSFReflectorConfig() {
// loads YSFReflector.ini into array for further use
$conf = array();
@@ -21,7 +21,7 @@
$listElem = $lastHeard[$i];
echo"<tr>";
echo"<td>$listElem[0]</td>";
if (constant("SHOWQRZ") && $listElem[1] !== "??????????" && !is_numeric($listElem[1])) {
if (defined("SHOWQRZ") && $listElem[1] !== "??????????" && !is_numeric($listElem[1])) {
echo"<td nowrap><a target=\"_new\" href=\"https://qrz.com/db/$listElem[1]\">".str_replace("0","&Oslash;",$listElem[1])."</a></td>";
} else {
if (defined("GDPR"))
@@ -13,7 +13,7 @@
if (strlen($listElem[1]) !== 0) {
echo "<tr>";
echo"<td nowrap>$listElem[0]</td>";
if (constant("SHOWQRZ") && $listElem[1] !== "??????????" && !is_numeric($listElem[1])) {
if (defined("SHOWQRZ") && $listElem[1] !== "??????????" && !is_numeric($listElem[1])) {
echo"<td nowrap><a target=\"_new\" href=\"https://qrz.com/db/$listElem[1]\">".str_replace("0","&Oslash;",$listElem[1])."</a></td>";
} else {
if (defined("GDPR"))
@@ -1,3 +1,3 @@
<?php
define("VERSION", "20180616-1");
define("VERSION", "20180616-2 (".getGitVersion().")");;
?>

0 comments on commit 7dced54

Please sign in to comment.
You can’t perform that action at this time.