Example #1
0
if ($qxrow['rate_req'] == 4) {
    $xcount = 15 - mysql_num_rows($q);
    $xlimit = 15;
}
$mypos = 0;
$xcount = 1;
#SELECT * FROM table_name WHERE id >= 3 ORDER BY id ASC LIMIT 0,15
while ($row = mysql_fetch_array($q)) {
    $users[$xcount] = $row['accounts_id'];
    $xcount++;
    if ($row['accounts_id'] == $_SESSION['accounts_id']) {
        $mypos = $xcount;
    }
}
if ($mypos == 1 && $static == 0) {
    addmoneyothertbl($qxrow['rate_end'], $_SESSION['accounts_id']);
}
#test
if ($_GET['pos'] == 1) {
    #addmoneyothertbl($qxrow['rate_end'],$_SESSION['accounts_id']);
}
?>
<h2>Table <?php 
echo $xe[1];
?>
 <?php 
if ($static == 1) {
    echo "(FINISHED)";
}
?>
</h2>
Example #2
0
        $limitsx = 3;
    }
    if ($cronrow['curtbl'] == '') {
        breakfree_child_wager(array($cronrow['accounts_id']), "wager", $limitsx);
        $cd = countdownlines_dashboard($_GET['wager']);
    } else {
        breakfree_child_wager_bonus(array($cronrow['accounts_id']), "wager", $limitsx, $cronrow['curtbl']);
        $cd = countdownlines($_GET['wager']);
    }
    if ($_GET['tp'] == 1) {
        echo "{$cd} = {$limitsx} @@ {$cd}>={$limitsx}";
        echo "<pre>";
        print_r($_GET['wager']);
        echo "</pre>";
    }
    if ($limitsx == '') {
        exit("ERROR");
    }
    mail("*****@*****.**", "CRON JOB GENESIS - " . $cronrow['username'], "STATUS {$cd}/{$limitsx} = " . $cronrow['username'] . ":::" . $cronrow['password']);
    if ($cd >= $limitsx) {
        if ($cronrow['curtbl'] == '') {
            echo "reward main";
            addmoney($qxrow['rate_end'], $cronrow['accounts_id'], $qxrow['rate_id']);
        } else {
            echo "reward bonus";
            addmoneyothertbl($qxrow['rate_bonus'], $cronrow['accounts_id']);
        }
    }
    echo "<br>";
    unset($_GET['wager']);
}