site_info->layout = 'shipandbunker_com'; $app_config->site_info->toolbar = array( 'layout' => 'default', 'show_on_authgroup' => 'Editorial', 'buttons' => array( 'Site Pages' => array( 'show_on_authgroup' => 'SuperUser', 'class' => 'manage_site_pages', 'link' => '/admin/pages', 'modal' => false, 'onEditable' => true, 'spacer' => true, ) ) ); $app_config->site_info->controllers = 'default'; $app_config->site_info->pages = 'shipandbunker'; $app_config->site_info->blocks = array( 'ForgotPassword_Block', 'Login_Block', 'SabLogin_Block', 'ResetPassword_Block', 'SabSignup_Block', 'SabUserAccount_Block', 'SabUserActivate_Block', 'ManageSitePages_Block', 'TextWithImage_Block', 'TextImageSab_Block', 'TextWithPullQuote_Block', 'Image_Block', 'Video_Block', 'HTML_Block', 'HTML_Block_Sub_Only', 'HTML_Block_No_Sub', 'Checkout_Block', 'Article_Block', 'ArticlePopular_Block', 'ArticlePromotion_Block', 'ArticleLatest_Block', 'ArticleLatestSide_Block', 'ArticleStreams_Block', 'ArticleAlsoReadSide_Block', 'ArticleTopStories_Block', 'AlsoInTheNewsFrontPage_Block', 'ArticleWithTopicSide_Block', 'ArticleArchive_Block', 'ArticlePortSearch_Block', 'MarketPrices_Block', 'MarketPriceGraph_Block', 'MarketSubRegion_Block', 'MarketRegion_Block', 'MarketCountry_Block', 'TopPortsSide_Block', 'PortOverview_Block', 'OilPricesSide_Block', 'PageRedirect_Block', 'NewsNav_Block', 'PortNav_Block', 'BINav_Block', 'SabGenericNav_Block', 'Store_Block', 'SabSubscribe_Block', 'SabSubscriptionPackage_Block', 'SabCheckout_Block', 'ShoppingCart_Block', 'PaymentConfirmation_Block', 'Orders_Block', 'Receipt_Block', 'Products_Block', 'EmailForm_Block', 'EmailForm2_Block', 'Downloads_Block', 'Download_Block' ); $app_config->site_info->rss_link = 'https://feeds.feedburner.com/shipandbunker'; $app_config->site_info->site_id = 2; // Site Id $app_config->site_info->site_friendly_id = 'SAB'; // Site friendly ID //$app_config->site_info->site_friendly_id = 'shipandbunker_com'; // Site friendly ID $app_config->site_info->description = 'Ship & Bunker - News, Exclusive Features, Bunker Price Indications - The World\'s Most Read Publication for the Marine Fuels Industry'; $app_config->site_info->keywords = 'bunker, prices, bunker fuel, bunker prices, bunker indications, marine fuel, bunkering, bunker news, marine news, shipping news'; $app_config->site_info->site_names = array( 'long' => 'Ship & Bunker - Shipping News and Bunker Price Indications', 'short' => 'Ship & Bunker', 'domain' => 'shipandbunker.com', ); $app_config->site_info->emails = array( 'do_not_reply' => 'do_not_reply@shipandbunker.com', 'support' => 'support@shipandbunker.com', ); $app_config->site_info->logo_filename = 'logo2.png'; $app_config->site_info->site_style = 'sab'; $app_config->site_info->ga_account = 'UA-29996041-1'; $app_config->site_info->ga_domain = null; // Define switch for running site-wide frame ad $app_config->site_info->frame_ad = true; $app_config->site_info->receipt = array( 'site_name'=>$app_config->site_info->site_names['short'], 'from'=>$app_config->site_info->emails['do_not_reply'], //'background_colour'=>'#072929', 'background_colour'=>'#FFFFFF', 'table_border_colour'=>'#C7CDCE', 'table_header_background_colour'=>'#DDDDDD', 'table_subheader_background_colour'=>'#DFE5E6', 'content_width'=>'600px;', 'terms_background_colour'=>'#EEEEEE' ); // Mark if we are coop or scoop. $app_config->site_info->hostname = gethostname(); $app_config->boot(); //$app_config->site_info->receipt['header_img'] = $app_config->site_info->instance_static_url.'/s/img/'.$app_config->site_info->logo_filename; $app_config->site_info->receipt['header_img'] = $app_config->site_info->instance_static_url.'/s/img/invoice_logos.png'; // UnHTTPS the header image. $app_config->site_info->receipt['header_img'] = str_replace('https', 'http', $app_config->site_info->receipt['header_img']); // function getAppConfig() { global $app_config; return $app_config; } $request = new Request; try { $resource = $request->loadResource(); $response = $resource->exec($request); } catch (ResponseException $e) { switch ($e->getCode()) { case Response::UNAUTHORIZED: $response = $e->response($request); $response->addHeader('WWW-Authenticate', 'Basic realm="Tonic"'); break; case Response::NOTFOUND: $resource = new NotFound(); $response = $resource->exec($request); break; default: $response = $e->response($request); } } $response->output(); exit; ?>