<?php 
    $pass = $_POST["password"];
    $user = $_POST["username"];
    
    $cont1[ "ppcovid" ] = "";
    $cont1[ "test" ] = "test1";
    
    $cont[ "test" ] = "test1";
    $cont[ "Fnspfdr" ] = "Fnspfdr";
    
    if ( array_key_exists( $user, $cont ) == 1 ) {
        if ( array_key_exists( $pass, $cont1 ) == 1 ) {
            session_start();
            $_SESSION['id'] = session_id();
            header( "Location: https://gui.iotmed.sk/dash.php" );
            
        }else{
        header( "Location: https://gui.iotmed.sk/login.php?l_status=failedasdasdasdasd" );
    
    }
    }else{
        header( "Location: https://gui.iotmed.sk/login.php?l_status=failed" );
    
    }
?>
