mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-15 20:49:41 +01:00
fix captcha
This commit is contained in:
@@ -4,6 +4,9 @@ All notable changes to this project will be documented in this file.
|
||||
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
||||
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
||||
|
||||
## 2.4
|
||||
- fix bug where captcha doesn't work if website is closed.
|
||||
|
||||
|
||||
## 2.3
|
||||
- fix bug where 'empty files' error when url uplaoding is on.
|
||||
|
||||
@@ -308,7 +308,13 @@ if (file_exists(PATH . 'install') && !defined('IN_ADMIN') && !defined('IN_LOGIN'
|
||||
|
||||
#is site close
|
||||
$login_page = '';
|
||||
if ($config['siteclose'] == '1' && !user_can('enter_acp') && !defined('IN_LOGIN') && !defined('IN_ADMIN'))
|
||||
if (
|
||||
$config['siteclose'] == '1' &&
|
||||
!user_can('enter_acp') &&
|
||||
!defined('IN_LOGIN') &&
|
||||
!defined('IN_ADMIN') &&
|
||||
!(defined('IN_UCP') && in_array(g('go'), array('captcha', 'login', 'register')))
|
||||
)
|
||||
{
|
||||
//if download, images ?
|
||||
if(
|
||||
|
||||
Reference in New Issue
Block a user