📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
makalesatisscripti.demodesign.com.tr
📝
ref.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=index.php'> "; exit(); } ?> <!DOCTYPE html> <html lang="en"> <?php include ('system/inc/header.php'); ?> <div class="main-panel"> <div class="content-wrapper"> <div class="row"> <div class="col-md-12 grid-margin"> <div class="row"> <div class="col-12 col-xl-8 mb-4 mb-xl-0"> <h3 class="font-weight-bold text-primary">Sayın <?=$adsoyad;?></h3> <h6 class="font-weight-normal mb-0">Yeniden seni görmek ne kadar güzel! <span class="text-primary"><?=$site_name;?></span></h6> </div> </div> </div> </div> <div class="row"> <hr> <div class="card card-company-table"> <div class="card-body"> <div class="card card-company-table"> <div class="card-body"> <div class="row"> <div class="col-md-12"> <font class="text-success" style="font-weight: bold;"> REFERANS AYARLARI </font> <div class="alert alert-success"> <strong>DİKKAT!</strong> Referanslarınızın Görev Kazançlarından, %<?=$reforan;?> Oranında Kazanç Sağlarsınız! </div> </div> <div class="col-md-8"> <textarea id="text" class="form-control" style="width:100%;height:45px" 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"> <button onclick="copy()" class="btn btn-primary btn-round" style="width:100%;height:45px;margin-left:-10px">Copy</button> </div> <div class="col-md-12"> <table class="table table-hover"> <thead class="text-warning"> <th>#</th> <th>Kullanıcı Adı</th> <th>Kazancınız</th> </thead> <tbody> <?php $query_r = mysqli_query($connect, "SELECT * FROM data_users WHERE ref = $userid"); if (mysqli_affected_rows($connect)){ $i = 1; while ($fetch_r = mysqli_fetch_array($query_r)){ //REF GELİR HESAPLA $refid = $fetch_r['id']; $say2R = mysqli_query($connect, "SELECT SUM(makalefiyat) as toplam FROM makalegorev WHERE alanuye = $refid"); $yazdir2R = mysqli_fetch_array($say2R); $totalYatRef = $yazdir2R['toplam']; $hesapYap = ($totalYatRef * $reforan) / 100; ?> <tr class="active"> <th scope="row"><?php echo $i; ?></th> <td><?php echo $fetch_r['username']; ?></td> <td><?php echo $hesapYap; ?> TL</td> </tr> <?php $i++;} }else{ ?> <tr class="active"> <th scope="row">0</th> <td>No</td> <td>Referrals</td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> </div> </div> </div> <?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