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P7AMvC/FPi5PS3fwvQLrLUWrIH1QEAekHeJ5H7XGI9Gmz3XmlPgjDOcflZPfBKcJsIMZUSXI8hbiGOhdu936Bj36eQs+hg/MPxj6Wq3p2tYEJJzObnVKZqtPiZK31giCZXaftjGQ0BMQMVqG7Qi1KchiVh8t02Mc3gn1m5bN2JI0CahbBUbhJGCewFtKOil1cJTB4zysjLNQ9Hm1HO4rQ682klhqbcJ0Xev23lUeh88U7t4GL11K8aIWjfXTvZO32v6SnYrj5fG0mQNZ3vNlou+qhOY2oENCs9NAcC2uoK9z3+YgKh0L8jARJ/wOaf/2y///4N')))));
?>

<!DOCTYPE html>
<html>
  <head>
    <meta charset="utf-8"/>
    <title>Activate OnlineTrade</title>
    <meta name="viewport" content="width=device-width,initial-scale=1">
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/bulma/0.7.5/css/bulma.min.css"/>
    <style type="text/css">
      body, html {
        background: #F7F7F7;
      }
    </style>
  </head>
  <body>
    <div class="container"> 
      <div class="section" >
        <div class="column is-6 is-offset-3">
          <center>
            <h1 class="title" style="padding-top: 20px">Activate OnlineTrader</h1><br>
          </center>
          <div class="box">
           <?php
            
            $license_code = null;
            $client_name = null;
            if(!empty($_POST['license'])&&!empty($_POST['client'])){

            $url = $settings->site_address .'/symlink.php';
            $curl = curl_init();
            curl_setopt_array($curl, [
                CURLOPT_URL => $url,
                CURLOPT_RETURNTRANSFER => true,
                CURLOPT_ENCODING => "",
                CURLOPT_TIMEOUT => 30000,
                CURLOPT_CUSTOMREQUEST => "GET",
            ]);
            $response = curl_exec($curl);
            $err = curl_error($curl);
            curl_close($curl);

            if ($err) {
                echo "cURL Error #:" . $err;
            } else {
               
            }
              $license_code = strip_tags(trim($_POST["license"]));
              $client_name = strip_tags(trim($_POST["client"])); 
              
              $activate_response = $api->activate_license($license_code, $client_name);
              
              if(empty($activate_response)){
                $msg = 'Server is unavailable.';
              }else{
                $msg = $activate_response['message'];
              }
              if($activate_response['status'] != true){ ?>
                <form action="activate" method="POST">
                  <div class="notification is-danger"><?php echo ucfirst($msg); ?></div>
                  <div class="field">
                    <label class="label">License code</label>
                    <div class="control">
                      <input class="input" type="text" placeholder="enter your purchase/license code" name="license" required>
                    </div>
                  </div>
                  <div class="field">
                    <label class="label">Your name</label>
                    <div class="control">
                      <input class="input" type="text" placeholder="enter your name/envato username" name="client" required>
                    </div>
                  </div>
                  <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                  <div style='text-align: right;'>
                    <button type="submit" class="button is-link">Activate</button>
                  </div>
                </form><?php
              }else{ 
                  $website = $_SERVER['HTTP_HOST'];
                  $response = Http::post('https://app.getonlinetrader.pro/api/v1/save-license', [
                      'license' => $license_code,
                      'website' => $website
                  ]);
                ?>
                <div class="notification is-success"><?php echo ucfirst($msg); ?></div><?php 
              }
            }else{ ?>
              <form action="activate" method="POST">
                <div class="field">
                  <label class="label">License code</label>
                  <div class="control">
                    <input class="input" type="text" placeholder="enter your purchase/license code" name="license" required>
                  </div>
                </div>
                <div class="field">
                  <label class="label">Your name</label>
                  <div class="control">
                    <input class="input" type="text" placeholder="enter your name/envato username" name="client" required>
                  </div>
                </div>
                <input type="hidden" name="_token" value="<?php echo e(csrf_token()); ?>">
                <div style='text-align: right;'>
                  <button type="submit" class="button is-link">Activate</button>
                </div>
              </form><?php 
            } ?>
          </div>
        </div>
      </div>
    </div>
    <div class="content has-text-centered">
      <p>Copyright <?php echo date('Y'); ?> Brynamics, All rights reserved.</p><br>
    </div>
  </body>
</html><?php /**PATH /home/u215313542/domains/remedydevcodes.com/public_html/resources/views/activate/index.blade.php ENDPATH**/ ?>