📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
gorevyapscriptiv2.demodesign.com.tr
📝
parayatir.php
← Geri Dön
<?php include ('config.php'); include ('system/inc/sitedata.php'); if (!isset($_SESSION['login'])){ echo " <meta http-equiv='refresh' content='1;URL=login.php'> "; exit(); } ?> <!DOCTYPE html> <html lang="en"> <?php include ('system/inc/header.php'); ?> <!--********************************** Content body start ***********************************--> <div class="content-body"> <div class="container-fluid"> <div class="row"> <div class="col-xl-12 col-xxl-12 col-lg-12 col-12"> <div class="card"> <div class="card-header border-0 pb-0"> <h4 class="card-title">Hesabına Para Yatır</h4> </div> <div class="card-body"> <?php if(isset($_GET['kod'])){ $gelenKod = $_GET['kod']; } if(isset($_GET['durum']) AND $_GET['durum'] == 'olumlu'){ ?> <div class="alert alert-success"> <strong>BAŞARILI!</strong> #<?=$gelenKod;?> Numaralı Siparişiniz Başarıyla Onaylandı ve Hesabınıza Yüklendi. </div> <?php }elseif(isset($_GET['durum']) AND $_GET['durum'] == 'olumsuz'){ ?> <div class="alert alert-danger"> <strong>HATA!</strong> #<?=$gelenKod;?> Numaralı Siparişiniz Oluşturulurken Bir Problem Meydana Geldi. </div> <?php } ?> <?php if(isset($_GET['tutar'])){ ?> <?php $girilentutar = $_GET['tutar']; $randdeger = rand(111111,999999); $queryKayit = mysqli_query($connect, "INSERT INTO yatirimlist (userid,tutar,randid) VALUES ('$userid','$girilentutar',$randdeger)"); include 'shopierAPI.php'; $shopier = new Shopier(''.$shopierkullanici.'', ''.$shopiersifre.''); $shopier->setBuyer([ 'id' => ''.$randdeger.'', 'paket' => 'VIP Paket', 'first_name' => ''.$adsoyad.'', 'last_name' => ''.$adsoyad.'', 'email' => ''.$email.'', 'phone' => '05555555555']); $shopier->setOrderBilling([ 'billing_address' => 'Cemal Gürsel Caddesi No:544564', 'billing_city' => 'İstanbul', 'billing_country' => 'Türkiye', 'billing_postcode' => '34000', ]); $shopier->setOrderShipping([ 'shipping_address' => 'Cemal Gürsel Caddesi No:544564', 'shipping_city' => 'İstanbul', 'shipping_country' => 'Türkiye', 'shipping_postcode' => '34000', ]); die($shopier->run('544546545', $girilentutar, 'https://siteadi.com/shopierNotify.php')); ?> <?php }else{ ?> <form action="parayatir.php" method="GET"> <label> Tutar Giriniz </label> <input name="tutar" class="form-control" type="number" value="1"> <button class="btn btn-success" style="width:100%;margin-top:10px"> YÜKLEME YAP</button> </form> <hr> <div class="alert alert-success"> <strong>BİLGİ!</strong> Tüm Yatırımlarınızı ve Durumlarını Burada Görebilirsiniz! </div> <div class="table-responsive"> <table class="table table-hover mb-0"> <thead> <tr> <th>#</th> <th>Tutar</th> <th>Durum</th> </tr> </thead> <tbody> <?php $query_r = mysqli_query($connect, "SELECT * FROM yatirimlist WHERE userid = '$userid' ORDER BY id DESC"); if (mysqli_affected_rows($connect)){ $i = 1; while ($fetch_r = mysqli_fetch_array($query_r)){ if($fetch_r['durum'] == 0){ $durumYaz = '<span class="badge badge-primary">BEKLEMEDE</span>'; } if($fetch_r['durum'] == 1){ $durumYaz = '<span class="badge badge-success">TAMAMLANDI</span>'; } if($fetch_r['durum'] == 2){ $durumYaz = '<span class="badge badge-danger">İPTAL</span>'; } ?> <tr class="active"> <td class="text-success"><?php echo $fetch_r['randid']; ?></td> <td class="text-success"><?php echo $fetch_r['tutar']; ?> TL</td> <td><?=$durumYaz;?></td> </tr> <?php $i++;} }else{ ?> <tr class="active"> <th scope="row">0</th> <td>Yatırım</td> <td>Yok</td> </tr> <?php } ?> </tbody> </table> </div> <?php }?> </div> </div> </div> </div> </div> </div> <!--********************************** Content body end ***********************************--> <?php include ('system/inc/footer.php'); ?> </body> </html>
💾 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