HEX
Server: Apache
System: Linux server1.panigaletech.com 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64
User: ubuntu (1000)
PHP: 7.4.30
Disabled: pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare,
Upload Files
File: /var/www/dev.captainschairit.com/wp-content/themes/captainschare/template-parts/try-it-free.php
<?php
/**
 * Template Name: Free Trial
 */
$url = get_site_url();
wp_redirect( $url );
exit;
session_start();
unset($_SESSION['company_info']);
unset($_SESSION['msp_chosen']);
unset($_SESSION['billing_info']);
unset($_SESSION['package_info']);
unset($_SESSION['card_info']);
// if(isset($_POST) && isset($_POST['msp_type'])) {
//   if($_POST['msp_type'] == 'val_an_msp') {
//     $url = get_site_url().'/collect-data-for-msp';
//     wp_redirect( $url );
//     exit;
//   }
//   else if($_POST['msp_type'] == 'val_use_an_msp' || $_POST['msp_type'] == 'val_it_is_in_house') {
//     $url = get_site_url().'/collect-data-for-non-msp';
//     wp_redirect( $url );
//     exit;
//   }
// }
if(isset($_POST) && isset($_POST['msp_type'])) {
  if($_POST['msp_type'] == 'val_an_msp') {
    $url = get_site_url().'/choose-plan';
    wp_redirect( $url );
    exit;
  }
  else if($_POST['msp_type'] == 'val_use_an_msp' || $_POST['msp_type'] == 'val_it_is_in_house') {
    $url = get_site_url().'/collect-data-for-non-msp';
    wp_redirect( $url );
    exit;
  }
}
get_header();
$page_heading = get_field('page_heading');
$content_part = get_field('content_part');
$options_text = get_field('options_text');
$video_section = get_field('video_section');
// echo '<pre>'; print_r($video_section);
?>
  <!-- Services -->
  <section class="page-section msp-menu-top" id="CompanyInfo">
    <div class="container">
      <div class="row">
        <div class="col-lg-12 text-center">
          <h2 class="heading01 mb-5"><?php echo $page_heading; ?></h2>
          <p class="text-left"><?php echo $content_part; ?></p>
        </div>
        <div class="col-sm-6">
          <div class=" msp-non-msp mt-1 mb-5">
            <div class="msp-non-msp-text">
            <strong><?php echo $options_text; ?></strong>
            </div>
            <form class="msp-inner clearfix" action="" method="POST">
              <div class="form-msp-inner mb-4">
                <div class="msp-selection">
                  <label class="radio-btn">
                    <input type="radio" checked="checked" name="msp_type" value="val_an_msp">
                    I am an MSP
                    <span class="checkmark"></span>
                  </label>
                </div>
                <div class="msp-selection">
                  <label class="radio-btn">
                    <input type="radio" name="msp_type" value="val_use_an_msp">
                    I use an MSP to manage my systems for me
                    <span class="checkmark"></span>
                  </label>
                </div>
                <div class="msp-selection">
                  <label class="radio-btn">
                    <input type="radio" name="msp_type" value="val_it_is_in_house">
                    I do not use an MSP. I manage my systems internally
                    <span class="checkmark"></span>
                  </label>
                </div>
              </div>
              <!-- <a href="msp-contact.html" class="login GetaDemo hvr-shutter-out-horizontal text-transform">Get Started</a> -->
              <button type="submit" class="login GetaDemo hvr-shutter-out-horizontal text-transform">Next</button>
            </form>
          </div>
        </div>
        <div class="col-sm-6">
            <div class="msp-video">
            <iframe src="https://player.vimeo.com/video/387823955" frameborder="0" allow="autoplay; fullscreen" sandbox="allow-same-origin allow-scripts allow-popups allow-forms allow-presentation" allowfullscreen></iframe>
            <!-- <p><a href="https://vimeo.com/387823955">Best Tech Captain&#039;s Chair Introduction</a> from <a href="https://vimeo.com/user104553956">Captain&#039;s Chair</a> on <a href="https://vimeo.com">Vimeo</a>.</p> -->
            </div>
        </div>

        <!-- <div class="col-sm-12">
          <p class="mb-3"><?php //echo $video_section['video_text']; ?></p>
          <a href="<?php //echo $video_section['video_link']; ?>" target="_blank" class="login GetaDemo float-left hvr-shutter-out-horizontal ml-0 text-transform">Learn More</a>
        </div> -->
      </div>
    </div>
  </section>
<?php
get_footer();
?>