= 2 ) { define( 'BIT_BASE_HOST', substr( $_SERVER['HTTP_HOST'], strpos( $_SERVER['HTTP_HOST'], '.') + 1 ) ); } else { define( 'BIT_BASE_HOST', $_SERVER['HTTP_HOST'] ); } // set the currect version of bitweaver // if this version of bitweaver needs a visit to the installer, update the number in /bit_setup_inc.php if( !defined( 'BIT_MAJOR_VERSION' ) ) { define( 'BIT_MAJOR_VERSION', '4' ); define( 'BIT_MINOR_VERSION', '0' ); define( 'BIT_SUB_VERSION', '0' ); define( 'BIT_LEVEL', '' ); // dev < alpha < beta < RC# < '' < pl } // When updating to certain versions of bitweaver, we need to force a visit to the installer to fix certain stuff in the database. // Enter the minimum version number here in the format: '2.1.0-beta' if( !defined( 'MIN_BIT_VERSION' ) ) { define( 'MIN_BIT_VERSION', '4.0.0' ); } // These defines have to happen FIRST because core classes depend on them. // This means these packages *CANNOT* be renamed define( 'INSTALL_PKG_PATH', BIT_ROOT_PATH.'install/' ); define( 'INSTALL_PKG_URL', BIT_ROOT_URL.'install/' ); define( 'KERNEL_PKG_DIR', 'kernel' ); define( 'KERNEL_PKG_NAME', 'kernel' ); define( 'KERNEL_PKG_PATH', BIT_ROOT_PATH.'kernel/' ); define( 'KERNEL_PKG_URL', BIT_ROOT_URL.KERNEL_PKG_DIR.'/' ); define( 'CONFIG_PKG_PATH', BIT_ROOT_PATH.'config/' ); define( 'LANGUAGES_PKG_PATH', BIT_ROOT_PATH.'languages/' ); define( 'LIBERTY_PKG_DIR', 'liberty' ); define( 'LIBERTY_PKG_NAME', 'liberty' ); define( 'LIBERTY_PKG_PATH', BIT_ROOT_PATH.'liberty/' ); if( !defined( 'STORAGE_PKG_NAME' ) ) { define( 'STORAGE_PKG_NAME', 'storage' ); } if( !defined( 'STORAGE_PKG_PATH' ) ) { define( 'STORAGE_PKG_PATH', BIT_ROOT_PATH.'storage/' ); } define( 'THEMES_PKG_PATH', BIT_ROOT_PATH.'themes/' ); define( 'USERS_PKG_PATH', BIT_ROOT_PATH.'users/' ); define( 'UTIL_PKG_PATH', BIT_ROOT_PATH.'util/' ); define( 'EXTERNAL_LIBS_PATH', BIT_ROOT_PATH.'externals/' ); // =================== Global Variables =================== // If for any reason this isn't set, nothing will work - nada, zilch... if( empty( $gBitDbHost ) ) { $gBitDbHost = 'localhost'; } // $gPreScan can be used to specify the order in which packages are scanned by // the kernel. In the example provided below, the kernel package is processed // first, followed by the users and liberty packages. Any packages not // specified in $gPreScan are processed in the traditional order global $gPreScan; if( empty( $gPreScan ) ) { $gPreScan = array( 'config', 'kernel', 'storage', 'liberty', 'themes', 'users' ); } // here we set the default thumbsizes we use in bitweaver. // order matters since successively smaller thumbs are used from the preceding thumb for speed increase. // you can override these by populating this hash in your config/kernel/config_inc.php global $gThumbSizes; if( empty( $gThumbSizes )) { $gThumbSizes = array( 'large' => array( 'width' => 1200, 'height' => 900 ), 'medium' => array( 'width' => 800, 'height' => 600 ), 'small' => array( 'width' => 400, 'height' => 300 ), 'avatar' => array( 'width' => 200, 'height' => 150 ), 'icon' => array( 'width' => 100, 'height' => 100 ), ); } ?>