<?php

define('__SDATALAYER_PACKAGE_VERSION__', '0.01');
define('__SDATALAYER_DIR__', __PACKAGE_DIR__ . '/sdatalayer/' . __SDATALAYER_PACKAGE_VERSION__);
//require(__SDATALAYER_DIR__ . '/inc/FBPollApplicationBase.class.php');
define('__SDATALAYER_PHP_ASSETS__', __SDATALAYER_DIR__ . '/inc/php');
SApplication::AddClass('BaseEntity', __SDATALAYER_PHP_ASSETS__ . '/BaseEntity.class.php');
SApplication::AddClass('BaseEntityCollection', __SDATALAYER_PHP_ASSETS__ . '/BaseEntityCollection.class.php');
SApplication::AddClass('DataConnectionBase', __SDATALAYER_PHP_ASSETS__ . '/DataConnectionBase.class.php');
SApplication::AddClass('MFBDateTime', __SDATALAYER_PHP_ASSETS__ . '/MFBDateTime.class.php');
SApplication::AddClass('LoadDriver', __SDATALAYER_PHP_ASSETS__ . '/LoadDriver.class.php');
SApplication::AddClass('MySqlDataConnection', __SDATALAYER_PHP_ASSETS__ . '/MySqlDataConnection.class.php');
    return $strRendered;
}
//die($strControlFilePath);
//check to see if the control file exists on the front end
define('__FRMWK_CORE_ASSETS__', __PACKAGE_DIR__ . '/framework/' . __MFB_FRMWK_VERSION__);
define('__FRMWK_CORE_PUB_ASSETS__', CONTENT_URL . '/packages/framework/' . __MFB_FRMWK_VERSION__);
//Core
define('__FRMWK_CORE_CSS_ASSETS__', __FRMWK_CORE_ASSETS__ . '/css');
define('__FRMWK_CORE_PHP_ASSETS__', __FRMWK_CORE_ASSETS__ . '/inc/php');
define('__FRMWK_CORE_TPL_ASSETS__', __FRMWK_CORE_ASSETS__ . '/inc/templates');
define('__FRMWK_CORE_PUB_PHP_ASSETS__', __FRMWK_CORE_PUB_ASSETS__ . '/inc/php');
define('__FRMWK_CORE_PUB_JS_ASSETS__', __FRMWK_CORE_PUB_ASSETS__ . '/js');
define('__FRMWK_CORE_PUB_CSS_ASSETS__', __FRMWK_CORE_PUB_ASSETS__ . '/css');
define('__FRMWK_CORE_PUB_IMAGE_ASSETS__', __FRMWK_CORE_PUB_ASSETS__ . '/images');
define('__FRMWORK_SQL___', __FRMWK_DIR__ . '/sql');
SApplication::AddClass('SFB', __FRMWK_CORE_PHP_ASSETS__ . '/SchematicalFacebookClient.class.php');
function FRAMEWK_RUN()
{
    define('__APP_ROOT__', APP_FRONTEND_DIR);
    define('__APP_TEMPLATE_ASSETS__', sprintf('%s/app_templates/%s/_core/assets', CONTENT_URL, APP_TEMPLATE_LOC));
    define('__APP_CORE_ASSETS__', APP_BACKEND_CORE_DIR . '/inc');
    define('__APP_CORE_PUB_ASSETS__', __APP_URL__ . '/assets');
    //TODO: Fix this to point at the right spot
    define('__APP_CORE_PHP_ASSETS__', __APP_CORE_ASSETS__ . '/php');
    define('__APP_CORE_TPL_ASSETS__', __APP_CORE_ASSETS__ . '/templates');
    define('__APP_CORE_PUB_CSS_ASSETS__', __APP_CORE_PUB_ASSETS__ . '/css');
    define('__APP_CORE_PUB_JS_ASSETS__', __APP_CORE_PUB_ASSETS__ . '/js');
    define('__APP_IMAGE_PUB_ASSETS__', __APP_CORE_PUB_ASSETS__ . '/images');
    //Normal
    define('__APP_TEMPLATE_INC__', APP_BACKEND_DIR . '/_core/inc');
    define('__APP_TEMPLATE_PHP_ASSETS__', __APP_TEMPLATE_INC__ . '/php');