mirror of
https://github.com/GOSTSec/sgminer
synced 2025-01-10 23:08:07 +00:00
miner.php only show the current date header once
This commit is contained in:
parent
6f8cc9e230
commit
849ba896af
14
miner.php
14
miner.php
@ -35,6 +35,10 @@ $warnfont = '<font color=red><b>';
|
|||||||
$warnoff = '</b></font>';
|
$warnoff = '</b></font>';
|
||||||
$dfmt = 'H:i:s j-M-Y \U\T\CP';
|
$dfmt = 'H:i:s j-M-Y \U\T\CP';
|
||||||
#
|
#
|
||||||
|
# Ensure it is only ever shown once
|
||||||
|
global $showndate;
|
||||||
|
$showndate = false;
|
||||||
|
#
|
||||||
function htmlhead($checkapi)
|
function htmlhead($checkapi)
|
||||||
{
|
{
|
||||||
global $error, $readonly, $here;
|
global $error, $readonly, $here;
|
||||||
@ -368,14 +372,20 @@ function details($cmd, $list, $rig)
|
|||||||
{
|
{
|
||||||
global $tablebegin, $tableend, $dfmt;
|
global $tablebegin, $tableend, $dfmt;
|
||||||
global $poolcmd, $readonly;
|
global $poolcmd, $readonly;
|
||||||
|
global $showndate;
|
||||||
|
|
||||||
$stas = array('S' => 'Success', 'W' => 'Warning', 'I' => 'Informational', 'E' => 'Error', 'F' => 'Fatal');
|
$stas = array('S' => 'Success', 'W' => 'Warning', 'I' => 'Informational', 'E' => 'Error', 'F' => 'Fatal');
|
||||||
|
|
||||||
echo $tablebegin;
|
echo $tablebegin;
|
||||||
|
|
||||||
echo '<tr><td class=sta>Date: '.date($dfmt).'</td></tr>';
|
if ($showndate === false)
|
||||||
|
{
|
||||||
|
echo '<tr><td class=sta>Date: '.date($dfmt).'</td></tr>';
|
||||||
|
|
||||||
echo $tableend.$tablebegin;
|
echo $tableend.$tablebegin;
|
||||||
|
|
||||||
|
$showndate = true;
|
||||||
|
}
|
||||||
|
|
||||||
if (isset($list['STATUS']))
|
if (isset($list['STATUS']))
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user