addTransaction($logoutTransaction);
// Register triggers
$logoutTransaction->registerTrigger("STARTER", "Trigger_Default_Starter", 1, "GET", "KT_logout_now");
$logoutTransaction->registerTrigger("END", "Trigger_Default_Redirect", 99, "index.php");
// Add columns
// End of logout transaction instance
// 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
// 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);
// 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 :::::::::::.................................................
|
|
|
---------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
|
|