Rev 1143 | Rev 1180 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 1143 | Rev 1149 | ||
---|---|---|---|
Line 264... | Line 264... | ||
264 | 264 | ||
265 | $out['text'] .= _L('Local installation: %1',($local_installation ?: _L('unknown'))).'<br>'; |
265 | $out['text'] .= _L('Local installation: %1',($local_installation ?: _L('unknown'))).'<br>'; |
266 | $out['text'] .= _L('Latest published version: %1',($newest_version ?: _L('unknown'))).'<br><br>'; |
266 | $out['text'] .= _L('Latest published version: %1',($newest_version ?: _L('unknown'))).'<br><br>'; |
267 | 267 | ||
268 | if (!$newest_version) { |
268 | if (!$newest_version) { |
269 | if (!function_exists('curl_init')) { |
269 | if (!url_post_contents_available()) { |
270 | $out['text'] .= '<p><font color="red">'._L('OIDplus could not determine the latest version.').'<br>'._L('The "%1" PHP extension is not installed at your system. Please enable the PHP extension <code>%2</code>.','CURL','php_curl').'</font></p>'; |
270 | $out['text'] .= '<p><font color="red">'._L('OIDplus could not determine the latest version.').'<br>'._L('The "%1" PHP extension is not installed at your system. Please enable the PHP extension <code>%2</code>.','CURL','php_curl').'</font></p>'; |
271 | } else { |
271 | } else { |
272 | $out['text'] .= '<p><font color="red">'._L('OIDplus could not determine the latest version.').'<br>'._L('Probably the ViaThinkSoft server could not be reached.').'</font></p>'; |
272 | $out['text'] .= '<p><font color="red">'._L('OIDplus could not determine the latest version.').'<br>'._L('Probably the ViaThinkSoft server could not be reached.').'</font></p>'; |
273 | } |
273 | } |
274 | $out['text'] .= '</div>'; |
274 | $out['text'] .= '</div>'; |
Line 461... | Line 461... | ||
461 | $requireInfo = ($installType === 'svn-wc') ? _L('shell access with svn/svnversion tool, or PDO/SQLite3 PHP extension') : _L('shell access with Git client'); |
461 | $requireInfo = ($installType === 'svn-wc') ? _L('shell access with svn/svnversion tool, or PDO/SQLite3 PHP extension') : _L('shell access with Git client'); |
462 | $updateCommand = ($installType === 'svn-wc') ? 'svn update' : 'git pull'; |
462 | $updateCommand = ($installType === 'svn-wc') ? 'svn update' : 'git pull'; |
463 | 463 | ||
464 | if (!$newest_version) { |
464 | if (!$newest_version) { |
465 | $out_stat = 'WARN'; |
465 | $out_stat = 'WARN'; |
466 | if (!function_exists('curl_init')) { |
466 | if (!url_post_contents_available()) { |
467 | $out_msg = _L('OIDplus could not determine the latest version.').' '._L('The "%1" PHP extension is not installed at your system. Please enable the PHP extension <code>%2</code>.','CURL','php_curl'); |
467 | $out_msg = _L('OIDplus could not determine the latest version.').' '._L('The "%1" PHP extension is not installed at your system. Please enable the PHP extension <code>%2</code>.','CURL','php_curl'); |
468 | } else { |
468 | } else { |
469 | $out_msg = _L('OIDplus could not determine the latest version.').' '._L('Probably the ViaThinkSoft server could not be reached.'); |
469 | $out_msg = _L('OIDplus could not determine the latest version.').' '._L('Probably the ViaThinkSoft server could not be reached.'); |
470 | } |
470 | } |
471 | } else if (!$local_installation) { |
471 | } else if (!$local_installation) { |
Line 482... | Line 482... | ||
482 | $local_installation = OIDplus::getVersion(); |
482 | $local_installation = OIDplus::getVersion(); |
483 | $newest_version = $this->getLatestRevision(); |
483 | $newest_version = $this->getLatestRevision(); |
484 | 484 | ||
485 | if (!$newest_version) { |
485 | if (!$newest_version) { |
486 | $out_stat = 'WARN'; |
486 | $out_stat = 'WARN'; |
487 | if (!function_exists('curl_init')) { |
487 | if (!url_post_contents_available()) { |
488 | $out_msg = _L('OIDplus could not determine the latest version.').' '._L('The "%1" PHP extension is not installed at your system. Please enable the PHP extension <code>%2</code>.','CURL','php_curl'); |
488 | $out_msg = _L('OIDplus could not determine the latest version.').' '._L('The "%1" PHP extension is not installed at your system. Please enable the PHP extension <code>%2</code>.','CURL','php_curl'); |
489 | } else { |
489 | } else { |
490 | $out_msg = _L('OIDplus could not determine the latest version.').' '._L('Probably the ViaThinkSoft server could not be reached.'); |
490 | $out_msg = _L('OIDplus could not determine the latest version.').' '._L('Probably the ViaThinkSoft server could not be reached.'); |
491 | } |
491 | } |
492 | } else if (!$local_installation) { |
492 | } else if (!$local_installation) { |