Advisor Login

[insert_php] include_once(ABSPATH.”inc/functions.php”); test_session_start(); error_reporting(E_ALL & ~E_NOTICE); console(“login page: form_type [“.$_POST[‘form_type’].”], result [“.$_GET[‘result’].”]”); if($_POST[‘form_type’] === “do_login”){ $result = do_login($_POST); console(“login page: returned from function do_login(), result [“.$result.”]”); if ($result === TRUE){ wp_redirect(get_home_url().”/instructions/”); } else { wp_redirect(get_home_url().”/login/?result=fail”); } } else if ($_GET[‘result’] === ‘fail’) { echo “

The username and/or password are invalid, please try again if you are a Visions Psychic Hotline advisor, thank you.

“; } [/insert_php]