Ejemplo n.º 1
0
            }
        }
        $message_text = str_replace("</p>", "\r\n\r\n", $sendmessage);
        $message_text = str_replace("<br>", "\r\n", $message_text);
        $message_text = str_replace("<br />", "\r\n", $message_text);
        $message_text = strip_tags($message_text);
        $mail->Body = $sendmessage;
        $mail->AltBody = html_entity_decode($message_text, ENT_QUOTES);
        if (!$CONFIG['ContactFormTo']) {
            $contactformemail = $CONFIG['Email'];
        } else {
            $contactformemail = $CONFIG['ContactFormTo'];
        }
        $mail->AddAddress($contactformemail);
        if ($smtp_debug) {
            $mail->SMTPDebug = true;
        }
        $mail->Send();
        $mail->ClearAddresses();
        $sent = "true";
        $smarty->assign("sent", $sent);
    }
}
$smarty->assign("errormessage", $validate->getHTMLErrorOutput());
$smarty->assign("name", $name);
$smarty->assign("email", $email);
$smarty->assign("subject", $subject);
$smarty->assign("message", $message);
$smarty->assign("capatacha", $capatacha);
$smarty->assign("recapatchahtml", clientAreaReCaptchaHTML());
outputClientArea($templatefile);
Ejemplo n.º 2
0
while ($data = mysql_fetch_array($result)) {
    $id = $data['id'];
    $date = $data['date'];
    $title = $data['title'];
    $announcement = $data['announcement'];
    $result2 = select_query("tblannouncements", "", array("parentid" => $id, "language" => $_SESSION['Language']));
    $data = mysql_fetch_array($result2);
    if ($data['title']) {
        $title = $data['title'];
    }
    if ($data['announcement']) {
        $announcement = $data['announcement'];
    }
    $date = fromMySQLDate($date);
    $announcements[] = array("id" => $id, "date" => $date, "title" => $title, "urlfriendlytitle" => getModRewriteFriendlyString($title), "text" => $announcement);
}
$smartyvalues['announcements'] = $announcements;
$smartyvalues['seofriendlyurls'] = $CONFIG['SEOFriendlyUrls'];
if ($CONFIG['AllowRegister']) {
    $smartyvalues['registerdomainenabled'] = true;
}
if ($CONFIG['AllowTransfer']) {
    $smartyvalues['transferdomainenabled'] = true;
}
if ($CONFIG['AllowOwnDomain']) {
    $smartyvalues['owndomainenabled'] = true;
}
$captcha = clientAreaInitCaptcha();
$smartyvalues['captcha'] = $smartyvalues['capatacha'] = $captcha;
$smartyvalues['recaptchahtml'] = $smartyvalues['recapatchahtml'] = clientAreaReCaptchaHTML();
outputClientArea($templatefile);