true, 'jpegQuality' => 60); $thumb = PhpThumbFactory::create($mediaDir.$file); $str[2] == "R" ? $thumb->resize($w,$h) : $thumb->adaptiveResize($w,$h); $thumb->show(); exit(); } session_start(); /* ini_set('display_errors',1); error_reporting(E_ALL); */ require_once 'classes/initialize.php'; /* echo "
";
print_r($_SESSION);
echo "
"; */ ob_start(); ob_implicit_flush(0); $css[]=''; $css[]=''; $css[]=''; $css[]=''; $css[]=''; /*$css[]=''; $css[]=''; $css[]=''; */$css[]=''; $css[]=''; $css[]=''; $css[]=''; $css[]=''; $js[]=''; $js[]=''; $js[]=''; $js[]=''; //$js[]=''; //$js[]=''; //$js[]=''; //$js[]=''; //$js[]=''; //$js[]=''; //$js[]=''; $js[]=''; $js[]=''; $js[]=''; $js[]=''; $js[]=''; $js[]=''; $js[]=''; $js[]=''; $js[]=''; //$js[]=''; $js[]=''; $js[]=''; $sugar->charset = 'UTF-8'; $param1 = explode("/",$_GET["get"]); $sugar->set('main_menu', site::include_menu(0,0,$_GET['content'], $param1[1])); //$sugar->set('sec_menu', site::include_menu(1)); $sugar->set('lang_menu', site::include_langmenu()); $sugar->set('langs', site::lang_array()); //carinho de compras e login de cliente $sugar->set('total_cart_items',cart::cart_get_numberItems(session_id())); if($userinfo = site::logged_user_data()){ $sugar->set('user', $userinfo); } //modules links $sugar->set('tempdir', $siteFolder); $sugar->set('partner_link', $siteUrl.site::get_content_seo(16)); $sugar->set('store_link', $siteUrl.site::get_content_seo(2)); $sugar->set('customer_link', $siteUrl.site::get_content_seo($module_ids['customer'])); $sugar->set('site_title',$site_main_title." | ".$site_title); $social_description == "" ? $final_description = $site_main_description : $final_description = $social_description; $sugar->set('site_description',$final_description); $sugar->set('site_keywords',$site_main_keywords); $sugar->set('toplogin', site::top_logincart_description()); $sugar->set('root', $siteUrl); $sugar->set('lang', $L_index); //content replacements $content_output = str_replace("./",$siteUrl,$content_output); // $sugar->set('content', $content_output); $sugar->set('idioma', $l); $sugar->set('media_url', $mediaUrl); $sugar->set('article_id', site::get_content_id($_GET['content'])); $sugar->set('breadcrumb', $main_breadcrumb.$breadcrumb); $sugar->set('top_image', $mediaUrl.site::get_top_image()); $sugar->set('country_list', site::get_country_list()); $sugar->set('ano', date("Y")); $sugar->set('lang_input_search', $L_input_search); $sugar->set('css', implode("",$css)); $sugar->set('js', implode("",$js)); $social_thumb == "" ? $social_thumb = $mediaUrl."/social_thumb.jpg" : NULL; $sugar->set('social_thumbnail', $social_thumb); if(isset($activation_state)) { $sugar->set('activation', "true"); $sugar->set('activation_message', $L_index["activation_message_".$activation_state]); } $sugar->display("index"); print_gzipped_page();