Exemplo n.º 1
0
<input type="password" name="pass" placeholder="&#149;&#149;&#149;&#149;&#149;&#149;&#149;";
<p></p>
<input type="submit" value="Register" name="submit" id="Button"/>
</form></center>
   </div>
</div>
</body>
</html>
<?php 
if (isset($_POST["submit"])) {
    $activated = "0";
    $BTC = "0";
    $user = SecurityCheck($_POST['user']);
    $email = SecurityCheck($_POST['email']);
    $pass = PasswordCheck($_POST['pass']);
    $btcadd = BitcoinAddressCheck($_POST['btcadd']);
    if (preg_match("/[^A-Za-z0-9@.]/", $pass)) {
        echo '<script language="javascript">';
        echo 'alert("Only Letters or Numbers are allowed")';
        echo '</script>';
    } else {
        if (!empty(SecurityCheck($_POST['user']) && SecurityCheck($_POST['pass']) && SecurityCheck($_POST['email']) && SecurityCheck($_POST['btcadd'])) && filter_var(SecurityCheck($_POST['email']), FILTER_VALIDATE_EMAIL)) {
            if ($user == "fd87yr6t3rwhuifsdho8yu3r" || $email == "fd87yr6t3rwhuifsdho8yu3r" || $pass == "fd87yr6t3rwhuifsdho8yu3r" || $btcadd == "fd87yr6t3rwhuifsdho8yu3r") {
                $SQLinjectDetection = 1;
            } else {
                $SQLinjectDetection = 0;
            }
            if ($SQLinjectDetection == 0) {
                $nitid = rand();
                $md5pass = md5(md5(md5($pass . $PasswordEncryptText1 . $nitid) . $PasswordEncryptText2) . $PasswordEncryptText3);
                $activationid = rand();
Exemplo n.º 2
0
			<span></span>
		</div>

	</div>
<div id="slideshow">
   <div id="container" style="color:#ccc;background-image: url(/image/1.jpg);background-size:100%;">
	 <center><h1 style="color:#ccc;">Change Bitcoin Address</h1>	 <form action="" method="POST">
<input type="text" name="old" placeholder="Old Bitcoin Address">
<input type="text" name="new" placeholder="New Bitcoin Address">
<p></p>
<center><input type="submit" value="Change Bitcoin Address" name="submit" id="Button" /></center>
</form></center>
<?php 
    if (isset($_POST["submit"])) {
        $oldbtc = BitcoinAddressCheck($_POST['old']);
        $new = BitcoinAddressCheck($_POST['new']);
        if (!empty($oldbtc) && !empty($new)) {
            $result = mysql_query("SELECT *from members WHERE user='******'");
            $name = $row = mysql_fetch_array($result);
            if ($name['btcadd'] == $oldbtc) {
                if ($new != $name['btcadd']) {
                    mysql_query("UPDATE members set btcadd='" . $new . "' WHERE user='******'");
                    if (mail($name['email'], $websitename . " - Bitcoin Address Changed", "Your Bitcoin Address has been changed to " . $new . ".\n If wasn't you please contact the administrator.")) {
                        echo '<h3>Bitcoin Address changed</h3>';
                        ?>
<META http-equiv="refresh" content="1;URL=/account/">
<?php 
                    }
                } else {
                    echo '<h3>The new Bitcoin Address is the same as the old one</h3>';
                }