Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // KAYIT FORMU
- $islem = $_GET['islem'];
- if($islem == ''){
- echo'
- <form name="form1" method="post" action="index.php?sayfa=kayit&islem=sonuc">
- <table class="sample" align="center">
- <tr>
- <td class="text" align="right" Width="50%">Username</td>
- <td><input class="text" name="kulad" type="text" id="kulad"></td>
- </tr>
- <tr>
- <td class="text" align="right">Password</td>
- <td><input class="text" name="pass" type="password" id="pass"></td>
- </tr>
- <tr>
- <td class="text" align="right">Confirm Password </td>
- <td><input class="text" name="pass2" type="password" id="pass2"></td>
- </tr>
- <tr>
- <td class="text" align="right">E-Mail</td>
- <td><input class="text" name="mail" type="text" id="mail"></td>
- </tr>
- <tr>
- <td class="text" align="right">Secret Question </td>
- <td><label>
- <select name="gsoru" id="gsoru">
- <option value="1">What is your mothers maiden name?</option>
- <option value="2">What was the name of your first school?</option>
- <option value="3">Who is your favorite super hero?</option>
- <option value="4">What is the name of your first pet?</option>
- <option value="5">What was the first video game you played?</option>
- <option value="6">What city was your mother born in?</option>
- <option value="7">What is your favorite TV show?</option>
- </select>
- </label></td>
- </tr>
- <tr>
- <td class="text" align="right">Secret Answer</td>
- <td><input class="text" class="text" name="gcvp" type="text" id="gcvp"></td>
- </tr>
- <tr>
- <tr>
- <td class="text" align="right">Code</td>
- <td><img src="3nqiN & seneRioR/img.php" /></td>
- </tr>
- <tr>
- <td class="text"align="right">Enter Code</td>
- <td><input class="text" name="formHC" type="text" id="formHC"></td>
- </tr>
- <tr>
- <td class="text"align="right">Enter WareHouse Password:</td>
- <td><input class="text" name="wpw" type="text" id="wpw"></td>
- </tr>
- <tr>
- <td class="text"align="right">Enter WareHouse Password Again:</td>
- <td><input class="text" name="c_wpw" type="text" id="c_wpw"></td>
- </tr>
- <tr>
- <td class="text"align="center" colspan="2">
- <label><input class="button" type="submit" name="button" id="button" value="Register"/></label>
- </td>
- </tr>
- </table>
- </form>';
- }elseif ($islem == 'sonuc') {
- // KAYIT ISLEMI SONUCU
- $account = trim(guvenlik($_POST['kulad']));
- $pass = trim(guvenlik($_POST['pass']));
- $pwh = md5($pass);
- $pass2 = trim(guvenlik($_POST['pass2']));
- $gsoru = trim(guvenlik($_POST['gsoru']));
- $wpw = $_POST['wpw'];
- $c_wpw = $_POST['c_wpw'];
- $gcvp = trim($_POST['gcvp']);
- $mail = $_POST['mail'];
- $formHC = trim(guvenlik($_POST['formHC']));
- $enqin = odbc_exec($conn,"SELECT count(*) FROM TB_USER Where strAccountID = '".$account."'");
- $enqin1 = odbc_result($enqin,1);
- if (($account && $pass && $pass2 && $gsoru && $gcvp && $mail) == '') {
- $msj = 'There was a problem with your registration. A field was left blank.';
- }elseif ($pass <> $pass2) {
- $msj = 'Юifreleriniz Birbiriyle Uyumlu Deрil';
- }elseif ($_POST['formHC'] <> $_SESSION['security_code']) {
- $msj = 'Gьvenlik Kodunu yanlэю Girdiniz.';
- }elseif (!$enqin1 == '') {
- $msj = ''.$account.' Baska Ьye Tarafэndan Kullanэlэyor.';
- }else{
- odbc_exec($conn,"INSERT INTO TB_USER (StrAccountID,StrPasswd,StrSocno,idays,strAuthority,StrSoru,StrYanit,strEmail,StrWarehouseNo,RealPass) VALUES ('".$account."','".$pwh."','1','6','1','".$gsoru."','".$gcvp."','".$mail."','".$wpw."','".$pass."')");
- if($enqin2) {
- Echo '
- <br><center>User Registration Successful!
- <br>
- <br>Login Name : '.$account.'
- <br>
- <br>Password : '.$pass.'
- <br>
- <br>Secret Question : '.$gsoru.'
- <br>
- <br>Answer : '.$gcvp.'
- <br>
- <br>
- <br>Please save your information!</center>';
- }else{
- $msj = 'Эюlem Tamamlanamadэ Hata Var. Lьtfen Bir Sьre Bekledikten Sonra Tekrar Deneyiniz.';
- }
- }
- echo '<br><center>'.$msj.'</center>';
- }
- ?>
Add Comment
Please, Sign In to add comment