Mailer = "smtp"; $mail->Host = "authsmtp.fnm-marine.com"; $mail->SMTPAuth = TRUE; $mail->Username = "smtp@fnm-marine.com"; $mail->Password = "65CLAUDIO"; $mail->From = "noreply@fnm-marine.com"; $mail->FromName = "FNM Marine"; $mail->Sender = "noreply@fnm-marine.com"; $mail->AddAddress("info@cmdengine.com"); // Message $mail->Subject = "Feedback"; $htmlBody = "

Cognome Nome: ".$cognome." ".$nome."

"; $htmlBody .= "

e-Mail: ".$email."

"; $htmlBody .= "

Messaggio: ".$messaggio."

"; $mail->MsgHTML($htmlBody); $mail->Send(); } //end Trigger_Custom trigger // Make a logout transaction instance $logoutTransaction = new tNG_logoutTransaction($conn_database); $tNGs->addTransaction($logoutTransaction); // Register triggers $logoutTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "GET", "KT_logout_now"); $logoutTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "index.php"); if (!function_exists("GetSQLValueString")) { function GetSQLValueString($theValue, $theType, $theDefinedValue = "", $theNotDefinedValue = "") { if (PHP_VERSION < 6) { $theValue = get_magic_quotes_gpc() ? stripslashes($theValue) : $theValue; } $theValue = function_exists("mysql_real_escape_string") ? mysql_real_escape_string($theValue) : mysql_escape_string($theValue); switch ($theType) { case "text": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "long": case "int": $theValue = ($theValue != "") ? intval($theValue) : "NULL"; break; case "double": $theValue = ($theValue != "") ? doubleval($theValue) : "NULL"; break; case "date": $theValue = ($theValue != "") ? "'" . $theValue . "'" : "NULL"; break; case "defined": $theValue = ($theValue != "") ? $theDefinedValue : $theNotDefinedValue; break; } return $theValue; } } if( !isset($_SESSION['idLanguage']) ) $_SESSION['idLanguage'] = 1; $colname_rsNews = "1"; if (isset($_SESSION['idLanguage'])) { $colname_rsNews = $_SESSION['idLanguage']; } // Make a login transaction instance $loginTransaction = new tNG_login($conn_database); $tNGs->addTransaction($loginTransaction); // Register triggers $loginTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "kt_login1"); $loginTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "{kt_login_redirect}"); // Add columns $loginTransaction->addColumn("kt_login_user", "STRING_TYPE", "POST", "kt_login_user"); $loginTransaction->addColumn("kt_login_password", "STRING_TYPE", "POST", "kt_login_password"); // End of login transaction instance // Make a custom transaction instance $customTransaction = new tNG_custom($conn_database); $tNGs->addTransaction($customTransaction); // Register triggers $customTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "POST", "KT_SEND"); $customTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "ok.php"); $customTransaction->registerTrigger("AFTER", "Trigger_Custom", 50); // Add columns // End of custom transaction instance // Execute all the registered transactions $tNGs->executeTransactions(); // Get the transaction recordset $rscustom = $tNGs->getRecordset("custom"); $row_rscustom = mysql_fetch_assoc($rscustom); $totalRows_rscustom = mysql_num_rows($rscustom); // Show Dynamic Thumbnail $objDynamicThumb1 = new tNG_DynamicThumbnail("", "KT_thumbnail1"); $objDynamicThumb1->setFolder("gallery/news/"); $objDynamicThumb1->setRenameRule("{rsNews.image_news}"); $objDynamicThumb1->setResize(90, 0, true); $objDynamicThumb1->setWatermark(false); $colname_rsLingua = "1"; if (isset($_SESSION['idLanguage'])) { $colname_rsLingua = $_SESSION['idLanguage']; } mysql_select_db($database_database, $database); $query_rsLingua = sprintf("SELECT sitelabels_static.*, sitelabels.* FROM sitelabels_static JOIN sitelabels on sitelabels_static.key_label = sitelabels.id WHERE sitelabels_static.language_label = %s", GetSQLValueString($colname_rsLingua, "int")); $rsLingua = mysql_query($query_rsLingua, $database) or die(mysql_error()); $row_rsLingua = mysql_fetch_assoc($rsLingua); $totalRows_rsLingua = mysql_num_rows($rsLingua); mysql_select_db($database_database, $database); $query_rsContatti = "SELECT contatti.*, contatti_details.* FROM contatti JOIN contatti_details ON contatti_details.idcontatti_details = contatti.id_contatti WHERE contatti_details.language_details = ".$colname_rsNews." ORDER BY order_contatti ASC"; $rsContatti = mysql_query($query_rsContatti, $database) or die(mysql_error()); $row_rsContatti = mysql_fetch_assoc($rsContatti); $totalRows_rsContatti = mysql_num_rows($rsContatti); // Trasformare resultSet in Array $labels = array(); for( $i = 0; $i < $totalRows_rsLingua; $i++ ) { // Array $labels[$row_rsLingua['labelname']] = $row_rsLingua['value_label']; // Go on $row_rsLingua = mysql_fetch_assoc($rsLingua); } ?> ::..FNM-MARINE....::::: Marine Diesel Engine :::::::::::.................................................
   
   
*
*
e-mail*
 
 
 
 
 
 
getErrorMsg(); ?>
 
 
spacer Ci hanno scelto
   
 

 


   
 
Visualizza il carrello
ok