芝麻web文件管理V1.00
编辑当前文件:/home/p/r/i/prismawe/clients/canaldegap.fr/modules/ModuleManager/function.newversionstab.php
modules); if( !count($modules ) ) { $smarty->assign('nvmessage',$this->Lang('error_nomodules')); } else { $url = $this->GetPreference('module_repository'); if( $url == '' ) { $this->_DisplayErrorPage( $id, $params, $returnid, $this->Lang('error_norepositoryurl')); return; } $nusoap =& $this->GetModuleInstance('nuSOAP'); $nusoap->Load(); $nu_soapclient =& new nu_soapclient($url,false,false,false,false,false,90,90); if( $err = $nu_soapclient->GetError() ) { $this->_DisplayErrorPage( $id, $params, $returnid, 'SOAP Error: '.$err); return; } $parms = implode(',',$modules); $versions = $nu_soapclient->call('ModuleRepository.soap_listmoduleversions',$parms); if( $err = $nu_soapclient->GetError() ) { $this->_DisplayErrorPage( $id, $params, $returnid, 'SOAP Error: '.$err); echo htmlspecialchars($nu_soapclient->response); return; } if( !$versions ) { $this->_DisplayErrorPage( $id, $params, $returnid, $this->Lang('error_nomatchingmodules') ); return; } $results = array(); foreach( $versions as $name => $version ) { $txt = ''; $mod =& $this->GetModuleInstance($name); if( !is_object($mod) ) { $txt = $this->Lang('error_module_object',$name); } else { $mver = $mod->GetVersion(); if( version_compare($version,$mver) > 0 ) { $txt = $this->Lang('upgrade_available',$version,$mver); } } if( !empty($txt) ) { $results[$name] = $txt; } } if( !count($results) ) { $smarty->assign('nvmessage',$this->Lang('all_modules_up_to_date')); } else { $smarty->assign('updatestxt',$this->Lang('available_updates')); $smarty->assign('updates',$results); } } echo $this->ProcessTemplate('newversionstab.tpl'); # EOF ?>