diff --git a/XLS_export.php b/XLS_export.php
index 6ece0d1..0de7294 100755
--- a/XLS_export.php
+++ b/XLS_export.php
@@ -8,9 +8,9 @@ $conn=mysqli_connect($DATAhst,$DATAusr,$DATApwd,$DATAdtb);
// nome del file che creeremo
$filename=$_GET['db']."_".date("d-m-Y").".xls";
-header ("Content-Type: application/vnd.ms-excel");
+header("Content-Type: application/vnd.ms-excel");
-header ("Content-Disposition: attachment; filename=$filename");
+header("Content-Disposition: attachment; filename=$filename");
?>
@@ -26,7 +26,7 @@ header ("Content-Disposition: attachment; filename=$filename");
switch($_GET['db']){
case "board":
-$fields=array("id","last_name","first_name");,//"address","zip_code","city","province"
+$fields=array("id","last_name","first_name");//"address","zip_code","city","province"
$order="last_name";
break;
case "pharmacy":
diff --git a/blocks/advFormSubmit.php b/blocks/advFormSubmit.php
index f9589aa..3ba92d5 100755
--- a/blocks/advFormSubmit.php
+++ b/blocks/advFormSubmit.php
@@ -50,6 +50,25 @@
echo "";
+ if($uid == 0) {
+ $SM_email = "dslaky@gmail.com";//"info@rodinefarmacistisalerno.it";
+ $SM_email2 = 0;
+ $SM_email_CC = 0;
+ $SM_subject = "Inserzione";
+ $SM_message = "Un utente non iscritto all'Ordine ha richiesto di pubblicare una inserzione
+ Riepilogo dati
".
+ "Nome: ".$_POST['full_name']."
".
+ "Città : ".trim($_POST['city'])."
".
+ "Telefono: ".trim($_POST['contact_phone'])."
".
+ "Email: ".trim($_POST['contact_email'])."
".
+ "Inserzione: ".nl2br($_POST['text'])."";
+ $SM_showalert = 0;
+ $SM_append = 0;
+
+ sendMail($SM_email,$SM_email2,$SM_email_CC,$SM_subject,$SM_message,$SM_showalert,$SM_append);
+ }
+
+
?>