}
                    break;
                case 'banStoryPoster':
                    if (isset($_GET['cid']) and is_numeric($_GET['cid'])) {
                        $cid = $_GET['cid'];
                        require_once PATH_CORE . "/classes/content.class.php";
                        $cObj = new content($db);
                        $code = $cObj->ajaxBanStoryPoster($app, $cid, $userid);
                    }
                    break;
                case 'chooseHood':
                    if (isset($_GET['hood'])) {
                        $hood = $_GET['hood'];
                        require_once PATH_FACEBOOK . "/classes/local.class.php";
                        $lObj = new local($db);
                        $code = $lObj->ajaxUpdateHood($hood, $userid);
                    }
                    break;
            }
        } else {
            // session is NOT valid
            $code = fetchSessionAlert();
        }
    }
}
echo $code;
function setupAppFramework()
{
    /* initialize the SMT Facebook appliation class, NO Facebook library */
    require_once PATH_FACEBOOK . "/classes/app.class.php";
    global $app, $db, $session;