You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
70 lines
1.9 KiB
70 lines
1.9 KiB
|
|
<?php
|
|
session_start();
|
|
|
|
@include '../cgi-bin/conn.conn';
|
|
@include '../cgi-bin/functions.inc';
|
|
@include '../cgi-bin/params.inc';
|
|
|
|
$GLOBALS['conn'];
|
|
|
|
$conn=@mysqli_connect($DATAhst,$DATAusr,$DATApwd,$DATAdtb)or die("CONNECTION ERROR");
|
|
mysqli_set_charset($conn, "utf8");
|
|
|
|
?>
|
|
<!DOCTYPE html>
|
|
<html>
|
|
<head>
|
|
<title>Ordine dei Farmacisti della Provincia di Salerno</title>
|
|
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
|
|
<base href="<?php echo $BASE_URL;?>/">
|
|
<link href="<?php echo $BASE_URL;?>/css/styles.css" rel="stylesheet" type="text/css"/>
|
|
<link href='http://fonts.googleapis.com/css?family=Roboto' rel='stylesheet' type='text/css'>
|
|
</head>
|
|
<body>
|
|
<div class="row no-gutters py-4">
|
|
|
|
<?php
|
|
|
|
if(sizeof($_GET)>0 && $_GET['g-recaptcha-response']){
|
|
|
|
$SM_email = $_GET['dest'];
|
|
$SM_email2 = 0;
|
|
$SM_email_CC = 0;
|
|
$SM_subject = $_GET['subject'];
|
|
$SM_message = "Nome del mittente:". $_GET['name']."<br>";
|
|
$SM_message .= "Email del mittente:". $_GET['email']."<br><br>";
|
|
$SM_message .= $_GET['message'];
|
|
$SM_showalert = 0;
|
|
$SM_append = 0;
|
|
|
|
sendMail($SM_email,$SM_email2,$SM_email_CC,$SM_subject,$SM_message,$SM_showalert,$SM_append);
|
|
|
|
?>
|
|
|
|
|
|
<div class="col-10 text-center mx-auto">
|
|
<p><i class="fa fa-check-circle font-alert p-4"></i></p>
|
|
E-mail inviata correttamente a <?= $_GET['dest'];?>
|
|
</div>
|
|
|
|
|
|
<?php
|
|
|
|
}else{
|
|
|
|
if(sizeof($_GET)>0 &&
|
|
(!$_GET['g-recaptcha-response'] ||
|
|
strlen($_GET['name']) < 5 ||
|
|
strlen($_GET['email']) < 5 ||
|
|
strlen($_GET['message']) < 5)){
|
|
echo "<div class=\"col-10 mx-auto text-red text-center\">
|
|
<p><i class=\"fa fa-exclamation-triangle font-alert p-4\"></i></p>
|
|
ATTENZIONE: Ricorda ti compilare tutti i campi ed effettuare il controllo si sicurezza.</div>";
|
|
}
|
|
}
|
|
?>
|
|
|
|
</div>
|
|
</body>
|
|
</html>
|