Browse Source

php - remove some uncommon missing variable warnings

master
kanoi 10 years ago
parent
commit
6d0419bc39
  1. 18
      pool/page.php
  2. 7
      pool/page_pplns2.php

18
pool/page.php

@ -177,11 +177,19 @@ function trm_force($html)
return dotrm($html, false); return dotrm($html, false);
} }
# #
function isCrap()
{
if (isset($_SERVER['HTTP_USER_AGENT']))
return strpos($_SERVER['HTTP_USER_AGENT'],'iP');
else
return false;
}
#
function pghead($css_marker, $script_marker, $name) function pghead($css_marker, $script_marker, $name)
{ {
global $page_title; global $page_title;
$iCrap = strpos($_SERVER['HTTP_USER_AGENT'],'iP'); $iCrap = isCrap();
$head = "<!DOCTYPE html>\n"; $head = "<!DOCTYPE html>\n";
@ -444,6 +452,12 @@ function pgtop($info, $dotop, $user, $douser)
$lh = $img1.$lhc.$img2; $lh = $img1.$lhc.$img2;
$lw = $img1.$lwc.$img2; $lw = $img1.$lwc.$img2;
} }
if (!isset($info['users']))
$info['users'] = '?';
if (!isset($info['workers']))
$info['workers'] = '?';
$top .= '<table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td>'; $top .= '<table cellpadding=0 cellspacing=0 border=0 width=100%><tr><td>';
$top .= '<table cellpadding=1 cellspacing=0 border=0>'; $top .= '<table cellpadding=1 cellspacing=0 border=0>';
$top .= "<tr><td class=topdes>$lh</td></tr>"; $top .= "<tr><td class=topdes>$lh</td></tr>";
@ -522,7 +536,7 @@ function pgtop($info, $dotop, $user, $douser)
# #
function pgmenu($menus) function pgmenu($menus)
{ {
$iCrap = strpos($_SERVER['HTTP_USER_AGENT'],'iP'); $iCrap = isCrap();
$ret = "\n<table cellpadding=0 cellspacing=0 border=0 width=100% id=n42>"; $ret = "\n<table cellpadding=0 cellspacing=0 border=0 width=100% id=n42>";
$ret .= '<tr><td width=100%>'; $ret .= '<tr><td width=100%>';

7
pool/page_pplns2.php

@ -222,13 +222,6 @@ Block: <input type=text name=blk size=10 value='$blkuse'>
$pg .= str_replace(' ', '&nbsp;', $msg)."</span><br>\n"; $pg .= str_replace(' ', '&nbsp;', $msg)."</span><br>\n";
} }
if (strlen($ans['share_status']) > 0)
{
$pg .= '<br><span class=err>';
$msg = $ans['share_status']." - Can't be paid out yet";
$pg .= str_replace(' ', '&nbsp;', $msg)."</span><br>\n";
}
$pg .= "<br><table callpadding=0 cellspacing=0 border=0>\n"; $pg .= "<br><table callpadding=0 cellspacing=0 border=0>\n";
$pg .= '<tr class=title>'; $pg .= '<tr class=title>';
$pg .= '<td class=dl>Name</td>'; $pg .= '<td class=dl>Name</td>';

Loading…
Cancel
Save