equal
deleted
inserted
replaced
207 $paths->init(); |
207 $paths->init(); |
208 |
208 |
209 define('ENANO_MAINSTREAM', ''); |
209 define('ENANO_MAINSTREAM', ''); |
210 |
210 |
211 // If the site is disabled, bail out, unless we're trying to log in or administer the site |
211 // If the site is disabled, bail out, unless we're trying to log in or administer the site |
212 if(getConfig('site_disabled') == '1') |
212 if(getConfig('site_disabled') == '1' && $session->user_level < USER_LEVEL_ADMIN) |
213 { |
213 { |
214 if ( $paths->namespace == 'Admin' || ( $paths->namespace == 'Special' && ( $paths->cpage['urlname_nons'] == 'CSS' || $paths->cpage['urlname_nons'] == 'Administration' || $paths->cpage['urlname_nons'] == 'Login' ) ) ) |
214 if ( $paths->namespace == 'Admin' || ( $paths->namespace == 'Special' && ( $paths->cpage['urlname_nons'] == 'CSS' || $paths->cpage['urlname_nons'] == 'Administration' || $paths->cpage['urlname_nons'] == 'Login' ) ) ) |
215 { |
215 { |
216 // do nothing; allow execution to continue |
216 // do nothing; allow execution to continue |
217 } |
217 } |
228 </div>'; |
228 </div>'; |
229 $paths->wiki_mode = 0; |
229 $paths->wiki_mode = 0; |
230 die_semicritical('Site disabled', $text); |
230 die_semicritical('Site disabled', $text); |
231 } |
231 } |
232 } |
232 } |
|
233 else if(getConfig('site_disabled') == '1' && $session->user_level >= USER_LEVEL_ADMIN) |
|
234 { |
|
235 $template->site_disabled = true; |
|
236 } |
233 |
237 |
234 $code = $plugins->setHook('session_started'); |
238 $code = $plugins->setHook('session_started'); |
235 foreach ( $code as $cmd ) |
239 foreach ( $code as $cmd ) |
236 { |
240 { |
237 eval($cmd); |
241 eval($cmd); |