Browse Source

php - set better visual defaults

master
kanoi 9 years ago
parent
commit
f35c77fa59
  1. 10
      pool/page_luck.php

10
pool/page_luck.php

@ -29,12 +29,6 @@ function doluck($data, $user)
else else
$ans = getBlocks($user); $ans = getBlocks($user);
$iCrap = strpos($_SERVER['HTTP_USER_AGENT'],'iP');
if ($iCrap)
$vlines = false;
else
$vlines = true;
$pg = '<h1>Pool Avg Block Luck History</h1><br>'; $pg = '<h1>Pool Avg Block Luck History</h1><br>';
if ($ans['STATUS'] == 'ok' and isset($ans['rows']) and $ans['rows'] > 0) if ($ans['STATUS'] == 'ok' and isset($ans['rows']) and $ans['rows'] > 0)
@ -53,9 +47,7 @@ function doluck($data, $user)
'tkey' => 'time key', 'tlines' => 'time lines', 'tkey' => 'time key', 'tlines' => 'time lines',
'over' => 'key overlap', 'smooth' => 'smooth', 'over' => 'key overlap', 'smooth' => 'smooth',
'utc' => 'utc'); 'utc' => 'utc');
$xon = array('skey' => 1, 'utc' => 1); $xon = array('skey' => 1, 'tkey' => 1, 'tlines' => 1, 'utc' => 1);
if ($vlines === true)
$xon['slines'] = 1;
$pg .= '<div>'; $pg .= '<div>';
foreach ($cbx as $nam => $txt) foreach ($cbx as $nam => $txt)

Loading…
Cancel
Save