define('__APP_TEMPLATE_TPL_ASSETS__', __APP_TEMPLATE_INC__ . '/templates');
    define('__APP_TEMPLATE_CSS_ASSETS__', __APP_TEMPLATE_ASSETS__ . '/css');
    define('__APP_TEMPLATE_JS_ASSETS__', __APP_TEMPLATE_ASSETS__ . '/js');
    define('__APP_TEMPLATE_IMAGE_ASSETS__', __APP_TEMPLATE_ASSETS__ . '/images');
    //Normal
    define('__APP_ASSETS__', APP_FRONTEND_DIR . '/assets');
    define('__APP_PUB_ASSETS__', __APP_URL__ . '/assets');
    define('__APP_PHP_ASSETS__', __APP_ASSETS__ . '/php');
    define('__APP_TPL_ASSETS__', __APP_ASSETS__ . '/templates');
    define('__APP_CSS_ASSETS__', __APP_PUB_ASSETS__ . '/css');
    define('__APP_JS_ASSETS__', __APP_PUB_ASSETS__ . '/js');
    define('__APP_IMAGE_ASSETS__', __APP_PUB_ASSETS__ . '/images');
    if (!defined('FORM_VAR_ENC_KEY')) {
        define('FORM_VAR_ENC_KEY', md5('aeckiIE99381923'));
    }
    if (defined('APP_CONTROL_LOC')) {
        if (file_exists(APP_CONTROL_LOC)) {
            $strOldPrependLoc = sprintf('%s/_core/inc/php/prepend.inc.php', APP_BACKEND_DIR);
            if (file_exists($strOldPrependLoc)) {
                require_once $strOldPrependLoc;
            } else {
                require_once sprintf('%s/prepend.inc.php', APP_BACKEND_DIR);
            }
            require_once APP_CONTROL_LOC;
        } else {
            throw new Exception("Control file not found in Account App FTP Dir(" . APP_CONTROL_LOC . ")");
        }
    }
}
SApplication::AddRunFunction('FRAMEWK_RUN');
SApplication::LoadPackage('facebook', '0.01');