mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-27 15:54:29 +02:00
2012-12-07 Junichi Satoh <junichi@rworks.jp>
* index.php: Fixed undefined function error in case of login failures without enterprise. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7236 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
dcd02553b1
commit
ce35bf97a3
@ -1,3 +1,8 @@
|
|||||||
|
2012-12-07 Junichi Satoh <junichi@rworks.jp>
|
||||||
|
|
||||||
|
* index.php: Fixed undefined function error in case of login
|
||||||
|
failures without enterprise.
|
||||||
|
|
||||||
2012-12-06 Miguel de Dios <miguel.dedios@artica.es>
|
2012-12-06 Miguel de Dios <miguel.dedios@artica.es>
|
||||||
|
|
||||||
* include/functions_agents.php, include/functions_html.php,
|
* include/functions_agents.php, include/functions_html.php,
|
||||||
|
@ -21,7 +21,7 @@ if (function_exists ('mb_internal_encoding')) {
|
|||||||
|
|
||||||
// Set to 1 to do not check for installer or config file (for development!).
|
// Set to 1 to do not check for installer or config file (for development!).
|
||||||
// Activate gives more error information, not useful for production sites
|
// Activate gives more error information, not useful for production sites
|
||||||
$develop_bypass = 0;
|
$develop_bypass = 1;
|
||||||
|
|
||||||
if ($develop_bypass != 1) {
|
if ($develop_bypass != 1) {
|
||||||
// If no config file, automatically try to install
|
// If no config file, automatically try to install
|
||||||
@ -289,12 +289,14 @@ elseif (! isset ($config['id_user']) && isset ($_GET["login"])) {
|
|||||||
else { //login wrong
|
else { //login wrong
|
||||||
$blocked = false;
|
$blocked = false;
|
||||||
|
|
||||||
if (!is_user_admin($nick) || $config['enable_pass_policy_admin']) {
|
if ((!is_user_admin($nick) || $config['enable_pass_policy_admin']) && defined('PANDORA_ENTERPRISE')) {
|
||||||
$blocked = login_check_blocked($nick);
|
$blocked = login_check_blocked($nick);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$blocked) {
|
if (!$blocked) {
|
||||||
|
if (defined('PANDORA_ENTERPRISE')) {
|
||||||
login_check_failed($nick); //Checks failed attempts
|
login_check_failed($nick); //Checks failed attempts
|
||||||
|
}
|
||||||
$login_failed = true;
|
$login_failed = true;
|
||||||
require_once ('general/login_page.php');
|
require_once ('general/login_page.php');
|
||||||
db_pandora_audit("Logon Failed", "Invalid login: ".$nick, $nick);
|
db_pandora_audit("Logon Failed", "Invalid login: ".$nick, $nick);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user