'api_password')); $correctLogin = false; $user_in_db = null; if (!empty($apiPassword)) { if (($password === $apiPassword) && (empty($user))) { $correctLogin = true; } else { $user_in_db = process_user_login($user, $password); if ($user_in_db !== false) { $config['id_user'] = $user_in_db; $correctLogin = true; } } } else { if (isInACL($ipOrigin)) { $correctLogin = true; } } if ($correctLogin) { if (($op !== 'get') && ($op !== 'set') && ($op !== 'help')) returnError('no_set_no_get_no_help', $returnType); else { if (!function_exists($op.'_'.$op2)) returnError('no_exist_operation', $returnType); else { call_user_func($op.'_'.$op2, $id, $id2, $other, $returnType, $user_in_db); } } } else { echo 'ERROR: Your IP (' . $ipOrigin . ') is not in ACL IP list.'; } ?>