https://ignitedacademy.com//wp-content/uploads/2017/04/ignited-academy-logo.png
Logged
'; //wp_redirect( '/wp-admin' ); echo ""; exit(); } else { // Redirect to homepage if is already logged and has active membership $pp = new PilotPress; $user_levels = $pp->get_user_settings(); $user_levels = $user_levels['levels']; $page_levels = array("IA-Platinum, IA-Gold, IA-Foundations-For-Succeess"); $active = false; $is_platinum_gold = false; //Debug echo '
';
            print_r($user_levels);
            echo '
'; foreach($user_levels as $level) { if(in_array($level, $page_levels)) { $is_platinum_gold = true; } //if ($level == 'IA-Platinum' || $level == 'IA-Gold') { // echo '
Active at : '.$level.'
'; // $active = true; //} } if($is_platinum_gold) { //wp_redirect( '/' ); echo ""; exit(); } else { // Check if is Niche Igniter Student $page_levels = array("IA-Niche-Igniter"); $is_niche_igniter_student = false; foreach($user_levels as $level) { if(in_array($level, $page_levels)) { $is_niche_igniter_student = true; } } if ($is_niche_igniter_student) { echo ""; exit(); } else { // Has no active membership ?>
We are unable to find any active membership in your account!

If you think this is a mistake, please click the 'Trouble Logging In?' link below.

Logout

Trouble Logging In?

Please use the form below to let us know.

https://ignitedacademy.com//wp-content/uploads/2017/06/projectignite.com-logo-small-white.png