
­­­­­­­­­­­­­­­­­­
<!DOCTYPE html>
<html>
<?php
include "../api.php";

$usr = $_POST['usr'];
$pwd = $_POST['pwd'];

$auth = authuser($usr,$pwd);

print_r($auth);

if($auth == 1){
 
 $newURL = 'https://honda.core3.agency/export-leads/portal/';

header('Location: '.$newURL);   
    
}else{

    $newURL = 'https://honda.core3.agency/export-leads/login/?reason=2';

header('Location: '.$newURL);
    
}

?>