📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
firmarehberiv1.demodesign.com.tr
/
ajax
📝
sv_uye_kayit.php
← Geri Dön
<?php define('INC', true); require_once("../include/functions.php"); require_once("../system/class-user-function.php"); require_once("../system/csrf.class.php"); require_once("../system/class-crypt.php"); require_once("../system/class.sendmail.php"); require_once("../system/class.iletimerkezi.php"); sec_session_start(); $csrf = new csrf(); $simpleCrypt = new SimpleCrypt; // Generate Token Id and Valid $token_id = $csrf->get_token_id(); $token_value = $csrf->get_token($token_id); $rasgele = rand(0,9999999); $kod = md5($rasgele); /***************************** ####### ********************************/ if(isset($_POST)) { if(!$csrf->check_valid('post')) { echo '<div class="alert alert-danger"> <strong>Hata!</strong> Token hatası oluştu, lütfen sayfayı yenileyerek tekrar deneyin. </div>'; }else{ if(empty($_POST['adsoyad']) || empty($_POST['email']) || empty($_POST['gsmno']) || empty($_POST['password'])){ echo '<div class="alert alert-danger"> <strong>Hata!</strong> Geçersiz alan hatası oluştu, lütfen eksik bilgi bırakmadan tekrar deneyin. </div>'; }else{ $kontrol = $db->table('dbo_kullanici')->where('uye_mail','=',$_POST['email'])->orWhere('uye_gsm','=',$_POST['gsmno'])->getAll(); if($db->numRows()>0){ echo '<div class="alert alert-danger"> <strong>Hata!</strong> Bu bilgiler ile kayıtlı bir kullanıcı mevcut. </div>'; }else{ /**************************************************************************/ if(ayar('site_dogrulama') == 'MAIL'){ $data = [ 'uye_adi_soyadi' => guvenlik($_POST['adsoyad']), 'uye_mail' => guvenlik($_POST['email']), 'uye_sifre' => sha1(sha1(sha1($_POST['password']))), 'uye_gsm' => guvenlik($_POST['gsmno']), 'uye_tipi' => $_POST['uyetip'], 'uye_dogrulama' => $kod, 'uye_kayit_tarih' => $tarih ]; if(Mailgonder('Üyelik Aktivasyon','Sitemize üye olduğunuz için teşekkür ederiz Sn.'.$_POST['adsoyad'].' lütfen <a href="'.$site.'/aktivasyon/?kod='.$kod.'" style="font-weight:bold;">BURAYA TIKLAYIN</a><br>ya da '.$site.'/aktivasyon/?kod='.$kod.' bu bağlantıyı adres satırına yapıştırarak giriş yapın.',$_POST['email'])){ echo '<div class="alert alert-success"> <strong>Teşekkürler</strong> Lütfen mail adresinize gelen doğrulamayı yapın. </div> <meta http-equiv="refresh" content="3;URL='.$site.'/" />'; $isle = $db->table('dbo_kullanici')->insert($data); }else{ echo '<div class="alert alert-danger"> <strong>Hata!</strong> Aktivasyon maili gönderilemedi. </div>'; } } /**************************************************************************/ if(ayar('site_dogrulama') == 'SMS'){ $data = [ 'uye_adi_soyadi' => guvenlik($_POST['adsoyad']), 'uye_mail' => guvenlik($_POST['email']), 'uye_sifre' => sha1(sha1(sha1($_POST['password']))), 'uye_gsm' => guvenlik($_POST['gsmno']), 'uye_tipi' => $_POST['uyetip'], 'uye_dogrulama' => $rasgele, 'uye_kayit_tarih' => $tarih ]; $sms = new Sms(); $sms->send(ayar('sms_kadi'),ayar('sms_sifre'),'Doğrulama Kodu : '.$rasgele.'',$_POST['gsmno'],ayar('sms_baslik')); echo '<div class="alert alert-success"> <strong>Teşekkürler</strong> Sms doğrulama alanına yönlendiriliyorsunuz. </div> <meta http-equiv="refresh" content="3;URL=uye-sms/" />'; $isle = $db->table('dbo_kullanici')->insert($data); } /**************************************************************************/ if(ayar('site_dogrulama') == 'ADMIN'){ $data = [ 'uye_adi_soyadi' => guvenlik($_POST['adsoyad']), 'uye_mail' => guvenlik($_POST['email']), 'uye_sifre' => sha1(sha1(sha1($_POST['password']))), 'uye_gsm' => guvenlik($_POST['gsmno']), 'uye_tipi' => $_POST['uyetip'], 'uye_dogrulama' => '0', 'uye_kayit_tarih' => $tarih ]; echo '<div class="alert alert-success"> <strong>Teşekkürler</strong> Yönetici üyeliğinizi onayladıktan sonra giriş yapabilirsiniz. </div> <meta http-equiv="refresh" content="3;URL='.$site.'" />'; $isle = $db->table('dbo_kullanici')->insert($data); } /**************************************************************************/ if(ayar('site_dogrulama') == 'OTO'){ $data = [ 'uye_adi_soyadi' => guvenlik($_POST['adsoyad']), 'uye_mail' => guvenlik($_POST['email']), 'uye_sifre' => sha1(sha1(sha1($_POST['password']))), 'uye_gsm' => guvenlik($_POST['gsmno']), 'uye_tipi' => $_POST['uyetip'], 'uye_dogrulama' => 'Yapildi', 'uye_onay' => '1', 'uye_durum' => '1', 'uye_kayit_tarih' => $tarih ]; echo '<div class="alert alert-success"> <strong>Teşekkürler</strong> Firma girişi yapabilirsiniz, lütfen bekleyin. </div> <meta http-equiv="refresh" content="3;URL='.$site.'" />'; $isle = $db->table('dbo_kullanici')->insert($data); } /**************************************************************************/ }}}} ?>
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula