Banner 15sept-04
FONDO3-02
FONDO PI-01
BANNER WEB 3

Delitos Violencia Sexual

[insert_php]
Function get_trusted_ticket($user) {
$params = array(
‘username’ => $user
);
$ch = curl_init();
curl_setopt($ch, CURLOPT_URL,”https://bis.mp.gob.gt/trusted”);
curl_setopt($ch, CURLOPT_POST, 1);
curl_setopt($ch, CURLOPT_POSTFIELDS,$params);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_SSL_VERIFYPEER, false);
$response = curl_exec ($ch);
curl_close ($ch);
return $response;
}

// Get the ticket
$File = ‘post.txt’;
$ticket = get_trusted_ticket(‘mp’);
?>
[/insert_php]