\n";
$page_scripts .= $script;
}
}
#
function addCSS($css)
{
global $page_css;
$page_css .= $css;
}
#
global $added_gbase;
$added_gbase = false;
function addGBase()
{
global $added_gbase;
if ($added_gbase == false)
{
$added_gbase = true;
$g = GBaseJS();
addScript($g);
}
}
#
global $added_tips;
$added_tips = false;
function addTips()
{
global $added_tips;
if ($added_tips == false)
{
$added_tips = true;
$t = TipsJS();
addScript($t);
$tcss = TipsCSS();
addCSS($tcss);
}
}
#
global $added_sort;
$added_sort = false;
function addSort()
{
global $added_sort;
if ($added_sort == false)
{
$added_sort = true;
$s = SortJS();
addScript($s);
}
}
#
global $added_qr;
$added_qr = false;
function addQR()
{
global $added_qr;
if ($added_qr == false)
{
$added_qr = true;
addGBase();
$q = QRJS();
addScript($q);
}
}
#
function makeURL($page)
{
if ($page == null)
$page = '';
else if ($page != '')
$page = '?k='.$page;
return "/index.php$page";
}
#
function makeLink($page, $rest = '')
{
$href = "';
if (strlen($page) > 0)
$form .= "";
return $form;
}
#
function dotrm($html, $dontdoit)
{
if ($dontdoit === true)
return $html;
else
return preg_replace('/ *\n */', '', $html);
}
#
function trm($html)
{
global $dont_trm;
return dotrm($html, $dont_trm);
}
#
function trm_force($html)
{
return dotrm($html, false);
}
#
function pghead($css_marker, $script_marker, $name)
{
global $page_title;
$head = "\n";
$head .= "
';
}
else
$top .= ' ';
$top .= '';
$top .= ' ';
$top .= "
";
$top .= ' ";
$top .= "$lh ";
$top .= "$ls $lw ';
$top .= ' ';
$top .= '
";
$top .= ' ";
$top .= 'CKPool: ';
$top .= " $phr ";
$top .= 'Shares: ';
$top .= " $pac Invalids: ';
$top .= " $per ';
$top .= ' ';
$top .= '
";
$top .= ' ';
$top .= 'Last ';
$top .= 'Block ";
$top .= 'Pool: ';
$top .= " $plb Network: ';
$top .= " $nlb ';
$top .= ' ';
$top .= '
';
$top .= ' ';
$top .= 'Users: ';
$top .= ' '.$info['users'].' Workers: ';
$top .= ' '.$info['workers'].' ';
if ($douser === true)
{
$top .= '';
list($who, $whoid) = validate();
if ($who == false)
{
$top .= '
';
}
else
{
$extra = '';
if (strlen($who) > 12)
{
$who = substr($who, 0, 12);
$extra = '
';
}
$top .= "".htmlspecialchars($who)."$extra ";
$top .= makeForm('');
$top .= "";
$top .= "';
$top .= 'Login
Register';
$top .= '
Hash Rate:";
$top .= "$uhr$u1hr
";
}
$top .= '';
}
$top .= '
';
$ret .= '
|