📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
gorevyapscriptiv2.demodesign.com.tr
📝
referans.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">Referans</h4> </div> <div class="card-body"> <div class="row"> <div class="col-md-12"> <div class="alert alert-primary"> <strong>BİLGİ!</strong> Referanslarınızın yüklemelerinden <?=$reforan;?>% kazanç sağlarsınız! </div> </div> <div class="col-md-8 col-8"> <textarea id="text" class="form-control" style="width:100%" cols="30" rows="0" value="http://<?=$_SERVER['SERVER_NAME'];?>/register.php?ref=<?php echo $userid; ?>" disabled="">http://<?=$_SERVER['SERVER_NAME'];?>/register.php?ref=<?php echo $userid; ?></textarea><br> </div> <div class="col-md-4 col-4"> <button onclick="copy()" class="btn btn-primary btn-round" style="width:100%;height:50px;margin-left:-10px">Kopyala</button> </div> <div class="col-md-12"> <hr> </div> </div> </div> </div> </div> </div> <div class="row"> <?php $animals = mysqli_query($connect, "SELECT * FROM data_users WHERE ref = '$userid' ORDER BY id DESC "); foreach ($animals as $animall) { //REF GELİR HESAPLA $refid = $animall['id']; $say2R = mysqli_query($connect, "SELECT SUM(tutar) as toplam FROM yatirimlist WHERE userid = $refid "); $yazdir2R = mysqli_fetch_array($say2R); $totalYatRef = $yazdir2R['toplam']; $hesapYap = ($totalYatRef * $reforan) / 100; echo ' <div class="col-xl-3 col-xxl-4 col-lg-6 col-sm-6 "> <div class="widget-stat card"> <div class="card-body p-4"> <div class="media ai-icon"> <span class="mr-3 bgl-primary text-primary"> <!-- <i class="ti-user"></i> --> <svg id="icon-customers" xmlns="http://www.w3.org/2000/svg" width="30" height="30" viewBox="0 0 24 24" fill="none" stroke="currentColor" stroke-width="2" stroke-linecap="round" stroke-linejoin="round" class="feather feather-user"> <path d="M20 21v-2a4 4 0 0 0-4-4H8a4 4 0 0 0-4 4v2"></path> <circle cx="12" cy="7" r="4"></circle> </svg> </span> <div class="media-body"> <p class="mb-1">'.$animall['username'].'</p> <h5 class="mb-0">'.$animall['bakiye'].' TL</h5> <h6 class="mb-0">Kazanç : '.$hesapYap.' TL</h6> <hr> </div> </div> </div> </div> </div> '; } ?> </div> </div> </div> <!--********************************** Content body end ***********************************--> <?php include ('system/inc/footer.php'); ?> <script type="text/javascript"> function copy(){ var text = document.getElementById('text'); var range = document.createRange(); range.selectNode(text); window.getSelection().addRange(range); document.execCommand('copy'); } </script> </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