true, 'jpegQuality' => 60); $thumb = PhpThumbFactory::create($mediaDir.$file); $str[2] == "R" ? $thumb->resize($w,$h) : $thumb->adaptiveResize($w,$h); $thumb->show(); exit(); } session_start(); //echo session_id(); /* ini_set('display_errors',1); error_reporting(E_ALL); */ require_once 'classes/initialize.php'; if(isset($_GET['l'])){ $link = strtolower($db->escape_value($_GET['l'])); $l = $db->select("SELECT * FROM clicks WHERE link = '$link'"); $l = $l[0]; if((int)$l['conta'] == 0){ $db->insert("INSERT INTO clicks SET link = '$link', conta = 1"); }else{ $db->insert("UPDATE clicks SET conta = conta + 1 WHERE id = '{$l['id']}'"); } exit(); } /* print_r($_SESSION); print_r($_POST); */ ob_start(); ob_implicit_flush(0); $css[]=''; $css[]=''; $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[]=''; //$js[]=''; //$css[]=''; $js[]=''; $sugar->charset = 'UTF-8'; /* TAGS */ $tags = $database->select("SELECT * FROM tags"); $sugar->set("tags", $tags); $social_description == "" ? $final_description = $site_main_description : $final_description = $social_description; $default_social_image = $siteUrl."/social.jpg"; $social_title = $fb_title != "" ? $fb_title : $site_main_title." | ".$site_title; $social_description = $fb_description != "" ? $fb_description : $final_description; $social_image = $fb_image != "" ? $fb_image : $default_social_image; $sugar->set('social_title', $social_title); $sugar->set('social_description', $social_description); $sugar->set('social_image', $social_image); $sugar->set('site_title',$site_main_title." | ".$site_title); $sugar->set('site_description',$final_description); $sugar->set('site_keywords',$site_main_keywords); if(site::logged_user_data()) { $sugar->set("logged", 1); } $categorias = store::list_categories(); $mainmenu = '"; $menu = ""; //$menu .= site::include_menu(0,0,$_GET['content']); $sugar->set('main_menu', $mainmenu); $sugar->set('sec_menu', site::include_secmenu(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',(int)cart::cart_get_numberItems(session_id())); if($userinfo = site::logged_user_data()){ $sugar->set('user', $userinfo); } //modules links $sugar->set('cart_items', (int)cart::cart_get_numberItems()); $sugar->set('tempdir', $siteFolder); $sugar->set('partner_link', $siteUrl.site::get_content_seo(16)); $sugar->set('store_link', $siteUrl.site::get_content_seo($module_ids['store'])); $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('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]); } require_once("suporte/b.php"); $sugar->set('chat_status', $chatstatus); $sugar->display("index"); print_gzipped_page();