Subversion Repositories oidplus

Rev

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

Rev 777 Rev 786
Line 461... Line 461...
461
                if (OIDplus::config()->getValue('oobe_registration_done') == '1') {
461
                if (OIDplus::config()->getValue('oobe_registration_done') == '1') {
462
                        if (!OIDplus::baseConfig()->getValue('REGISTRATION_HIDE_SYSTEM', false)) {
462
                        if (!OIDplus::baseConfig()->getValue('REGISTRATION_HIDE_SYSTEM', false)) {
463
                                $privacy_level = OIDplus::config()->getValue('reg_privacy');
463
                                $privacy_level = OIDplus::config()->getValue('reg_privacy');
464
 
464
 
465
                                if (PHP_SAPI !== 'cli') { // don't register when called from CLI, otherwise the oidinfo XML can't convert relative links into absolute links
465
                                if (PHP_SAPI !== 'cli') { // don't register when called from CLI, otherwise the oidinfo XML can't convert relative links into absolute links
-
 
466
                                        $last_ping = OIDplus::config()->getValue('reg_last_ping');
-
 
467
                                        if (!is_numeric($last_ping)) $last_ping = 0;
466
                                        if ((time()-OIDplus::config()->getValue('reg_last_ping') >= OIDplus::config()->getValue('reg_ping_interval'))) {
468
                                        $last_ping_interval = OIDplus::config()->getValue('reg_ping_interval');
-
 
469
                                        if (!is_numeric($last_ping_interval)) $last_ping_interval = 3600;
-
 
470
                                        if ((time()-$last_ping >= $last_ping_interval)) {
467
                                                $this->sendRegistrationQuery();
471
                                                $this->sendRegistrationQuery();
468
                                        }
472
                                        }
469
                                }
473
                                }
470
                        }
474
                        }
471
                }
475
                }