Subversion Repositories oidplus

Rev

Rev 1050 | Rev 1086 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1050 Rev 1061
Line 229... Line 229...
229
 
229
 
230
                                $out['text'] .= _L('Local installation: %1',($local_installation ? $local_installation : _L('unknown'))).'<br>';
230
                                $out['text'] .= _L('Local installation: %1',($local_installation ? $local_installation : _L('unknown'))).'<br>';
231
                                $out['text'] .= _L('Latest published version: %1',($newest_version ? $newest_version : _L('unknown'))).'<br><br>';
231
                                $out['text'] .= _L('Latest published version: %1',($newest_version ? $newest_version : _L('unknown'))).'<br><br>';
232
 
232
 
233
                                if (!$newest_version) {
233
                                if (!$newest_version) {
-
 
234
                                        if (!function_exists('curl_init')) {
-
 
235
                                                $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>';
-
 
236
                                        } else {
234
                                        $out['text'] .= '<p><font color="red">'._L('OIDplus could not determine the latest version. Probably the ViaThinkSoft server could not be reached.').'</font></p>';
237
                                                $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>';
-
 
238
                                        }
235
                                        $out['text'] .= '</div>';
239
                                        $out['text'] .= '</div>';
236
                                } else if (!$local_installation) {
240
                                } else if (!$local_installation) {
237
                                        if ($installType === 'svn-snapshot') {
241
                                        if ($installType === 'svn-snapshot') {
238
                                                $out['text'] .= '<p><font color="red">'._L('OIDplus could not determine its version.').'</font></p>';
242
                                                $out['text'] .= '<p><font color="red">'._L('OIDplus could not determine its version.').'</font></p>';
239
                                        } else {
243
                                        } else {
Line 396... Line 400...
396
                                $requireInfo = ($installType === 'svn-wc') ? _L('shell access with svn/svnversion tool, or PDO/SQLite3 PHP extension') : _L('shell access with Git client');
400
                                $requireInfo = ($installType === 'svn-wc') ? _L('shell access with svn/svnversion tool, or PDO/SQLite3 PHP extension') : _L('shell access with Git client');
397
                                $updateCommand = ($installType === 'svn-wc') ? 'svn update' : 'git pull';
401
                                $updateCommand = ($installType === 'svn-wc') ? 'svn update' : 'git pull';
398
 
402
 
399
                                if (!$newest_version) {
403
                                if (!$newest_version) {
400
                                        $out_stat = 'WARN';
404
                                        $out_stat = 'WARN';
-
 
405
                                        if (!function_exists('curl_init')) {
-
 
406
                                                $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');
-
 
407
                                        } else {
401
                                        $out_msg  = _L('OIDplus could not determine the latest version. Probably the ViaThinkSoft server could not be reached.');
408
                                                $out_msg  = _L('OIDplus could not determine the latest version.').' '._L('Probably the ViaThinkSoft server could not be reached.');
-
 
409
                                        }
402
                                } else if (!$local_installation) {
410
                                } else if (!$local_installation) {
403
                                        $out_stat = 'WARN';
411
                                        $out_stat = 'WARN';
404
                                        $out_msg  = _L('OIDplus could not determine its version (Required: %1). Please update your system manually via the "%2" command regularly.', $requireInfo, $updateCommand);
412
                                        $out_msg  = _L('OIDplus could not determine its version (Required: %1). Please update your system manually via the "%2" command regularly.', $requireInfo, $updateCommand);
405
                                } else if (version_compare($local_installation, $newest_version) >= 0) {
413
                                } else if (version_compare($local_installation, $newest_version) >= 0) {
406
                                        $out_stat = 'INFO';
414
                                        $out_stat = 'INFO';
Line 413... Line 421...
413
                                $local_installation = OIDplus::getVersion();
421
                                $local_installation = OIDplus::getVersion();
414
                                $newest_version = $this->getLatestRevision();
422
                                $newest_version = $this->getLatestRevision();
415
 
423
 
416
                                if (!$newest_version) {
424
                                if (!$newest_version) {
417
                                        $out_stat = 'WARN';
425
                                        $out_stat = 'WARN';
-
 
426
                                        if (!function_exists('curl_init')) {
-
 
427
                                                $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');
-
 
428
                                        } else {
418
                                        $out_msg  = _L('OIDplus could not determine the latest version. Probably the ViaThinkSoft server could not be reached.');
429
                                                $out_msg  = _L('OIDplus could not determine the latest version.').' '._L('Probably the ViaThinkSoft server could not be reached.');
-
 
430
                                        }
419
                                } else if (version_compare($local_installation, $newest_version) >= 0) {
431
                                } else if (version_compare($local_installation, $newest_version) >= 0) {
420
                                        $out_stat = 'INFO';
432
                                        $out_stat = 'INFO';
421
                                        $out_msg  = _L('You are using the latest version of OIDplus (%1 local / %2 remote)', $local_installation, $newest_version);
433
                                        $out_msg  = _L('You are using the latest version of OIDplus (%1 local / %2 remote)', $local_installation, $newest_version);
422
                                } else {
434
                                } else {
423
                                        $out_stat = 'WARN';
435
                                        $out_stat = 'WARN';