/* -- Locate the setup.conf file. -- */ if (is_file("setup.conf")) { include("setup.conf") ; } else { include("../setup.conf") ; } /* -- Locate and display the header template -- */ if (is_file("../common/templates/header.phtml")) { include("../common/templates/header.phtml"); } else { include("templates/header.phtml") ; } /* -- Initialise any of your L3 classes and setup here -- */ $UserID = $L3->get_LoginID(); $portal_name = $L3_Config->get_GlobalConfig("Portal_Name"); $webmaster = $L3_Config->get_GlobalConfig("Portal_WebmasterEmail"); $L2DBA = new L2_DBA; $L2DBA2 = new L2_DBA; if ($Action==$L3_Lang->get_Label("bulletin_index_a1")) : $q = "DELETE from BulletinSubscriptions WHERE ClientID='$UserID'" ; $L2DBA->query($q) ; echo "\n" ; elseif ($Action==$L3_Lang->get_Label("bulletin_index_a2")) : $q = "INSERT INTO BulletinSubscriptions SET ClientID='$UserID',LatestIssue=0" ; $L2DBA->query($q) ; echo "\n" ; elseif ($Action==$L3_Lang->get_Label("bulletin_index_a4")) : $q = "UPDATE BulletinSubscriptions SET Suspend='',SuspendReason='',LatestIssue='0' WHERE ClientID='$UserID'" ; $L2DBA->query($q) ; echo "\n" ; elseif ($Action==$L3_Lang->get_Label("bulletin_index_a3")) : echo "\n" ; endif ; /* -- -- */ ?> if (is_file("../common/templates/bodystart.phtml")) { include("../common/templates/bodystart.phtml"); } else { include("templates/bodystart.phtml") ; } ?>
|
$L3_Lang->print_Label("bulletin_index_label_01"); ?>
echo $portal_name ?>
$L3_Lang->print_Label("bulletin_index_label_15"); ?>
/* -- check subscription status -- */ $q = "SELECT * from BulletinSubscriptions WHERE ClientID='$UserID'" ; $L2DBA->query($q) ; /* -- get email address -- */ $q = "SELECT SenderEmail FROM UserRegistration WHERE UserID='$UserID'" ; $L2DBA2->query($q) ; while ($L2DBA2->next_record()) { $EmailAddr = $L2DBA2->f('SenderEmail') ; } if ($EmailAddr != '' && $EM != '') : if ($EM==1) : $eMsg = $L3_Lang->get_Label("bulletin_index_label_02_0") . $portal_name . $L3_Lang->get_Label("bulletin_index_label_02_1") . $EmailAddr . $L3_Lang->get_Label("bulletin_index_label_02_2") . $portal_name . $L3_Lang->get_Label("bulletin_index_label_02_3") . $webmaster . $L3_Lang->get_Label("bulletin_index_label_02_4") . $portal_name . $L3_Lang->get_Label("bulletin_index_label_02_5"); elseif ($EM==2) : $eMsg = $L3_Lang->get_Label("bulletin_index_label_03_0") . $portal_name . $L3_Lang->get_Label("bulletin_index_label_03_1") . $portal_name . $L3_Lang->get_Label("bulletin_index_label_03_2") . $webmaster . $L3_Lang->get_Label("bulletin_index_label_03_3") . $portal_name; elseif ($EM==3) : $eMsg = $L3_Lang->get_Label("bulletin_index_label_04_0") . $portal_name . $L3_Lang->get_Label("bulletin_index_label_04_1") . $portal_name . $L3_Lang->get_Label("bulletin_index_label_04_2") . $webmaster . $L3_Lang->get_Label("bulletin_index_label_04_3") . $portal_name . $L3_Lang->get_Label("bulletin_index_label_04_4"); endif ; $L3_Message = new L2_Message; $L3_Message->send_Mail($eMsg, $EmailAddr, "$portal_name " . $L3_Lang->get_Label("common_PlasticsBulletin"), "From: $webmaster"); /* mail( "$EmailAddr", "$portal_name " . $L3_Lang->get_Label("common_PlasticsBulletin"), $eMsg, "From: $webmaster" );*/ endif; ?> |