diff --git a/pool/page.php b/pool/page.php index 3c957351..ce30eac1 100644 --- a/pool/page.php +++ b/pool/page.php @@ -84,6 +84,8 @@ function pghead($script_marker, $name) { global $page_title; + $iCrap = strpos($_SERVER['HTTP_USER_AGENT'],'iP'); + $head = "\n"; $head .= "$page_title$name"; @@ -118,10 +120,15 @@ input.tiny {width: 0px; height: 0px; margin: 0px; padding: 0px; outline: none; b #n42 td {min-width: 100px; float: left; vertical-align: top; padding: 0px 2px;} #n42 td.navboxr {float: right;} #n42 td.nav {position: relative;} +#n42 td.ts {border-width: 1px; border-color: #02e; border-style: solid none none none;}"; +if (!$iCrap) +{ + $head .= " #n42 div.sub {left: 0px; z-index: 42; position: absolute; visibility: hidden;} -#n42 td.ts {border-width: 1px; border-color: #02e; border-style: solid none none none;} #n42 td.nav:hover {background:#09e;} -#n42 td.nav:hover div.sub {background:#07e; visibility: visible;} +#n42 td.nav:hover div.sub {background:#07e; visibility: visible;}"; +} + $head .= " h1 {margin-top: 20px; float:middle; font-size: 20px;} .foot, .push {height: 50px; font-size: 10pt;} .title {background-color: #909090;} @@ -295,34 +302,34 @@ function pgtop($info, $dotop, $user, $douser) $lhn = $info['now'] - $info['lasthb']; $lwn = $info['now'] - $info['lastwi']; if ($lsn < 2) - $lsc = 'green'; + $lsc = 'green.gif'; else { if ($lsn < 4) - $lsc = 'orange'; + $lsc = 'orange.png'; else - $lsc = 'red'; + $lsc = 'red.png'; } if ($lhn < 3) - $lhc = 'green'; + $lhc = 'green.gif'; else { if ($lhn < 6) - $lhc = 'orange'; + $lhc = 'orange.png'; else - $lhc = 'red'; + $lhc = 'red.png'; } if ($lwn < 36) - $lwc = 'green'; + $lwc = 'green.gif'; else { if ($lwn < 46) - $lwc = 'orange'; + $lwc = 'orange.png'; else - $lwc = 'red'; + $lwc = 'red.png'; } $img1 = ' $item) + if ($iCrap) { + foreach ($submenus as $submenu => $item) + $ret .= "".makeLink($item)."$submenu"; + } + else + { + $ret .= ""; + $first = true; + foreach ($submenus as $submenu => $item) + { if ($first == true) { $first = false; @@ -437,10 +453,11 @@ function pgmenu($menus) $ret .= '
'; } $ret .= ""; - } - if ($first == false) + } + if ($first == false) $ret .= '
".makeLink($item,'class=as')."$submenu
'; - $ret .= ''; + $ret .= ''; + } } $ret .= "\n"; return $ret; diff --git a/pool/prime.php b/pool/prime.php index 2ac16d2e..ebecb23e 100644 --- a/pool/prime.php +++ b/pool/prime.php @@ -53,7 +53,7 @@ function def_menu() ), 'gap' => array( # options not shown 'API' => 'api'), - 'Help' => array('Help' => 'help', + 'Help' => array( 'Payouts' => 'payout')); return $dmenu; } @@ -84,9 +84,7 @@ function check() 'PBlocks' => 'pblocks' ), 'Help' => array( - 'Payouts' => 'payout', - 'Workers ' => 'workers', - 'Blocks' => 'blocks' + 'Payouts' => 'payout' ) ); tryLogInOut();