if ($_POST['shit']) {
    if ($_POST['user'] && $_POST['password'] && $_POST['email']) {
        $str = strlen($_POST['user']);
        if ($str >= 3 && $str <= 35) {
            if (filter_var($_POST['email'], FILTER_VALIDATE_EMAIL)) {
                echo "<h3>EVERYTHING IS RIGHT O_O</h3>";
            } else {
                echo srserr("Please enter a real email address.");
                echo $form;
            }
        } else {
            echo srserr("Usernames must be longer than 3 characters, and less than 35 characters");
            echo $form;
        }
    } else {
        echo srserr('You missed something out, go back and check it again');
        echo $form;
    }
} else {
    echo $form;
}
?>
            </form>
          </div>
<?php 
include "core/sidebar.php";
?>
        </div>
      </div>

<?php 
示例#2
0
                die;
            } else {
                echo srserr("Uh oh, looks like we haven't got enough donations to pay out. The round will continue until there's enough to pay out.");
                echo "</center></div>";
                include 'templates/sidebar.php';
                include 'templates/footer.php';
                die;
            }
        }
        //echo "printan.";
        //echo "printed.";
        // echo "</table>";
        echo "You will get your LTC at the end of this round<br />There are {$rows} submitted addresses in this round!<br>";
        echo "<br>If you want to donate to the Faucet: {$donaddress} (recv: {$don})";
    }
} else {
    // Wrong answer, you may display a new AdsCaptcha and add an error message
    echo srserr("INVALID CAPTCHA. <a href='/index.php'>Go back</a>");
}
?>
</center>
</div>
<?php 
include 'templates/sidebar.php';
include 'templates/footer.php';
?>




            $res = mysql_fetch_array($q);
            $list = mysql_query("SELECT * FROM dailyltc");
            $coins_in_account = $btclient->getbalance("FaucetDonations", 0);
            if ($coins_in_account >= $res['roundltc'] * $rows) {
                while ($listw = mysql_fetch_array($list)) {
                    $btclient->sendfrom("FaucetDonations", $listw['ltcaddress'], $res['roundltc']);
                }
                echo srsnot("Congratulations, you were the placed in the round, the round has been reset and payouts have been sent.");
                mysql_query("TRUNCATE dailyltc");
                mysql_query("UPDATE round set round=round+1");
                $totalc = $res['roundltc'] * $rows;
                mysql_query("UPDATE dailytotal set total=total+{$totalc}");
                echo "</center></div>";
                die;
            } else {
                echo srserr("Uh oh, looks like we haven't got enough donations to pay out. The round will continue until there's enough to pay out.");
                echo "</center></div>";
                die;
            }
        }
        //echo "printed.";
        // echo "</table>";
        echo "You will get your CCN at the end of this round<br />There are {$rows} submitted addresses in this round!<br>";
        echo "<br>If you want to donate to the Faucet: {$donaddress} (recv: {$don})";
    }
} else {
    // Wrong answer, you may display a new AdsCaptcha and add an error message
    die("<h1>The reCAPTCHA wasn't entered correctly.</h1> Go <a href='http://cannacoin.cc/faucet'>back</a> and try it again." . "(reCAPTCHA said: " . $resp->error . ")");
}
?>
</center>
            }
        }
        $time = time();
        mysql_query("INSERT INTO dailyltc (ltcaddress, ip, time) SELECT * FROM (SELECT '{$ltcaddress}', '{$ip}', '{$time}') AS tmp\n                WHERE NOT EXISTS (SELECT ip FROM dailyltc WHERE ip = '{$ip}') LIMIT 1;") or die(mysql_error());
        mysql_query("INSERT INTO subtotal (ltcaddress, ip) VALUES('{$ltcaddress}', '{$ip}' ) ") or die(mysql_error());
        $coins_in_account = $btclient->getbalance();
        if ($coins_in_account > $payout) {
            $btclient->sendtoaddress($ltcaddress, $payout);
            echo srsnot("Congratulations, you have now been sent " . $payout . " ABY. Come back tomorrow for the next round.");
            echo "</center></div>";
            include 'templates/sidebar.php';
            include 'templates/footer.php';
            die;
        } else {
            echo srserr("Looks like we haven't got enough donations to pay out. The faucet will continue once the faucet has received more funds.");
            echo "</center></div>";
            include 'templates/sidebar.php';
            include 'templates/footer.php';
            die;
        }
    }
} else {
    // Wrong answer, you may display a new AdsCaptcha and add an error message
    echo srserr("Invalid CAPTCHA. <a href='/index.php'>Go back</a>");
}
?>
    </center>
  </div>
  <?php 
include 'templates/sidebar.php';
include 'templates/footer.php';