private function init($php_base, $base, $slug, $directory, $currency) { include_once $php_base . '/_libs/php/api.php'; include_once $php_base . '/_libs/php/vendors/parsedown.php'; include_once $php_base . '/_libs/php/vendors/mustache.php'; self::$api = new blockstrap_api($base, $slug, $directory, $currency); }
MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMDZZZZZIIIIIIIZZZZZ8MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM8ZZZZZZZZZOMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMOZ8MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM MMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMMM TO LEARN MORE ABOUT OUR APIs and FRAMEWORK, PLEASE READ OUR DOCUMENTATION - http://docs.blockstrap.com */ error_reporting(-1); $base = dirname(__FILE__); include_once $base . '/_libs/php/bs.php'; include_once $base . '/_libs/php/cache.php'; BlockstrapCache::config('stats', array('engine' => 'BlockstrapFileEngine', 'key_prefix' => 'bc_stats', 'cache_duration' => 10, 'path' => '/media/temp/bc_cache')); BlockstrapCache::config('blocks', array('engine' => 'BlockstrapFileEngine', 'key_prefix' => 'bc_blocks', 'cache_duration' => 600, 'path' => '/media/temp/bc_cache')); BlockstrapCache::config('shortterm', array('engine' => 'BlockstrapFileEngine', 'key_prefix' => 'bc_shortterm', 'cache_duration' => 60, 'path' => '/media/temp/bc_cache')); $bs = new blockstrap_core($base); $slug = $bs->slug($_SERVER); $currency = $bs->currency($_SERVER); $directory = $bs->directory($_SERVER, $base); $data = $bs->data($base, $slug, $directory, $currency); $html = $bs->html($base, $slug, $directory); $content = $bs->content($base, $slug, $directory); if (isset($_GET['debug']) && $_GET['debug'] == true) { var_dumped($data); var_dumped($html); var_dumped($content); } // ADD CONTENT TO DATA $data['content'] = $content; // MERGE DATA AND HTML $bs->display($html, $data);