<?php 
    require 'common.php';
    $current_menu = $_SESSION["selected_menu"];
    $r = new response();
    if(check_call_end($r) === false)
    {
        if($current_menu == $SUPPORT_MEDICAL_ISSUES || $current_menu == $SUPPORT_GOVT_SCHOOLS)
        {
            if(!isset($_SESSION["selected_pincode"]))
            {
                if(isset($_SESSION['pincode_error_count']))
                {
                    unset($_SESSION['pincode_error_count']);
                }
                $r->addGoto($APP_BASE_URL."/collect_pincode.php");
            }
        }
        else 
        {
            play_message($r,$current_menu);
            add_step($current_menu);
            $r->addGoto($APP_BASE_URL."/exit_menu.php");
        }
        $r->send();
    }
?>