예제 #1
0
$smarty->assign('prize_max', $db->res['prize']);
$smarty->assign('globalboxalert', $globalboxalert);
$smarty->assign('keywords', $keywords);
$smarty->assign('desc', $desc);
$smarty->assign('year', date('Y', $now));
$smarty->assign('anti_bot', $anti_bot);
$smarty->assign('currency', currency($currency));
try {
    $client = new SoapClient('https://api.epay.info/?wsdl');
} catch (Exception $e) {
    $client = new SoapClient('http://api.epay.info/?wsdl');
}
$blc = $client->f_balance($apicode, 1);
if ($blc >= 0) {
    if ($currency == 4) {
        $blc = convertToBTCFromSatoshi($blc);
    }
    $smarty->assign('faucet_balance', $blc . ' ' . currency($currency));
} else {
    $smarty->assign('faucet_balance', 'API NOT VALID');
}
if ($anti_bot && ($faucet_steps == 2 && isset($_POST['step2']) || $faucet_steps == 1)) {
    $antibotlinks = new antibotlinks(true);
    $antibotlinks->generate($anti_bot, true);
    $smarty->assign('abinf', $antibotlinks->show_info());
    switch ($anti_bot) {
        case 1:
            $smarty->assign('ab1', $antibotlinks->show_link());
            break;
        case 2:
            $smarty->assign('ab1', $antibotlinks->show_link());
예제 #2
0
  <tr>
    <td width="49%">User Count</td>
    <td width="51%">
	<?php 
    $db->queryres("Select count(user_id) as cc from tbl_user");
    echo number_format($db->res['cc']);
    ?>
	</td>
  </tr>

  <tr>
    <td width="49%">Total Paid</td>
    <td width="51%">
	<?php 
    $db->queryres("Select sum(earn) as cc,sum(playnum) as pc from tbl_user");
    echo convertToBTCFromSatoshi($db->res['cc']), ' BTC';
    ?>
	</td>
  </tr>
  
  <tr>
    <td width="49%">Total Game played</td>
    <td width="51%">
	<?php 
    echo number_format($db->res['pc']);
    ?>
	</td>
  </tr>
  
</table>
<?php