fix captcha

This commit is contained in:
Abdulrahman
2018-01-15 22:50:35 +03:00
parent 9afb2f721a
commit fbed08ded8
2 changed files with 10 additions and 1 deletions

View File

@@ -4,7 +4,10 @@ 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.
- fix bug where limiting download size is not working.

View File

@@ -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(