Subversion Repositories oidplus

Rev

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

Rev 784 Rev 800
Line 51... Line 51...
51
 
51
 
52
                if ($this->oobeRequired()) {
52
                if ($this->oobeRequired()) {
53
                        // Show registration/configuration wizard once
53
                        // Show registration/configuration wizard once
54
                        if ($html) {
54
                        if ($html) {
55
                                if (basename($_SERVER['SCRIPT_NAME']) != 'oobe.php') {
55
                                if (basename($_SERVER['SCRIPT_NAME']) != 'oobe.php') {
56
                                        header('Location:'.OIDplus::webpath(__DIR__).'oobe.php');
56
                                        header('Location:'.OIDplus::webpath(__DIR__,true).'oobe.php');
57
                                        die(_L('Redirecting to Out-Of-Box-Experience wizard...'));
57
                                        die(_L('Redirecting to Out-Of-Box-Experience wizard...'));
58
                                }
58
                                }
59
                        } else {
59
                        } else {
60
                                // We cannot guarantee that everything works correctly if OOBE never ran once. So abort AJAX and co.
60
                                // We cannot guarantee that everything works correctly if OOBE never ran once. So abort AJAX and co.
61
                                throw new OIDplusException(_L('A plugin has requested that the initialization wizard (OOBE) is shown. Please reload the page.'));
61
                                throw new OIDplusException(_L('A plugin has requested that the initialization wizard (OOBE) is shown. Please reload the page.'));