// Generic script include_once('ini_loader.php'); $my_file = ini::getIni('web','FILENAMING','ONLINE_INIT_FILE'); if( !file_exists($my_file) ) { // Error exit(); } else { include_once($my_file); } // Local script global $hierarch; // Local Execution // Header $hierarch->setOption('devProject','pj0907'); $hierarch->includeHeader( ); $bnd = new bundle(); $main_tld = ini::getIni('tmpl/mktg', 'EXTRA', 'BUNDLES_PRO_MAIN_TLD_PRICE'); $show_monthly_price = ini::getIni('tmpl/mktg', 'EXTRA', 'SHOW_MONTHLY_PRICE'); if($buzzo=='buzzo') { $show_monthly_price = 1; } $bundle_list = array('WEBMAILPROFPRO', 'WEBMAILPROFPRO_UPS'); $price_tot=array(); $price_tot_with_vat=array(); if(is_array($bundle_list)) { foreach($bundle_list as $bundle_code) { $use_tld=''; if($bnd->getBundleType($bundle_code)==2) { $use_tld = $main_tld; } $price_tot[$bundle_code] = $bnd->getFullBundlePrice($bundle_code, $use_tld, $_SESSION['LISTNAME']); $price_tot_with_vat[$bundle_code] = StoreUtils::applyVat($price_tot[$bundle_code]); $price_tot[$bundle_code] = number_format($price_tot[$bundle_code], 2, ',', ''); $price_tot_with_vat[$bundle_code] = number_format($price_tot_with_vat[$bundle_code], 2, ',', ''); $bundmonths = $bnd->getBundleMonthsPrice(); if($show_monthly_price && $bundmonths > 0) { $price_tot[$bundle_code] = round($price_tot[$bundle_code] / $bundmonths, 2); $price_tot_with_vat[$bundle_code] = round(str_replace(',','.',$price_tot_with_vat[$bundle_code]) / $bundmonths, 2); } } } ?>