importName = 'vm'; $this->sessionParams = HIKASHOP_COMPONENT.'vm'; jimport('joomla.filesystem.file'); } function importFromVM() { @ob_clean(); echo $this->getHtmlPage(); $this->token = hikashop_getFormToken(); $app = JFactory::getApplication(); flush(); if( isset($_GET['import']) && $_GET['import'] == '1' ) { $time = microtime(true); $this->vmprefix = $app->getUserState($this->sessionParams.'vmPrefix'); if ($this->vm_version==2) $this->vm_current_lng = $app->getUserState($this->sessionParams.'language'); $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 { echo $this->getStartPage(); } if( $this->refreshPage == true ) { echo ""; } echo '