PHP WebShell

Текущая директория: /var/www/bitcardoApp/user/crypto

Просмотр файла: sell.php

<?php
// user/crypto/sell.php
include '../common/header.php';

// IMPORTANT:
// Point this to the page that already contains your swap form UI.
// If your swap form is at /user/crypto/swap.php, keep as-is.
// If it's elsewhere, update only this value.
$swapFormUrl = '/user/crypto/swap.php?mode=sell';
?>

<div class="container mt-3">
  <div class="row">
    <?php include '../common/nav.php'; ?>

    <main class="col-md-9 col-lg-10 px-md-5 mb-5">
      <?php include '../common/page-header.php'; ?>

      <div class="row justify-content-center">
        <div class="col-12 col-lg-10 mt-3">

          <div class="d-flex flex-column flex-md-row align-items-md-center justify-content-between gap-2 mb-3">
            <div>
              <h4 class="fw-bold mb-1">Sell Crypto</h4>
              <div class="text-muted">
                Convert your crypto to NGN using the same secure swap form.
              </div>
            </div>

          </div>

          <div class="card border-0 shadow-sm overflow-hidden offset-md-3 col-md-6">
            <div class="card-body p-0">
              <!-- IFRAME -->
              <div class="currency-box bg-white border shadow-sm">
                <?php include '../crypto/swap.php'; ?>
            </div>

              <!-- Fallback (shown only if iframe fails) -->
              <div class="p-4 d-none" id="iframeFallback">
                <div class="alert alert-warning mb-3">
                  This page could not load the swap form in-frame (your browser may be blocking it).
                </div>
                <a class="btn btn-primary fw-bold" href="<?= htmlspecialchars($swapFormUrl); ?>">
                  Open Sell Crypto
                </a>
              </div>

            </div>
          </div>
        </div>
      </div>

    </main>
  </div>
</div>

<script>
(function(){
  const frame = document.getElementById('sellSwapFrame');
  const fallback = document.getElementById('iframeFallback');

  // If the iframe doesn't load within a reasonable time, show fallback.
  let loaded = false;

  frame.addEventListener('load', function(){
    loaded = true;
  });

  setTimeout(function(){
    if (!loaded) {
      frame.closest('.ratio')?.classList.add('d-none');
      fallback.classList.remove('d-none');
    }
  }, 6000);
})();
</script>

<?php include '../common/footer.php'; ?>

Выполнить команду


Для локальной разработки. Не используйте в интернете!