assignRef('latestVersion', $latestVersion); $freshInstall = vRequest::getInt('redirected',0); if($freshInstall){ $this->setLayout('install'); } //For uncached file permissions clearstatcache(); vmLanguage::loadJLang('com_virtuemart_config'); parent::display($tpl); } public function renderTaskButton($task, $descr, $extra=''){ $link= JRoute::_('index.php?option=com_virtuemart&view=updatesmigration&task='.$task.'&'.JSession::getFormToken().'=1'.$extra ); $html = '
'; return $html; } function writePathLines($folders){ $style = 'text-align:left;margin-left:20px;'; $result = ''.$dir . ' | '; $result .= ''; //$result .= JFolder::exists( $dir ) if($ex = JFolder::exists( $dir )){ $c = 'green'; $t = 'COM_VM_FEXISTS'; $p = substr(decoct(fileperms($dir)),2); } else { $c = 'red'; $t = 'COM_VM_FNOTEXISTS'; $p = ''; } $result .= ''.vmText::_($t).''; //? ''.vmText::_('COM_VM_FEXISTS').'' //: ''.vmText::_('COM_VM_FNOTEXISTS').''; $result .= ' | '; if(is_writable( $dir )){ $c = 'green'; $t = 'COM_VIRTUEMART_WRITABLE'; } else { $c = 'red'; $t = 'COM_VIRTUEMART_UNWRITABLE'; } $result .= ''.vmText::_($t).''; /*$result .= is_writable( $dir ) ? ''.vmText::_('COM_VIRTUEMART_WRITABLE').'' : ''.vmText::_('COM_VIRTUEMART_UNWRITABLE').'';*/ $result .= ' | '.$p . ' | '; $result .= '