📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
takiaksesuar.demodesign.com.tr
/
admin
/
inc
📝
odeme-yontem.php
← Geri Dön
<?php if(!in_array(16,$yetki)){ die('<meta http-equiv="refresh" content="0;url='.$site.'admin">'); } $_title = $dil_kontrol['baslik'].' - Ödeme Yöntemleri'; if($_POST){ $kontrol = $db->query("SELECT * FROM odeme_ayar WHERE dil = '{$dil}' LIMIT 1")->fetch(PDO::FETCH_ASSOC); if($kontrol){ $guncelle = $db->prepare("UPDATE odeme_ayar SET iyzico_setApiKey = ?, iyzico_setSecretKey = ?, paytr_merchant_id = ?, paytr_merchant_key = ?, paytr_merchant_salt = ?, shopier_username = ?, shopier_password = ?, stripe_setApiKey = ?, stripe_setClientId = ?, banka_havalesi = ?, online_kredi_karti = ?, kapida_odeme = ?, kapida_odeme_kur_tip = ?, kapida_odeme_oran = ?, kapida_kredi_odeme = ?, kapida_kredi_odeme_kur_tip = ?, kapida_kredi_odeme_oran = ?, sanal_pos = ? WHERE dil = ?"); $guncelle = $guncelle->execute(array($_POST['iyzico_setApiKey'],$_POST['iyzico_setSecretKey'],$_POST['paytr_merchant_id'],$_POST['paytr_merchant_key'],$_POST['paytr_merchant_salt'],$_POST['shopier_username'],$_POST['shopier_password'],$_POST['stripe_setApiKey'],$_POST['stripe_setClientId'],$_POST['banka_havalesi'],$_POST['online_kredi_karti'],$_POST['kapida_odeme'],$_POST['kapida_odeme_kur_tip'],$_POST['kapida_odeme_oran'],$_POST['kapida_kredi_odeme'],$_POST['kapida_kredi_odeme_kur_tip'],$_POST['kapida_kredi_odeme_oran'],$_POST['sanal_pos'],$dil)); if($guncelle){ $mesaj = array('İşlem Başarılı','Güncelleme İşleminiz Başarı İle Gerçekleşti','success'); echo '<meta http-equiv="refresh" content="2;url='.$dil.'/'.$sayfa.'">'; }else{ $mesaj = array('İşlem Başarısız','Güncelleme İşlemi Sırasında Bir Hata Oluştu','error'); } }else{ print_r($_POST); $ekle = $db->prepare("INSERT INTO odeme_ayar SET dil = ?, iyzico_setApiKey = ?, iyzico_setSecretKey = ?, paytr_merchant_id = ?, paytr_merchant_key = ?, paytr_merchant_salt = ?, shopier_username = ?, shopier_password = ?, stripe_setApiKey = ?, stripe_setClientId = ?, banka_havalesi = ?, online_kredi_karti = ?, kapida_odeme = ?, kapida_odeme_kur_tip = ?, kapida_odeme_oran = ?, sanal_pos = ?"); $ekle = $ekle->execute(array($dil,$_POST['iyzico_setApiKey'],$_POST['iyzico_setSecretKey'],$_POST['paytr_merchant_id'],$_POST['paytr_merchant_key'],$_POST['paytr_merchant_salt'],$_POST['shopier_username'],$_POST['shopier_password'],$_POST['stripe_setApiKey'],$_POST['stripe_setClientId'],$_POST['banka_havalesi'],$_POST['online_kredi_karti'],$_POST['kapida_odeme'],$_POST['kapida_odeme_kur_tip'],$_POST['kapida_odeme_oran'],$_POST['sanal_pos'])); if($ekle){ $mesaj = array('İşlem Başarılı','Veri Ekleme İşleminiz Başarı İle Gerçekleşti','success'); }else{ $mesaj = array('İşlem Başarısız','Veri Ekleme İşlemi Sırasında Bir Hata Oluştu','error'); } } } $duzenle = $db->query("SELECT * FROM odeme_ayar WHERE dil = '{$dil}' LIMIT 1")->fetch(PDO::FETCH_ASSOC); if($duzenle){ ?> <script type="text/javascript"> $(function(){ $('select[name="banka_havalesi"] option[value="<?php echo $duzenle['banka_havalesi']; ?>"]').attr('selected','select'); $('select[name="online_kredi_karti"] option[value="<?php echo $duzenle['online_kredi_karti']; ?>"]').attr('selected','select'); $('select[name="kapida_odeme"] option[value="<?php echo $duzenle['kapida_odeme']; ?>"]').attr('selected','select'); $('select[name="kapida_odeme_kur_tip"] option[value="<?php echo $duzenle['kapida_odeme_kur_tip']; ?>"]').attr('selected','select'); $('select[name="kapida_kredi_odeme"] option[value="<?php echo $duzenle['kapida_kredi_odeme']; ?>"]').attr('selected','select'); $('select[name="kapida_kredi_odeme_kur_tip"] option[value="<?php echo $duzenle['kapida_kredi_odeme_kur_tip']; ?>"]').attr('selected','select'); $('select[name="sanal_pos"] option[value="<?php echo $duzenle['sanal_pos']; ?>"]').attr('selected','select'); }); </script> <?php } ?> <div class="col-md-12 col-xl-12 col-xs-12 col-sm-12"> <div class="card"> <div class="card-body"> <div class="main-content-label mg-b-5"> [$_title] Genel Bilgileri </div> <p style="margin: 0px;">Ekleme, Güncelleme ve Silme İşlemleri Bu Sayfada Yapılmaktadır.</p> <?php include 'inc/dil-yonlendirici.php'; ?> </div> </div> </div> <form action="" method="post" style="float:left;width: 100%;"> <div class="row" style="margin: 0px;"> <div class="col-md-6"> <div class="card"> <div class="card-body"> <div class="main-content-label mg-b-5"> <center><img src="assets/images/iyzico.png" class="img-responsive" style="max-width: 100px;"></center> </div> <div style="float: left;width: 100%;"> <div class="table-responsive"> <table class="table table-bordered mg-b-1 text-md-nowrap"> <tbody> <tr> <th>iyzico_setApiKey</th> <td><input type="text" class="form-control" name="iyzico_setApiKey" placeholder="iyzico_setApiKey" value="<?php echo @$duzenle['iyzico_setApiKey']; ?>"></td> </tr> <tr> <th>iyzico_setSecretKey</th> <td><input type="text" class="form-control" name="iyzico_setSecretKey" placeholder="iyzico_setSecretKey" value="<?php echo @$duzenle['iyzico_setSecretKey']; ?>"></td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="col-md-6"> <div class="card"> <div class="card-body"> <div class="main-content-label mg-b-5"> <center><img src="assets/images/stripe.png" class="img-responsive" style="max-width: 100px;"></center> </div> <div style="float: left;width: 100%;"> <div class="table-responsive"> <table class="table table-bordered mg-b-1 text-md-nowrap"> <tbody> <tr> <th>stripe_setApiKey</th> <td><input type="text" class="form-control" name="stripe_setApiKey" placeholder="stripe_setApiKey" value="<?php echo @$duzenle['stripe_setApiKey']; ?>"></td> </tr> <tr> <th>stripe_setClientId</th> <td><input type="text" class="form-control" name="stripe_setClientId" placeholder="stripe_setClientId" value="<?php echo @$duzenle['stripe_setClientId']; ?>"></td> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="col-md-6"> <div class="card"> <div class="card-body"> <div class="main-content-label mg-b-5"> <center><img src="assets/images/paytr.jpg" class="img-responsive" style="max-width: 100px;"></center> </div> <div style="float: left;width: 100%;"> <div class="table-responsive"> <table class="table table-bordered mg-b-1 text-md-nowrap"> <tbody> <tr> <th>paytr_merchant_id</th> <td><input type="text" class="form-control" name="paytr_merchant_id" placeholder="paytr_merchant_id" value="<?php echo @$duzenle['paytr_merchant_id']; ?>"></td> </tr> <tr> <th>paytr_merchant_key</th> <td><input type="text" class="form-control" name="paytr_merchant_key" placeholder="paytr_merchant_key" value="<?php echo @$duzenle['paytr_merchant_key']; ?>"></td> </tr> <tr> <th>paytr_merchant_salt</th> <td><input type="text" class="form-control" name="paytr_merchant_salt" placeholder="paytr_merchant_salt" value="<?php echo @$duzenle['paytr_merchant_salt']; ?>"></td> </tr> <tr> <th colspan="2"> <center> <h5>Bildirim Url Adresiniz</h5> <span class="badge badge-primary-gradient" style="font-size: 15px; margin-bottom: 20px; padding: 10px 15px;"> <?php echo $site;?>paytr </span> </center> </th> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="col-md-6"> <div class="card"> <div class="card-body"> <div class="main-content-label mg-b-5"> <center><img src="assets/images/shopier.png" class="img-responsive" style="max-width: 100px;"></center> </div> <div style="float: left;width: 100%;"> <div class="table-responsive"> <table class="table table-bordered mg-b-1 text-md-nowrap"> <tbody> <tr> <th>Shopier API Adı</th> <td><input type="text" class="form-control" name="shopier_username" placeholder="Shopier API Adı" value="<?php echo @$duzenle['shopier_username']; ?>"></td> </tr> <tr> <th>Shopier API Şifre</th> <td><input type="text" class="form-control" name="shopier_password" placeholder="Shopier API Şifre" value="<?php echo @$duzenle['shopier_password']; ?>"></td> </tr> <tr> <th colspan="2"> <center> <h5>Bildirim Url Adresiniz</h5> <span class="badge badge-primary-gradient" style="font-size: 15px; margin-bottom: 20px; padding: 10px 15px;"> <?php echo $site;?>shopier </span> </center> </th> </tr> </tbody> </table> </div> </div> </div> </div> </div> <div class="col-md-12"> <div class="card"> <div class="card-body"> <div style="float: left;width: 100%;"> <div class="table-responsive"> <table class="table table-bordered mg-b-1 text-md-nowrap"> <tbody> <tr> <th>Banka Havalesi Kullanılsın mı?</th> <td> <select class="form-control select2" name="banka_havalesi" style="width:100%"> <option value="0">Kapalı</option> <option value="1">Açık</option> </select> </td> </tr> <tr> <th>Online Kredi Kullanılsın mı?</th> <td> <select class="form-control select2" name="online_kredi_karti" style="width:100%"> <option value="0">Kapalı</option> <option value="1">Açık</option> </select> </td> </tr> <tr> <th>Kapı Nakit Ödeme Kullanılsın mı?</th> <td> <select class="form-control select2" name="kapida_odeme" style="width:100%"> <option value="0">Kapalı</option> <option value="1">Açık</option> </select> </td> </tr> <tr> <th>Kapı Nakit Ödeme +Fiyat Kur Tipi</th> <td> <select class="form-control select2" name="kapida_odeme_kur_tip" style="width:100%"> <option value="1">TL</option> <option value="2">$</option> <option value="3">€</option> </select> </td> </tr> <tr> <th>Kapı Nakit Ödeme +Fiyat Oranı</th> <td><input type="text" class="form-control" name="kapida_odeme_oran" placeholder="Kapı Ödeme +Fiyat Oranı" value="<?php echo @$duzenle['kapida_odeme_oran']; ?>" required></td> </tr> <tr> <th>Kapı Kredi Kartı Ödeme Kullanılsın mı?</th> <td> <select class="form-control select2" name="kapida_kredi_odeme" style="width:100%"> <option value="0">Kapalı</option> <option value="1">Açık</option> </select> </td> </tr> <tr> <th>Kapı Kredi Kartı Ödeme +Fiyat Kur Tipi</th> <td> <select class="form-control select2" name="kapida_kredi_odeme_kur_tip" style="width:100%"> <option value="1">TL</option> <option value="2">$</option> <option value="3">€</option> </select> </td> </tr> <tr> <th>Kapı Kredi Kartı Ödeme +Fiyat Oranı</th> <td><input type="text" class="form-control" name="kapida_kredi_odeme_oran" placeholder="Kapı Ödeme +Fiyat Oranı" value="<?php echo @$duzenle['kapida_kredi_odeme_oran']; ?>" required></td> </tr> <tr> <th>Online Kredi Kartı Ödeme Sanal Pos Seçimi</th> <td> <select class="form-control select2" name="sanal_pos" style="width:100%"> <option value="0">Sanal Pos Seçiniz</option> <option value="1">Iyzico</option> <option value="2">Paytr</option> <option value="3">Shopier</option> <option value="4">Stripe</option> </select> </td> </tr> <tr> <th colspan="2"> <center><button class="btn btn-indigo btn-with-icon"><span class="typcn typcn-edit"></span> Değişiklikleri Kaydet</button></center> </th> </tr> </tbody> </table> </div> </div> </div> </div> </div> </div> </form>
💾 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