HEX
Server: LiteSpeed
System: Linux sv4.hami.host 5.14.0-611.54.3.el9_7.x86_64 #1 SMP PREEMPT_DYNAMIC Thu May 7 16:31:24 EDT 2026 x86_64
User: armgroup (1008)
PHP: 8.2.32
Disabled: show_source, system, shell_exec, passthru, exec, popen, proc_open, mail, socket_create, socket_create_listen, socket_create_pair, link, dl, openlog, syslog, stream_socket_server, curl_multi_init
Upload Files
File: //home/armgroup/libs/vendor/shetabit/multipay/resources/views/local-form.php
<!DOCTYPE html>
<html lang="fa" dir="rtl">
  <head>
    <meta charset="UTF-8" />
    <link href="https://v1.fontapi.ir/css/Vazir" rel="stylesheet" />
    <title><?php echo(isset($inputs['title']) ? htmlentities($inputs['title']) : 'درگاه پرداخت تست') ?></title>
    <style>
      html {
        font-family: "Vazir", sans-serif;
      }
      .container {
        display: flex;
        flex-direction: column;
        align-items: center;
      }
      form {
        text-align: center;
        margin-top: 2px;
      }

      h2,
      p {
        text-align: center;
        margin: 0;
      }
      h2 {
        font-weight: 900;
      }
      p {
        color: darkgray;
      }
      .tbl {
        display: flex;
        flex-direction: column;
        min-width: 400px;
        max-width: 500px;
        margin-top: 50px;
        background-color: #efefef;
        padding: 20px;
        border-radius: 20px;
      }
      .row {
        display: flex;
        min-height: 50px;
      }
      .cell:nth-child(2) {
        color: slategray;
      }
      .cell {
        flex: 1;
      }
      .row .cell {
        padding: 5px;
        box-sizing: border-box;
      }
      .button {
        display: inline-block;
        padding: 10px 20px;
        text-align: center;
        text-decoration: none;
        color: #ffffff;
        border-radius: 6px;
        outline: none;
        cursor: pointer;
      }

      .success {
        background-color: green;
      }

      .cancel {
        background-color: red;
      }
    </style>
  </head>

  <body>
    <form action="<?php echo(isset($inputs['successUrl']) ? htmlentities($inputs['successUrl']) : '#') ?>" method="post" id="success_form"></form>
    <form action="<?php echo(isset($inputs['cancelUrl']) ? htmlentities($inputs['cancelUrl']) : '#') ?>" method="post" id="cancel_form"></form>
    <div class="container">
      <h2><?php echo(isset($inputs['title']) ? htmlentities($inputs['title']) : 'Title') ?></h2>
      <p><?php echo(isset($inputs['description']) ? htmlentities($inputs['description']) : 'Description') ?></p>
      <div class="tbl">
        <div class="row">
          <div class="cell"><?php echo(isset($inputs['orderLabel']) ? htmlentities($inputs['orderLabel']) : 'Order no.') ?></div>
          <div class="cell"><?php echo(isset($inputs['orderId']) ? htmlentities($inputs['orderId']) : '') ?></div>
        </div>
        <div class="row">
          <div class="cell"><?php echo(isset($inputs['amountLabel']) ? htmlentities($inputs['amountLabel']) : 'Amount') ?></div>
          <div class="cell"><?php echo(isset($inputs['price']) ? htmlentities($inputs['price']) : 0) ?></div>
        </div>
        <div class="row">
          <div class="cell">
            <div id="success" class="button success"><?php echo(isset($inputs['payButton']) ? htmlentities($inputs['payButton']) : 'Success') ?></div>
          </div>
          <div class="cell">
            <div id="cancel" class="button cancel"><?php echo(isset($inputs['cancelButton']) ? htmlentities($inputs['cancelButton']) : 'Cancel') ?></div>
          </div>
        </div>
      </div>
    </div>
  </body>
</html>

<script type="text/javascript">
  var success_button = document.getElementById("success");
  var cancel_button = document.getElementById("cancel");

  success_button.onclick = function () {
    var f = document.getElementById("success_form");
    f.submit();
  };

  cancel_button.onclick = function () {
    var f = document.getElementById("cancel_form");
    f.submit();
  };
</script>