PATH: /home/hwyuvbry/public_html/kerbau
FILE_BARU
CREATE
FOLDER_BARU
MKDIR
UPLOAD_FILE
GO
[ .. KEMBALI ]
📄 .htaccess
↓
X
📁 assets/
X
📄 balance.php
↓
X
📄 bank.php
↓
X
📄 banner.php
↓
X
📄 connecty_api.php
↓
X
📄 dashboard.php
↓
X
📄 detail_result.php
↓
X
📄 e_user.php
↓
X
📄 edit_qris.php
↓
X
📄 error_log
↓
X
📁 export/
X
📁 function/
X
📄 game.php
↓
X
📄 getNotif.php
↓
X
📄 getWinner.php
↓
X
📄 getbalance.php
↓
X
📄 group.php
↓
X
📄 index.php
↓
X
📄 login-proses.php
↓
X
📄 logout.php
↓
X
📄 member.php
↓
X
📄 minimal_depo_wd.php
↓
X
📄 payment.php
↓
X
📄 pop.php
↓
X
📄 post.php
↓
X
📄 promo.php
↓
X
📄 promosid.php
↓
X
📄 qris.php
↓
X
📄 request_depo.php
↓
X
📄 request_wd.php
↓
X
📄 riwayat_topup.php
↓
X
📄 riwayat_withdraw.php
↓
X
📄 room.php
↓
X
📄 session.php
↓
X
📄 setting.php
↓
X
📄 sidebar.php
↓
X
📄 slide.php
↓
X
📄 social.php
↓
X
📄 top-menu.php
↓
X
📄 topup.php
↓
X
📄 transfer.php
↓
X
📁 upload/
X
📄 user.php
↓
X
📄 view.php
↓
X
📄 withdraw.php
↓
X
SAVING...
BERHASIL DIUBAH!
EDITING: game.php
<?php include('session.php'); ?> <!DOCTYPE html> <html lang="en" class="light-style layout-navbar-fixed layout-menu-fixed" dir="ltr" data-theme="theme-default" data-assets-path="<?php echo $urlweb; ?>/assets/" data-template="vertical-menu-template" > <head> <meta charset="utf-8" /> <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=no, minimum-scale=1.0, maximum-scale=1.0" /> <title><?php echo $s0['instansi']; ?></title> <meta name="description" content=""> <meta name="keywords" content=""> <meta name="resource-type" content="document" /> <meta http-equiv="content-type" content="text/html; charset=US-ASCII" /> <meta http-equiv="content-language" content="en-us" /> <meta name="author" content="Arie Budi" /> <meta name="contact" content="ariebudi.com" /> <meta name="copyright" content="Copyright (c) ariebudi.com. All Rights Reserved." /> <meta name="robots" content="index, nofollow"> <!-- Favicon --> <link rel="icon" type="image/x-icon" href="<?php echo $urlwebs; ?>/upload/favicon.png" /> <!-- Fonts --> <link rel="preconnect" href="https://fonts.googleapis.com" /> <link rel="preconnect" href="https://fonts.gstatic.com" crossorigin /> <link href="https://fonts.googleapis.com/css2?family=Public+Sans:ital,wght@0,300;0,400;0,500;0,600;0,700;1,300;1,400;1,500;1,600;1,700&display=swap" rel="stylesheet" /> <!-- Icons --> <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/vendor/fonts/fontawesome.css" /> <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/vendor/fonts/tabler-icons.css" /> <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/vendor/fonts/flag-icons.css" /> <!-- Core CSS --> <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/vendor/css/rtl/core.css" class="template-customizer-core-css" /> <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/vendor/css/rtl/theme-default.css" class="template-customizer-theme-css" /> <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/css/demo.css" /> <!-- Vendors CSS --> <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/vendor/libs/perfect-scrollbar/perfect-scrollbar.css" /> <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/vendor/libs/node-waves/node-waves.css" /> <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/vendor/libs/typeahead-js/typeahead.css" /> <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/vendor/libs/select2/select2.css" /> <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/vendor/libs/apex-charts/apex-charts.css" /> <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/vendor/libs/datatables-bs5/datatables.bootstrap5.css" /> <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.css" /> <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/vendor/libs/datatables-buttons-bs5/buttons.bootstrap5.css" /> <link rel="stylesheet" href="<?php echo $urlweb; ?>/assets/vendor/libs/summernote/dist/summernote-bs4.css"/> <!-- Page CSS --> <!-- Helpers --> <script src="<?php echo $urlweb; ?>/assets/vendor/js/helpers.js"></script> <!--! Template customizer & Theme config files MUST be included after core stylesheets and helpers.js in the <head> section --> <!--? Template customizer: To hide customizer set displayCustomizer value false in config.js. --> <script src="<?php echo $urlweb; ?>/assets/vendor/js/template-customizer.js"></script> <!--? Config: Mandatory theme config file contain global vars & default theme options, Set your preferred theme option in this file. --> <script src="<?php echo $urlweb; ?>/assets/js/config.js"></script> </head> <body> <!-- Layout wrapper --> <div class="layout-wrapper layout-content-navbar"> <div class="layout-container"> <!-- Menu --> <?php include('sidebar.php'); ?> <!-- / Menu --> <!-- Layout container --> <div class="layout-page"> <!-- Navbar --> <nav class="layout-navbar container-xxl navbar navbar-expand-xl navbar-detached align-items-center bg-navbar-theme" id="layout-navbar" > <div class="layout-menu-toggle navbar-nav align-items-xl-center me-3 me-xl-0 d-xl-none"> <a class="nav-item nav-link px-0 me-xl-4" href="javascript:void(0)"> <i class="ti ti-menu-2 ti-sm"></i> </a> </div> <div class="navbar-nav-right d-flex align-items-center" id="navbar-collapse"> <?php include('top-menu.php'); ?> </div> <!-- Search Small Screens --> <div class="navbar-search-wrapper search-input-wrapper d-none"> <input type="text" class="form-control search-input container-xxl border-0" placeholder="Search..." aria-label="Search..." /> <i class="ti ti-x ti-sm search-toggler cursor-pointer"></i> </div> </nav> <!-- / Navbar --> <!-- Content wrapper --> <div class="content-wrapper"> <!-- Content --> <div class="container-xxl flex-grow-1 container-p-y"> <h4 class="fw-bold py-3 mb-4"> <span class="text-muted fw-light">Information /</span> <span class="text-muted fw-light">Togel /</span> Game </h4> <div class="row"> <div class="col-sm-3"> <div class="card"> <div class="card-body"> <?php error_reporting(0); if (!empty($_GET['notif'])) { if ($_GET['notif'] == 1) { echo ' <div class="alert alert-success d-flex align-items-center" role="alert"> <span class="alert-icon text-success me-2"> <i class="ti ti-check ti-xs"></i> </span> <span><strong>Well Done!</strong> Game Saved!</span> </div> '; } } if(isset($_GET['postID'])){ $catID = $_GET['postID']; $sql_2 = mysqli_query($conn,"SELECT * FROM `tb_game` WHERE cuid = '$catID'") or die(mysqli_error()); $s2 = mysqli_fetch_array($sql_2); } ?> <form role="form" action="<?php echo $urlweb; ?>/function/add-game.php" method="post" enctype="multipart/form-data"> <div class="form-group mb-2"> <label class="form-label">Title :</label> <input class="form-control" type="text" name="title" value="<?php if(isset($_GET['postID'])) { echo $s2['title']; } ?>" required> <input class="form-control" type="hidden" name="postID" value="<?php if(isset($_GET['postID'])) { echo $s2['cuid']; } ?>"> </div> <div class="form-group mb-2"> <label class="form-label">Win Price :</label> <input class="form-control" type="text" name="price" value="<?php if(isset($_GET['postID'])) { echo $s2['price']; } ?>" required> </div> <div class="form-group mb-2"> <label class="form-label">Unit :</label> <select name="satuan" class="form-control" required> <option value="0">Select</option> <option value="0"<?php if(isset($_GET['postID'])) { if($s2['satuan'] == 0){ echo ' selected=selected'; } } ?>>Multiple (x)</option> <option value="1"<?php if(isset($_GET['postID'])) { if($s2['satuan'] == 1){ echo ' selected=selected'; } } ?>>Percent (%)</option> </select> </div> <div class="form-group mb-2"> <label class="form-label">Discount :</label> <input class="form-control" type="text" name="diskon" value="<?php if(isset($_GET['postID'])) { echo $s2['diskon']; } ?>" required> </div> <div class="form-group mb-2"> <label class="form-label">Minimal Bet Amount :</label> <input class="form-control" type="text" name="min_bet" value="<?php if(isset($_GET['postID'])) { echo $s2['min_bet']; } ?>" required> </div> <div class="form-group mb-2"> <label class="form-label">Maximal Bet Amount :</label> <input class="form-control" type="text" name="max_bet" value="<?php if(isset($_GET['postID'])) { echo $s2['max_bet']; } ?>" required> </div> <div class="form-group mb-2"> <label class="form-label">Parent :</label> <select name="parent" class="form-control" required> <option value="0"<?php if(isset($_GET['postID'])) { if($s2['parent'] == 1){ echo ' selected=selected'; } } ?>>Root</option> <?php $sql_21 = mysqli_query($conn,"SELECT * FROM `tb_game` WHERE parent = 0 ORDER BY cuid ASC") or die(mysqli_error()); while($s21 = mysqli_fetch_array($sql_21)){ ?> <option value="<?php echo $s21['cuid']; ?>"<?php if(isset($_GET['postID'])) { if($s2['parent'] == $s21['cuid']){ echo ' selected=selected'; } } ?>><?php echo $s21['title']; ?></option> <?php } ?> </select> </div> <button type="submit" name="submit" class="btn btn-primary">Publish</button> <a href="<?php echo $urlweb; ?>/game/" class="btn btn-light">Cancel</a> </form> </div> </div> </div> <div class="col-sm-9"> <!-- Invoice List Table --> <div class="card"> <div class="card-datatable table-responsive"> <table id="default-datatable" class="invoice-list-table table border-top"> <thead> <tr class="bg-info"> <th class="text-center">#</th> <th class="text-center">Game</th> <th class="text-center">Min Bet</th> <th class="text-center">Max Bet</th> <th class="text-center">Prize</th> <th class="text-center">Discount</th> <th class="text-center">Parent</th> <th class="text-center">Action</th> </tr> </thead> <tbody> <?php $sql_1 = mysqli_query($conn,"SELECT * FROM `tb_game` ORDER BY cuid ASC") or die(mysqli_error()); $no=0; while($s1 = mysqli_fetch_array($sql_1)){ $no++; $idkategori = $s1['parent']; $getSub = mysqli_query($conn,"SELECT * FROM `tb_game` WHERE cuid = '$idkategori'") or die(mysqli_error()); $gs = mysqli_fetch_array($getSub); if($idkategori == 0){ $parent = 'Root'; } else { $parent = $gs['title']; } ?> <tr> <td class="text-center" style="vertical-align: middle; font-size: 14px;"><?php echo $no; ?></td> <td class="text-center" style="vertical-align: middle; white-space: normal; font-size: 14px;"><?php echo $s1['title']; ?></td> <td class="text-right" style="vertical-align: middle; white-space: normal; font-size: 14px; text-align: right;"><?php echo number_format($s1['min_bet']); ?></td> <td class="text-right" style="vertical-align: middle; white-space: normal; font-size: 14px; text-align: right;"><?php echo number_format($s1['max_bet']); ?></td> <td class="text-right" style="vertical-align: middle; white-space: normal; font-size: 14px; text-align: right;"><?php echo $s1['price']; ?> (<?php if($s1['satuan'] == 0){ echo 'x'; } else { echo '%';} ?>)</td> <td class="text-right" style="vertical-align: middle; white-space: normal; font-size: 14px; text-align: right;"><?php echo $s1['diskon']; ?></td> <td class="text-right" style="vertical-align: middle; white-space: normal; font-size: 14px; text-align: right;"><?php echo $parent; ?></td> <td class="text-center" style="vertical-align: middle; font-size: 14px;"> <a href="<?php echo $urlweb; ?>/game/?postID=<?php echo $s1['cuid']; ?>" class="btn btn-primary btn-sm"> <i class="fa fa-edit"></i> </a> <a href="<?php echo $urlweb; ?>/function/del-game.php?cuid=<?php echo $s1['cuid']; ?>&jenis=1" class="btn btn-danger btn-sm" onclick="return confirm('Apakah anda yakin ingin menghapus data ini?');"> <i class="fa fa-trash"></i> </a> </td> </tr> <?php } ?> </tbody> </table> </div> </div> </div> </div> </div> <!-- / Content --> <!-- Footer --> <footer class="content-footer footer bg-footer-theme"> <div class="container-xxl"> <div class="footer-container d-flex align-items-center justify-content-between py-2 flex-md-row flex-column" > <div> © <script> document.write(new Date().getFullYear()); </script> , <?php echo $s0['instansi']; ?> All Rights Reserved. </div> </div> </div> </footer> <!-- / Footer --> <div class="content-backdrop fade"></div> </div> <!-- Content wrapper --> </div> <!-- / Layout page --> </div> <!-- Overlay --> <div class="layout-overlay layout-menu-toggle"></div> <!-- Drag Target Area To SlideIn Menu On Small Screens --> <div class="drag-target"></div> </div> <!-- / Layout wrapper --> <!-- Core JS --> <!-- build:js assets/vendor/js/core.js --> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/jquery/jquery.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/popper/popper.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/js/bootstrap.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/perfect-scrollbar/perfect-scrollbar.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/node-waves/node-waves.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/hammer/hammer.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/i18n/i18n.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/typeahead-js/typeahead.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/js/menu.js"></script> <!-- endbuild --> <!-- Vendors JS --> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/select2/select2.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/apex-charts/apexcharts.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/datatables/jquery.dataTables.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/datatables-bs5/datatables-bootstrap5.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/datatables-responsive/datatables.responsive.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/datatables-responsive-bs5/responsive.bootstrap5.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/datatables-buttons/datatables-buttons.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/datatables-buttons-bs5/buttons.bootstrap5.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/datatables-buttons/buttons.html5.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/datatables-buttons/buttons.print.js"></script> <!-- Main JS --> <script src="<?php echo $urlweb; ?>/assets/js/main.js"></script> <script src="<?php echo $urlweb; ?>/assets/js/forms-selects.js"></script> <script src="<?php echo $urlweb; ?>/assets/vendor/libs/summernote/dist/summernote-bs4.min.js"></script> <script> $(document).ready(function() { //Default data table $('#default-datatable').DataTable(); setInterval(function () { $('#countChat').load('<?php echo $urlweb; ?>/countChat.php'); }, 1000); setInterval(function () { $('#getNotif').load('<?php echo $urlweb; ?>/getNotif.php'); }, 1000); }); </script> </body> </html>
SIMPAN PERUBAHAN