JamesHusband
6/5/2017 - 3:30 PM

FUCKED

FUCKED

<?php
    userAgent($_SERVER['HTTP_USER_AGENT']);
    function userAgent($ua){
        ## This credit must stay intact (Unless you have a deal with @lukasmig or frimerlukas@gmail.com
        ## Made by Lukas Frimer Tholander from Made In Osted Webdesign.
        ## Price will be $2
        global $post;
        $mobileuribits = explode("-",$_SERVER['REQUEST_URI']);
        $mobile_url = "/lp-".$mobileuribits[2]; // id/name of landing page

        if ( get_field('mob_redirect_url') === NULL) {
           $adservermobile = get_post_meta($post->ID, "_mcf_responsive-adserverurl", true);
        }
        else {
            $adservermobile = get_field('mob_redirect_url');
        }

        if ( get_field('tab_redirect_url') == NULL) {
           $adservermobile = get_post_meta($post->ID, "_mcf_responsive-adserverurl", true);
        }
        else {
            $adservertablet = get_field('tab_redirect_url');
        }

        $iphone = strstr(strtolower($ua), 'mobile'); //Search for 'mobile' in user-agent (iPhone have that)
        $android = strstr(strtolower($ua), 'android'); //Search for 'android' in user-agent
        $kindle = strstr(strtolower($ua), 'kindle'); //Search for 'kindle' in user-agent
        $silk = strstr(strtolower($ua), 'silk'); //Search for 'silk" in user-agent (Kindle version)
        $windowsPhone = strstr(strtolower($ua), 'phone'); //Search for 'phone' in user-agent (Windows Phone uses that)

        function androidTablet($ua){ //Find out if it is a tablet
            if(strstr(strtolower($ua), 'android') ){//Search for android in user-agent
                if(!strstr(strtolower($ua), 'mobile')){ //If there is no ''mobile' in user-agent (Android have that on their phones, but not tablets)
                    return true;
                }
            }
        }
        $androidTablet = androidTablet($ua); //Do androidTablet function
        $ipad = strstr(strtolower($ua), 'ipad'); //Search for iPad in user-agent

        if($androidTablet || $ipad || $kindle || $silk){ //If it's a tablet (iPad / Android)
            $subid_url = "";
            if ( isset($_GET["click_id"]) and !empty($_GET["click_id"]) )
                $subid_url .= "&click_id=" . $_GET["click_id"];
            if ( isset($_GET["p_id"]) and !empty($_GET["p_id"]) )
                $subid_url .= "&p_id=" . $_GET["p_id"];
           header( 'Location: '.$adservertablet.$subid_url);
           exit;
        }
        elseif($iphone && !$ipad || $android || $windowsPhone){ //If it's a phone and NOT a tablet
            $subid_url = "";
            if ( isset($_GET["click_id"]) and !empty($_GET["click_id"]) )
                $subid_url .= "&click_id=" . $_GET["click_id"];
            if ( isset($_GET["p_id"]) and !empty($_GET["p_id"]) )
                $subid_url .= "&p_id=" . $_GET["p_id"];
           header( 'Location: '.$adservermobile.$subid_url);
           exit;
        }
    }
?>




<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" <?php language_attributes(); ?>>

<head profile="http://gmpg.org/xfn/11">
    <meta http-equiv="Content-Type" content="<?php bloginfo('html_type'); ?>; charset=<?php bloginfo('charset'); ?>" />
    <meta name="google-site-verification" content="WwurmhlfG4pC1N4Q3azNZ_Lalp_CGREv1Kfyp7cnAO8" />
    <meta name="y_key" content="44817864e8319367" />
    <meta name="msvalidate.01" content="6B119E59B318ADE509DFDC08589E8562" />
    <meta name="HandheldFriendly" content="true" />

    <?php include(locate_template('/_partials/logic/og-facebook.php')); // OG FACEBOOK TAGS ?>

    <title><?php include(locate_template('/_partials/logic/pagetitles.php')); ?></title>

    <?php if( get_post_meta($post->ID, "_mcf_canonical-tag", true) == "Yes" )echo '<link rel="canonical" href="https://www.superfreeslotgames.com/free-slots/" />';?>
    <?php $url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
    if (false !== strpos($url,'confirmation')) {
        echo '<link rel="canonical" href="https://www.superfreeslotgames.com/free-slots/" />';
    } else {
        echo '';
    }?>

    <link rel="shortcut icon" type="icon/x-image" href="/favicon.ico" />
    <link rel="alternate" type="application/rss+xml" title="<?php bloginfo('name'); ?> RSS Feed" href="<?php bloginfo('rss2_url'); ?>" />
    <link rel="alternate" type="application/atom+xml" title="<?php bloginfo('name'); ?> Atom Feed" href="<?php bloginfo('atom_url'); ?>" />
    <link rel="pingback" href="<?php bloginfo('pingback_url'); ?>" />


    <?php echo $retarget; ?>

    <?php // Google Analytics ?>
    <script>
      (function(i,s,o,g,r,a,m){i['GoogleAnalyticsObject']=r;i[r]=i[r]||function(){
      (i[r].q=i[r].q||[]).push(arguments)},i[r].l=1*new Date();a=s.createElement(o),
      m=s.getElementsByTagName(o)[0];a.async=1;a.src=g;m.parentNode.insertBefore(a,m)
      })(window,document,'script','//www.google-analytics.com/analytics.js','ga');

      ga('create', 'UA-11806137-17', 'auto');
      ga('send', 'pageview');
    </script>
    <?php // end analytics ?>


    <script language="JavaScript" src="http://www.geoplugin.net/javascript.gp" type="text/javascript"></script>

    <?php wp_head(); ?>
    <!-- START Rakuten Marketing Tracking -->
    <script type="text/javascript">
        (function (url) {
                /*Tracking Bootstrap
                Set Up DataLayer objects/properties here*/
                if(!window.DataLayer){
                    window.DataLayer = {};
                }
                if(!DataLayer.events){
                    DataLayer.events = {};
                }
                DataLayer.events.SiteSection = "1";

            var loc, ct = document.createElement("script"); 
            ct.type = "text/javascript"; 
            ct.async = true;
            ct.src = url;
            loc = document.getElementsByTagName('script')[0];
            loc.parentNode.insertBefore(ct, loc);
        }(document.location.protocol + "//intljs.rmtag.com/113534.ct.js"));
    </script>
<!-- END Rakuten Marketing Tracking -->
    
    
</head>

<body <?php if(is_page('go')){ echo("class=\"go_body\""); } ?> onunload="">

<!-- Google search results Brand Box trigger
<div itemscope itemtype="http://schema.org/Organization">
    <link itemprop="url" href="http://www.superfreeslotgames.com" />
    <link itemprop="name" content="Super Free Slot Games"/>
    <link itemprop="sameAs" content="https://www.facebook.com/Super-Free-Slot-Games-131627256868137/" />
    <link itemprop="sameAs" content="https://twitter.com/superfreeslots" />
    <link itemprop="sameAs" content="https://www.pinterest.com/sfsgteam/" />
    <link itemprop="sameAs" content="https://instagram.com/superfreeslotgames/" />
    <link itemprop="sameAs" content="https://www.flickr.com/photos/118104275@N07/" />
    <link itemprop="sameAs" content="https://plus.google.com/b/105891483304890037346/105891483304890037346/posts" />
</div> -->

<div id="page">
    <div id="header">
        <div class="container_12">

            <?php if (!is_page('go')) { 
              include(locate_template('/_partials/logic/navbar.php')); ?>

            <div class="clear">&nbsp;</div>
        </div>
    </div><!-- end header -->

    <div class="page-container">

        <?php $url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
        if (is_home() || true == strpos($url,'confirmation') || true == strpos($url,'free-slots-news') ) {
            if (get_field('sidebanner_toggle', 'option')) {
         ?>
              <?php $posts = get_field('sidebanner_operator', 'option');
              if ($posts) : foreach ($posts as $p) : // variable must NOT be called $post (IMPORTANT)
              $id = ($p->ID); ?>

            <style>
                #left-back {
                  background: url(<?php the_field('sidebanner_large_left', $p); ?>);
                }
                #right-back {
                  background: url(<?php the_field('sidebanner_large_right', $p) ?>);
                }

                @media (max-width: 1670px) {
                  #left-back {
                    background:url(<?php the_field('sidebanner_small_left', $p) ?>);
                  }
                  #right-back {
                    background:url(<?php the_field('sidebanner_small_right', $p) ?>);
                  }
                }
            </style>

              <div id="left-bg">
                <div id="left-back">


                <?php if (get_field('sidebanner_nolink', 'option') != 1) { ?>
                    <a href="http://www.superfreeslotgames.com/go/<?php echo $id ?>/" id="left-inner" target="_blank"></a>
                <?php } ?>
                </div>
              </div>

              <div id="right-bg">
                <div id="right-back">
                    <?php if (get_field('sidebanner_nolink', 'option') != 1) { ?>
                        <a href="http://www.superfreeslotgames.com/go/<?php echo $id ?>/" id="right-inner" target="_blank"></a>
                    <?php } ?>
                </div>
              </div>
              <?php endforeach; ?>
              <?php endif; ?>
        <?php } } ?>


        <?php $url = 'http://' . $_SERVER['SERVER_NAME'] . $_SERVER['REQUEST_URI'];
        if (true == strpos($url,'free-slots-news') ) {
         ?>

              <div id="left-bg">
                <a target="_blank" href="http://littlestar.cake.aclz.net/?a=232&c=83&s1=">
                  <div id="left-back">
                    <!-- -->
                  </div>
                </a>
              </div>

              <div id="right-bg">
                <a target="_blank" href="http://littlestar.cake.aclz.net/?a=231&c=82&s1=">
                  <div id="right-back">
                    <!-- -->
                  </div>
                </a>
              </div>
        <?php  } ?>

    <div id="content-wrapper">
        <div id="wrapper" class="container_12">
<?php }

?>