v2.5.2
Giriş yap

Bu sayfa kullanılamıyor hatası alıyorum(Sorun Çözülmüştür.)

omerfarukbicer
577 defa görüntülendi ve 1 kişi tarafından değerlendirildi

Sorun Çözülmüştür.

merhaba arkadaşlar geçende bu kayıt olma ile ilgili bir soru sordum ama bu seferinki farklı bu sefer dögüye girmiyor sadece sayfa kullanılamıyor diyoe nerde ; hatası yaptım diye tüm kodu inceldim ama bulamadım ve die() denedim tayfun hocam diyer soru mda bana öyle yap sorunlarını daha rahat bulursun dedi ben onu yaptım ama yine sayfa kullanılamıyor dedi bana yardım cı olurmusunuz

<?php
  session_set_cookie_params(360000,'/','.cibza.com');
  session_start();
  ob_start();
  require 'basicdb.php';
  $db = new CibzaDB('localhost' , 'cibzacom_accounts' , 'cibzacom_accounts' , '05302280aA05302280');
  if (!isset($_POST['controller_next'])) {
    header('Location: https://accounts.cibza.com/signup-beta/' . $contiune);
  }else {
    die('1');
    if(isset($_GET['contiune'])){
      $contiune = '?contiune='.$_GET['contiune'];
    }else {
      $contiune = '';
    }
    if (isset($_POST['beta_first_name']) && 
        isset($_POST['beta_last_name']) && 
        isset($_POST['beta_birthday']) && 
        isset($_POST['beta_gender']) && 
        isset($_POST['beta_email']) && 
        isset($_POST['beta_phone'])
       ) {
      die('2');
      $beta_first_name = $_POST['beta_first_name'];
      $beta_last_name = $_POST['beta_last_name'];
      $beta_birthday = $_POST['beta_birthday'];
      $beta_gender = $_POST['beta_gender'];
      $beta_email = $_POST['beta_email'];
      $beta_phone = $_POST['beta_phone'];
      $beta_password = $_POST['beta_password'];
      $beta_repassword = $_POST['beta_repassword'];

      if ($beta_password == $beta_repassword) {
        die('3');
        $color = substr(md5(uniqid()) ,0 ,6);
        $url = 'https://ui-avatars.com/api/?size=128&font-size=0.6&length=1&background='.$color.'&bold=true&color=ffffff&name=' . $beta_first_name . ' ' . $beta_last_name;
        // Resim Yolu(Kayıt yolu)
        $uniqid = uniqid();
        $img = '../../assets/usercontent/'.sha1(md5(sha1(md5($uniqid)))).'.png';
        // Resmi Kaydet
        file_put_contents($img, file_get_contents($url));

        $insert_accounts = $db->insert('accounts')
                              ->set([
                                'accounts_first_name' => $beta_first_name,
                                'accounts_last_name' => $beta_last_name,
                                'accounts_email' => $beta_email,
                                'accounts_user_images' => sha1(md5(sha1(md5($uniqid)))).'.png',
                                'accounts_phone' => $beta_phone,
                                'accounts_gender' => $beta_gender,
                                'accounts_birthday' => $beta_birthday,
                                'accounts_password' => sha1(md5(sha1($beta_password)))
                              ]);
        if ($insert_accounts){
          die('4');
          if ($contiune == '') {
            header('Location: https://www.cibza.com');
          }else {
            header('Location: ' . $contiune);
          }
          $_SESSION['MM_Username'] = $db->lastId();
        }else {
          header('Location: https://accounts.cibza.com/signup-beta/' . $contiune);
        }
      }else {
        header('Location: https://accounts.cibza.com/signup-beta/' . $contiune);
      }
    }else {
      header('Location: https://accounts.cibza.com/signup-beta/' . $contiune);
    }
  }
?>

Daha fazla markdown örneğine buraya tıklayarak ulaşabilirsin!

Cevap yaz
Cevaplar (2)
omerfarukbicer
1263 gün önce

Hocam sorun çözülmüştür basicdb.php dosyasını yüklemeyi unutmuşum kodu da başkasına lazım olur diye bıraktım orda tasarımıda kendisi yapar artık

suphi
1264 gün önce

hocam yanılmıyorsam şurda bir hata var

}else {
      header('Location: https://accounts.cibza.com/signup-beta/' . $contiune);
    }
  }
?>

if else { karışıklığı olmuş galiba
( { ) ( } ) doğru sayıda kullandığınızdan emin olun.