You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
thrownewSoapFault('maintenance_mode', 'This ISPConfig installation is currently under maintenance. We should be back shortly. Thank you for your patience.');
81
-
returnfalse;
82
-
}
83
-
84
-
if(empty($username)) {
85
-
$error = array('faultcode' => 'login_username_empty', 'faultstring' => 'The login username is empty.');
86
-
}
80
+
$error = array('faultcode' => 'maintenance_mode', 'faultstring' => 'This ISPConfig installation is currently under maintenance. We should be back shortly. Thank you for your patience.');
81
+
} else {
82
+
if(empty($username)) {
83
+
$error = array('faultcode' => 'login_username_empty', 'faultstring' => 'The login username is empty.');
84
+
}
87
85
88
-
if(empty($password)) {
89
-
$error = array('faultcode' => 'login_password_empty', 'faultstring' => 'The login password is empty.');
90
-
}
86
+
if(empty($password)) {
87
+
$error = array('faultcode' => 'login_password_empty', 'faultstring' => 'The login password is empty.');
88
+
}
91
89
92
-
//* Delete old remoting sessions
93
-
$sql = "DELETE FROM remote_session WHERE tstamp < UNIX_TIMESTAMP()";
94
-
$app->db->query($sql);
90
+
//* Delete old remoting sessions
91
+
$sql = "DELETE FROM remote_session WHERE tstamp < UNIX_TIMESTAMP()";
92
+
$app->db->query($sql);
95
93
96
-
$ip = md5($_SERVER['REMOTE_ADDR']);
97
-
$sql = "SELECT * FROM `attempts_login` WHERE `ip`= ? AND `login_time` > (NOW() - INTERVAL 1 MINUTE) LIMIT 1";
0 commit comments