print_r(json_encode($mensagem['3'])); } } } break; case 'verificaSenha': $usuarioController = new UsuarioController(); $user = $usuarioController->select($_REQUEST['usuario']); if (md5($_REQUEST['senha']) == $user->getUsr_senha()) { echo "true"; } else { echo ''; } break; case "dadosGenericos": $usrController = new UsuarioController(); $idusr = $_GET["id"]; $usr = $usrController->getFullDataById($idusr); echo json_encode($usr); break; case "countUsuariosPorPerfil": $usrCtrl = new UsuarioController(); $count = $usrCtrl->getCountUsuarioPorPerfil(); echo json_encode($count); break; case "getUsrEscolaByEscola": $usrCtrl = new UsuarioController(); $usr = $usrCtrl->getUsrEscolaByEscola($_GET["id"]); echo json_encode($usr); break; }