Created
January 20, 2017 16:17
-
-
Save anonymous/a730e2eff142b5d7d459e9215d65cbe9 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
session_start(); | |
if (strlen($_GET['kod']) < 6){ | |
echo 'Girmiş olduğunuz doğrulama kodu <strong>6</strong> karakterden oluşmalıdır!<br><br>'; | |
header("refresh:3;url=index.php"); | |
die("Doğrulama alanına yönlendiriliyorsunuz lütfen bekleyiniz...</a>"); | |
}else if (isset($_GET['kod'])) { | |
if (strtoupper($_GET['kod']) == $_SESSION['dogrulamaKodu']) { | |
echo '<h4>Tebrikler, Doğru kodu girdiniz: <code>' . $_GET['kod'] . '</code></h4>'; | |
} else { | |
echo '<h4>Hatali giris yaptınız!</h4> | |
Girmiş olduğunuz <code><strong style="font-size: x-large">' . $_GET['kod'] . '</strong></code>, doğrulama kodu olan | |
' . $_SESSION['dogrulamakodu'] . ' ile eşleşemedi.<br>'; | |
header("refresh:5;url=index.php"); | |
die("5 saniye sonra doğrulama alanına gideceksiniz. Bu süreyi beklememek için <a href='index.php'> | |
buraya tıklayın</a>"); | |
} | |
}else { | |
echo "Üzgünüm sanırım birşeyler yolunda gitmedi..."; | |
} | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment