Source for file tpl_message.php
Documentation is available at tpl_message.php
* @author linea21 <info@linea21.com>
* @license http://opensource.org/licenses/gpl-3.0.html
if( ActiveItemKey($GLOBALS['activeitem']) == 'comment-unsubscribe') {
$a['module']= $_GET['name'];
$a['module_id']= $_GET['id'];
$a['email']= $_GET['email'];
include_once('../class/class.comment.php');
$r = $comm->unsubsribe($a, $GLOBALS['sql_object']);
$item = $comm->getCommentItem($a, $GLOBALS['sql_object']);
$full_item = $item[0]['item_title'] . ' ('. $itemM['name']. ')';
echo '<h1>'. _t('comment','unsubscribe_title'). '</h1>'. END_LINE;
echo $full_item . ' : ' . _t('comment','unsubscribe_successful'). END_LINE;
if( ActiveItemKey($GLOBALS['activeitem']) == 'subscribe-newsletter') {
include_once('../newsletter/subscribe.php');
echo '<h1>'. _t('newsletter','subscribe_title'). '</h1>'. END_LINE;
echo '<div class="sub-title">'. END_LINE;
echo _t('divers','newsletter_public_comment'). END_LINE;
echo '<div class="'. $msg['code']. '">'. END_LINE;
include_once('../class/system/class.form.php');
if(isset ($_POST['name'])) {
$subject= $_POST['subject'];
$msg= sprintf(_t('contact','str_error'), _t('contact', 'body'));
$msg= sprintf(_t('contact','str_error'), _t('contact', 'subject'));
$msg= sprintf(_t('contact','email_error'), $email);
$msg= sprintf(_t('contact','str_error'), _t('contact', 'email'));
$msg= sprintf(_t('contact','str_error'), _t('contact', 'name'));
$msg = _t('contact', 'message_sent');
$email_subject = formatText($subject, '2HTML') . ' - '. SITE_NAME;
include_once(themePath('../mail/template.php'));
echo '<h1>'. _t('contact','contact_us'). '</h1>'. END_LINE;
if(isset ($passed)) echo '<div class="'. $class. '">'. $msg. '</div>'. END_LINE;
if(!isset ($passed) || $passed == false) {
$form->startForm('index.php', '#contactform');
$form->textInput('name', _t('contact', 'name'). ' : ', 'shorttextfield', 'labelised', 'title', 100, 30, false, $name, false);
$form->textInput('email', _t('contact', 'email'). ' : ', 'shorttextfield', 'labelised', 'title', 150, 30, false, $email, false);
$form->textInput('subject', _t('contact', 'subject'). ' : ', 'shorttextfield', 'labelised', 'title', 150, 30, false, $subject, false);
$form->textareaInput('body',ucfirst(_t('contact', 'body')) . ' : ',false,'labelised', false, $body, 60, 10);
$form->submitButton(false, _t('btn', 'valid'), true, 'submitbut');
$form->hiddenInput('rub', $_REQUEST['rub']);
if(!$output = $form->getForm()) { die("error: " . $form->error); }
include_once(themePath('../lib/styleswitcher.php'));
echo '<div class="'. $msg['code']. '">';
|