function checkIntro() { if (isSkipForced()) { setIntroShown(); } if (!wasIntroShown()) { header("Location: intro.php"); } }
if ($user) { try { // Proceed knowing you have a logged in user who's authenticated. $userProfile = getFBUserProfile(); $userSQL = getUser($userProfile['id']); if (empty($userSQL)) { addUser($userProfile['id'], $userProfile['name']); } setFBUserSession($userProfile); } catch (FacebookApiException $e) { error_log($e); $user = null; } } include 'inc/switch-header.php'; echo isSkipForced(); ?> <body style="background:#ffffff !important;"> <div class="large-3 large-centered columns"> <div class="login-box"> <div class="row"> <div class="larger-1 columns logoPlanty"> <img src="img/logo.png" alt="Planty Logo"/> </div> <div class="large-12 columns"> <form> <div class="row"> <div class="large-12 large-centered columns fb"> <!--<a href="<?php echo getFacebook()->getLoginUrl();