📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
gorevyapscripti.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=index.php'> "; exit(); } ?> <!DOCTYPE html> <html lang="en"> <?php include ('system/inc/header.php'); ?> <div class="page-body"> <div class="container-fluid" > <div class="page-title"> <div class="row"> </div> </div> </div> <!-- Container-fluid starts--> <div class="container-fluid"> <div class="row "> <div class="col-xl-12 col-md-12 notification box-col-12"> <div class="card"> <div class="card-header card-no-border"> <div class="header-top"> <h5 class="m-0">Referans</h5> </div> </div> <div class="card-body pt-0"> <div class="row"> <div class="col-md-12"> <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> <br> </div> <div class="col-md-8"> <textarea id="myInput" 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="myFunction()" class="btn btn-primary btn-round" style="width:100%;height:45px;margin-left:-10px">Kopyala</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(kazanc) as toplam FROM yapilangorevler WHERE userid = '$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> <!-- Container-fluid Ends--> </div> <?php include ('system/inc/footer.php'); ?> <script type="text/javascript"> function myFunction() { // Get the text field var copyText = document.getElementById("myInput"); // Select the text field copyText.select(); copyText.setSelectionRange(0, 99999); // For mobile devices // Copy the text inside the text field navigator.clipboard.writeText(copyText.value); // Alert the copied text swal("Kopyalandı", "Referans Linki Kopyalandı : "+copyText.value, "success"); } </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