mirror of
https://github.com/kleeja-official/kleeja.git
synced 2025-12-16 04:59:42 +01:00
fixes
This commit is contained in:
@@ -124,7 +124,7 @@ if (empty($dbname) || empty($dbuser))
|
|||||||
|
|
||||||
#include files .. & classes ..
|
#include files .. & classes ..
|
||||||
$root_path = PATH;
|
$root_path = PATH;
|
||||||
$db_type = isset($db_type) ? $db_type : 'mysqli';
|
// $db_type = isset($db_type) ? $db_type : 'mysqli';
|
||||||
|
|
||||||
include PATH . 'includes/functions_alternative.php';
|
include PATH . 'includes/functions_alternative.php';
|
||||||
include PATH . 'includes/version.php';
|
include PATH . 'includes/version.php';
|
||||||
@@ -299,11 +299,13 @@ if(isset($_GET['go']) && $_GET['go'] == 'login')
|
|||||||
}
|
}
|
||||||
|
|
||||||
#install.php exists
|
#install.php exists
|
||||||
if (file_exists(PATH . 'install')
|
if (
|
||||||
&& !defined('IN_ADMIN')
|
file_exists(PATH . 'install') &&
|
||||||
&& !defined('IN_LOGIN')
|
!defined('IN_ADMIN') &&
|
||||||
&& !defined('DEV_STAGE')
|
!defined('IN_LOGIN') &&
|
||||||
&& !(defined('IN_UCP') && in_array(g('go'), array('captcha', 'login')))
|
!defined('DEV_STAGE') &&
|
||||||
|
!(defined('IN_GO') && in_array(g('go'), array('queue'))) &&
|
||||||
|
!(defined('IN_UCP') && in_array(g('go'), array('captcha', 'login')))
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
#Different message for admins! delete install folder
|
#Different message for admins! delete install folder
|
||||||
@@ -318,7 +320,8 @@ if (
|
|||||||
!user_can('enter_acp') &&
|
!user_can('enter_acp') &&
|
||||||
!defined('IN_LOGIN') &&
|
!defined('IN_LOGIN') &&
|
||||||
!defined('IN_ADMIN') &&
|
!defined('IN_ADMIN') &&
|
||||||
!(defined('IN_UCP') && in_array(g('go'), array('captcha', 'login', 'register')))
|
!(defined('IN_GO') && in_array(g('go'), array('queue'))) &&
|
||||||
|
!(defined('IN_UCP') && in_array(g('go'), array('captcha', 'login', 'register', 'logout')))
|
||||||
)
|
)
|
||||||
{
|
{
|
||||||
//if download, images ?
|
//if download, images ?
|
||||||
|
|||||||
Reference in New Issue
Block a user