Subversion Repositories oidplus

Rev

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

Rev 500 Rev 503
Line 109... Line 109...
109
                        }
109
                        }
110
 
110
 
111
                        // Check important config settings
111
                        // Check important config settings
112
 
112
 
113
                        if (self::$baseConfig->getValue('CONFIG_VERSION') != 2.1) {
113
                        if (self::$baseConfig->getValue('CONFIG_VERSION') != 2.1) {
-
 
114
                                if (strpos($_SERVER['REQUEST_URI'], OIDplus::webpath(null,true).'setup/') !== 0) {
114
                                throw new OIDplusConfigInitializationException(_L("The information located in %1 is outdated.",$config_file));
115
                                        throw new OIDplusConfigInitializationException(_L("The information located in %1 is outdated.",realpath($config_file)));
-
 
116
                                }
115
                        }
117
                        }
116
 
118
 
117
                        if (self::$baseConfig->getValue('SERVER_SECRET', '') === '') {
119
                        if (self::$baseConfig->getValue('SERVER_SECRET', '') === '') {
-
 
120
                                if (strpos($_SERVER['REQUEST_URI'], OIDplus::webpath(null,true).'setup/') !== 0) {
118
                                throw new OIDplusConfigInitializationException(_L("You must set a value for SERVER_SECRET in %1 for the system to operate secure.",$config_file));
121
                                        throw new OIDplusConfigInitializationException(_L("You must set a value for SERVER_SECRET in %1 for the system to operate secure.",realpath($config_file)));
-
 
122
                                }
119
                        }
123
                        }
120
                }
124
                }
121
 
125
 
122
                return self::$baseConfig;
126
                return self::$baseConfig;
123
        }
127
        }