Example #1
0
$db->queryres("select prize from tbl_prize order by prize asc limit 1 ");
$smarty->assign('prize_min', $db->res['prize']);
$db->queryres("select prize from tbl_prize order by prize desc limit 1 ");
$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());
<?php

$client = new SoapClient('http://api.epay.info/?wsdl');
$response = $client->f_balance($apicode, 1);