📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
takiaksesuar.demodesign.com.tr
/
admin
/
inc
📝
smtp.php
← Geri Dön
<?php if(!in_array(17,$yetki)){ die('<meta http-equiv="refresh" content="0;url='.$site.'admin">'); } $_title = $dil_kontrol['baslik'].' - SMTP Ayarları'; if($_POST){ if(empty($_POST['_ssl'])){ $_POST['_ssl'] = 0; } if(empty($_POST['guvenlik'])){ $_POST['guvenlik'] = 0; } $kontrol = $db->query("SELECT * FROM smtp WHERE dil = '{$dil}' LIMIT 1")->fetch(PDO::FETCH_ASSOC); if($kontrol){ $guncelle = $db->prepare("UPDATE smtp SET host = ?, email = ?, sifre = ?, _ssl = ?, port = ?, guvenlik = ? WHERE dil = ?"); $guncelle = $guncelle->execute(array($_POST['host'],$_POST['email'],$_POST['sifre'],$_POST['_ssl'],$_POST['port'],$_POST['guvenlik'],$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{ $ekle = $db->prepare("INSERT INTO smtp SET dil = ?, host = ?, email = ?, sifre = ?, _ssl = ?, port = ?, guvenlik = ?"); $ekle = $ekle->execute(array($dil,$_POST['host'],$_POST['email'],$_POST['sifre'],$_POST['_ssl'],$_POST['port'],$_POST['guvenlik'])); 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 smtp WHERE dil = '{$dil}' LIMIT 1")->fetch(PDO::FETCH_ASSOC); if($duzenle){ ?> <script type="text/javascript"> $(function(){ $('select[name="_ssl"] option[value="<?php echo $duzenle['_ssl']; ?>"]').attr('selected','select'); $('select[name="guvenlik"] option[value="<?php echo $duzenle['guvenlik']; ?>"]').attr('selected','select'); }); </script> <?php } ?> <div class="col-md-8 col-xl-8 offset-md-2 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> <div class="col-md-8 col-xl-8 offset-md-2 col-xs-12 col-sm-12"> <div class="card"> <div class="card-body"> <div class="main-content-label mg-b-5">[$_title]</div> <p class="mg-b-20">Sitenizin İlgili Dilde ki Bilgileri Güncelleyebilirsiniz.</p> <div style="float: left;width: 100%;"> <div id="queue"></div> <form action="" method="post"> <div class="table-responsive"> <table class="table table-bordered mg-b-1 text-md-nowrap"> <tbody> <tr> <th>SMTP Host</th> <td><input type="text" class="form-control" name="host" placeholder="SMTP Host" value="<?php echo @$duzenle['host']; ?>" required></td> </tr> <tr> <th>Email Adres</th> <td><input type="text" class="form-control" name="email" placeholder="Email Adres" value="<?php echo @$duzenle['email']; ?>"></td> </tr> <tr> <th>Email Şifre</th> <td><input type="text" class="form-control" name="sifre" placeholder="Email Şifre" value="<?php echo @$duzenle['sifre']; ?>"></td> </tr> <tr> <th>SMTP Port</th> <td><input type="text" class="form-control" name="port" placeholder="SMTP Port" value="<?php echo @$duzenle['port']; ?>"></td> </tr> <tr> <th>SMTP SSL</th> <td> <select class="form-control select2" name="_ssl" style="width:100%"> <option value="0">SSL Kullanma</option> <option value="1">SSL Kullan</option> </select> </td> </tr> <tr> <th>SMTP Düşük Güvenlik Modeli</th> <td> <select class="form-control select2" name="guvenlik" style="width:100%"> <option value="0">Düşük Güvenlik Kullanma</option> <option value="1">Düşük Güvenlik Kullan</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> </form> </div> </div> </div> </div> <div id="queue"></div> <style type="text/css"> table tr .row{border-bottom: none !important;padding: 0px !important;} table tr i{float: left; padding: 4px 5px; background: #d33774; color: #fff; margin-right: 5px; border-radius: 5px;} </style>
💾 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