'; ?>
mark('afterLoad') : null; // Instantiate the application. $app = JFactory::getApplication('site'); // Initialise the application. $app->initialise(); /* $lang =& JFactory::getLanguage(); $ling = $lang->getTag(); /*echo '
';
echo '_REQUEST '.$_REQUEST['virtuemart_currency_id'];
echo '|| _SESSION '.$_SESSION['moeda'].' || ling '.$ling;
echo '
'; */ // //if($ling == 'pt-BR' && empty($_REQUEST['virtuemart_currency_id'])/*|| $_REQUEST['virtuemart_currency_id'] == 20&& !isset($_SESSION['moeda'])*/){ // $_REQUEST['virtuemart_currency_id'] = 20; // $_SESSION['moeda']=$_REQUEST['virtuemart_currency_id']; // //} // //if($ling == 'pt-PT' && empty($_REQUEST['virtuemart_currency_id'])/* ||$_REQUEST['virtuemart_currency_id'] == 202&& !isset($_SESSION['moeda'])*/){ // $_REQUEST['virtuemart_currency_id'] = 202; // $_SESSION['moeda']=$_REQUEST['virtuemart_currency_id']; // //} //if($ling == 'en-GB' && empty($_REQUEST['virtuemart_currency_id'])/*|| $_REQUEST['virtuemart_currency_id'] == 47 && !isset($_SESSION['moeda'])*/){ // $_REQUEST['virtuemart_currency_id'] = 47; // $_SESSION['moeda']=$_REQUEST['virtuemart_currency_id']; // //} //if($ling == 'es-ES' && empty($_REQUEST['virtuemart_currency_id'])/*|| $_REQUEST['virtuemart_currency_id'] == 47 && !isset($_SESSION['moeda'])*/){ // $_REQUEST['virtuemart_currency_id'] = 203; // $_SESSION['moeda']=$_REQUEST['virtuemart_currency_id']; // //} //$_SESSION['moeda'] =$_REQUEST['virtuemart_currency_id'] ;*/ //if(isset($_SESSION['moeda']))$_SESSION['moeda']=$_REQUEST['virtuemart_currency_id']; //echo $_SESSION['moeda']; //COOKIE BSOLUS /* $uri = &JFactory::getURI(); $web = $uri->root(); $website = $web; $unique_id = str_replace('http://','',$web); $unique_id = str_replace('/','',$unique_id); $unique_id = str_replace('.','_',$unique_id); $expire =time()+60*60*24*30; //Configurar por Backoffice $user =& JFactory::getUser(); $user_id =$user->id; $uri = &JFactory::getURI(); $web = $uri->root(); $unique_id = str_replace('http://','',$web); $unique_id = str_replace('/','',$unique_id); $unique_id = str_replace('.','_',$unique_id); $expire =time()+60*60*24*30; if(isset($_POST['virtuemart_currency_id']) && isset($_POST['language'])){ $namecookie ="loja5cookie_".$unique_id."_lang_ini"; $info['virtuemart_currency_id']=$_POST['virtuemart_currency_id']; $info['language']=$_POST['language']; $value = json_encode($info); $path='/'; $domain=$website; setcookie($namecookie, $value,$expire,$path); } else{ if(!isset($_COOKIE['loja5cookie_'.$unique_id.'_lang_ini'])){ header( 'Location: '.$website .'changeinfo.html' ) ; } } */ // Mark afterIntialise in the profiler. JDEBUG ? $_PROFILER->mark('afterInitialise') : null; // Route the application. $app->route(); // Mark afterRoute in the profiler. JDEBUG ? $_PROFILER->mark('afterRoute') : null; BHelper::configLang(); // Dispatch the application. $app->dispatch(); // Mark afterDispatch in the profiler. JDEBUG ? $_PROFILER->mark('afterDispatch') : null; // Render the application. $app->render(); // Mark afterRender in the profiler. JDEBUG ? $_PROFILER->mark('afterRender') : null; // Return the response. echo $app;