/**
         * Creates an interim page to collect answers to a math captcha
         *
         * @return none, execution stopped
         */
        static function generate_math_page($error = false)
        {
            $salt = get_site_option('jetpack_protect_key') . get_site_option('admin_email');
            $num1 = rand(0, 10);
            $num2 = rand(1, 10);
            $sum = $num1 + $num2;
            $ans = sha1($salt . $sum);
            ob_start();
            ?>
			<h2><?php 
            _e('Please solve this math problem to prove that you are not a bot.  Once you solve it, you will need to log in again.', 'jetpack');
            ?>
</h2>
			<?php 
            if ($error) {
                ?>
				<h3><?php 
                _e('Your answer was incorrect, please try again.', 'jetpack');
                ?>
</h3>
			<?php 
            }
            ?>

			<form action="<?php 
            echo wp_login_url();
            ?>
" method="post" accept-charset="utf-8">
				<?php 
            Jetpack_Protect_Math_Authenticate::math_form();
            ?>
				<input type="hidden" name="jetpack_protect_process_math_form" value="1" id="jetpack_protect_process_math_form" />
				<p><input type="submit" value="<?php 
            esc_html_e('Continue &rarr;', 'jetpack');
            ?>
"></p>
			</form>
		<?php 
            $mathage = ob_get_contents();
            ob_end_clean();
            wp_die($mathage);
        }