importName = 'vm'; $this->sessionParams = HIKASHOP_COMPONENT.'vm'; jimport('joomla.filesystem.file'); } function importFromVM() { @ob_clean(); echo $this->getHtmlPage(); $this->token = hikashop_getFormToken(); flush(); if ($this->vm_version==2) { $this->vm_current_lng = JRequest::getString('language'); $app = JFactory::getApplication(); if (!empty($this->vm_current_lng)) $app->setUserState($this->sessionParams.'language',$this->vm_current_lng); else $this->vm_current_lng = $app->getUserState($this->sessionParams.'language'); $this->vm_current_lng = strtolower(str_replace('-','_',$this->vm_current_lng)); $this->db->setQuery("SHOW TABLES LIKE '".$this->db->getPrefix()."virtuemart_products_".$this->vm_current_lng."'"); $table = $this->db->loadObjectList(); } if( isset($_GET['import']) && $_GET['import'] == '1' ) { $time = microtime(true); $processed = $this->doImport(); if($processed) { $elasped = microtime(true) - $time; if( !$this->refreshPage ) echo '
'; echo 'Elasped time: ' . round($elasped * 1000, 2) . 'ms
'; } else { echo 'linkstyle.' href="'.hikashop_completeLink('import&task=show').'">'.JText::_('HIKA_BACK').''; } } else { if ($this->vm_version==2 && !$table) echo 'There is no table corresponding to the language you selected ('.$this->vm_current_lng.') in your database. Please back and select another language.
'. 'linkstyle.' href="'.hikashop_completeLink('import&task=show').'">'.JText::_('HIKA_BACK').''; else echo $this->getStartPage(); } if( $this->refreshPage == true ) { echo ""; } echo '