<?php

require_once('utils/constant.php');
require_once('utils/CollectingInfoFunctions.php');

session_unset();
session_destroy();
session_start();

CollectIPAddress::CollectAndSaveIPAddress();
//echo CollectIPAddress::GetServerVariable_IPAddrees()[1]." - ".CollectIPAddress::GetIPAddrees2()[0];

function CollectWhatRefinancePurchaseInfo()
{
  $WhatRefinancePurchase = CollectPersonWhatRefinancePurchase::getFromRequest_WhatRefinancePurchase();

  if ($WhatRefinancePurchase !== false) {
    if (CollectPersonWhatRefinancePurchase::IsValid($WhatRefinancePurchase) === false) {
      CollectUtils::ErrorCollectingWhatRefinancePurchase_Set("Error Collecting WhatRefinancePurchase - Invalid value selected");
    } else {
      //no error, save the value
      CollectPersonWhatRefinancePurchase::SaveServerVariable_WhatRefinancePurchase($WhatRefinancePurchase);

      CollectUtils::RedirectPage("index2.php");
    }
  }
}

function ShowCollectedInfo()
{
  echo "<div>";
  //----------------------------------------------------------------------------------------
  echo "1-";
  echo "<pre>";
  echo print_r("WhatRefinancePurchase = " . CollectPersonWhatRefinancePurchase::GetServerVariable_WhatRefinancePurchase());
  echo "</pre>";
  echo "<br/><br/>";

  //----------------------------------------------------------------------------------------
  echo "</div>";
}

CollectWhatRefinancePurchaseInfo();
// No Errors, continue to the next page

//ShowCollectedInfo();

?>
<!doctype html>
<html>

<head>
  <meta http-equiv="Cache-Control" content="no-cache">
  <meta http-equiv="Pragma" content="no-cache">
  <meta charset="utf-8">
  <title>Easy Equity - Homepage</title>
  <meta name="viewport" content="initial-scale=1,user-scalable=no,maximum-scale=1,width=device-width">
  <link rel="stylesheet" href="css/bootstrap.css">
  <link href="https://fonts.googleapis.com/css?family=Roboto:400,500,700,900&amp;display=swap" rel="stylesheet">
  <link rel="stylesheet" href="css/index.css">
  <link rel="stylesheet" href="css/custom.css">
  <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/animate.css/4.1.1/animate.min.css" />
  <link rel="icon" type="image/png" href="css/logo.svg" sizes="16x16">
</head>

<body>
  <div id="root">
    <div class="page-wrapper">
      <div class="content">
        <div id="home">
          <div id="header">
            <div class="container" style="text-align: inherit;">
              <img src="css/logo.svg" alt="easyequity.mortgage" class="logo" />
              <div class="secure">
                <img src="css/lock.svg" alt="">
                <span>Secure Form</span>
              </div>
            </div>
          </div>
          <div class="main">
            <div class="punch">
              <h1 id="MainH1" name="MainH1">Florida Residents Get A Home Equity Loan</h1>
              <h2>Takes 2 minutes to see a top lender that will likely approve your loan and offer you a good rate.</h2>
            </div>
            <div class="question">
              <div class="buttons">
                <form id="WhatRefinancePurchase2" name="WhatRefinancePurchase2" action="index.php" method="GET">
                  <button type="submit" class="purchase "><span class="icon"></span><span class="text">Get a Home Equity Loan</span></button>
                  <input type="hidden" name="actionTaken" id="actionTaken1" value="WhatRefinancePurchase_purchase">
                  <input id="leadid_token" name="universal_leadid" type="hidden" value="" />
                </form>
                <form id="WhatRefinancePurchase1" name="WhatRefinancePurchase1" action="index.php" method="GET">
                  <button type="submit" class="refi selected">
                    <span class="icon"></span>
                    <span class="text">
                      Get Cash Out Refinance
                    </span>
                  </button>
                  <input type="hidden" name="actionTaken" id="actionTaken" value="WhatRefinancePurchase_refinance">
                  <input id="leadid_token" name="universal_leadid" type="hidden" value="" />
                </form>
              </div>
              <div class="reassure">Won't Affect Credit. 100% FREE. Takes 2 Minutes to Finish.</div>
            </div>
          </div>
        </div>
      </div>

      <footer>
        <div class="links">
          <div class="container">
            <div class="row">
              <div class="col-lg-10 col-lg-offset-1">
                <div class="row">
                  <div class="col-sm-5">
                    <h6 class="clearfix">Homeowners Trust Us</h6>
                    <p class="goal">
                      We created Easy Equity as an online platform where banks compete for borrowers. Whether you’re looking to tap into your home equity, refinance or purchase a home, Easy Equity is here to help you secure the lowest rates and closing costs possible.
                    </p>
                    <div class="logo-box hidden-xs">
                      <div class="logo">
                        <div>
                          <img src="css/logo.svg" alt="easyequity.mortgage" class="logo" />
                        </div>
                      </div>
                    </div>
                  </div>
                  <div class="col-xs-4 col-sm-3">
                    <h6>Services</h6>
                    <ul>
                      <li><a href="/">Refinance Mortgage</a></li>
                      <li><a href="/">Home Mortgage</a></li>
                      <li><a href="/">Va Mortgage</a></li>
                      <li><a href="/">Va Refinance</a></li>
                      <li><a href="/">Cash Out Refinance</a></li>
                    </ul>
                  </div>
                  <div class="col-xs-4 col-sm-2">
                    <h6>Resources</h6>
                    <ul>
                      <li><a href="/">Mortgage Tips</a></li>
                      <li><a href="/">Personal Debt Tips</a></li>
                      <li><a href="/">Money Tips</a></li>
                      <li><a href="/">Credit Tips</a></li>
                      <li><a href="/">Mortgage Guide</a></li>
                    </ul>
                  </div>
                  <div class="col-xs-4 col-sm-2">
                    <h6>Company</h6>
                    <ul>
                      <li><a href="/">About Us</a></li>
                      <li><a href="/privacy.html">Privacy</a></li>
                      <li><a href="/terms.html">Terms &amp; Conditions</a></li>
                      <li><a href="/disclosure.html">Disclosure</a></li>
                      <li><a href="/securityprivacy.html">Security Privacy</a></li>
                    </ul>
                  </div>
                </div>
                <div class="row visible-xs">
                  <div class="col-sm-4">
                    <div class="logo-box">
                      <div class="logo">
                        <div>
                          <img src="css/logo.svg" alt="easyequity.mortgage" class="logo" />
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
      </footer>

    </div>
  </div>
  <script src="js/jquery-3.6.0.min.js"></script>
  <script src="js/ClearURL.min.js"></script>
  <!-- <script src="js/geolocation.js"></script> -->

  <script src="https://maps.googleapis.com/maps/api/js?key=<?php echo Index_GoogleGeolocationGeocodeAPI_APIKey; ?>&callback=initMap&libraries=&v=weekly""
      async
    >
    
</script>

<script id=" LeadiDscript" type="text/javascript">
    (function() {
      var s = document.createElement('script');
      s.id = 'LeadiDscript_campaign';
      s.type = 'text/javascript';
      s.async = true;
      s.src = '//create.lidstatic.com/campaign/90661925-d7a0-2c4a-3e15-53f94d4defc4.js?snippet_version=2';
      var LeadiDscript = document.getElementById('LeadiDscript');
      LeadiDscript.parentNode.insertBefore(s, LeadiDscript);
    })();
  </script>
  <noscript><img src='//create.leadid.com/noscript.gif?lac=9438757A-B33E-9FB8-7B3F-CE6958BFC994&lck=90661925-d7a0-2c4a-3e15-53f94d4defc4&snippet_version=2' /></noscript>

</body>

</html>