Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $jsonLog = filter_input(INPUT_POST, 'accederIntranet');
- if ($jsonLog !== NULL) {
- $getPas = json_decode($jsonLog, true);
- $user = $getPas['usuario'];
- $pass = $getPas['contrasena'];
- $log = getLog(connection(), $user, $pass);
- if ($log === 'ok') {
- $resultado = 'ok';
- }
- if ($log !== 'ok') {
- $resultado = 'nook';
- }
- echo ($resultado);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement