Example #1
0
    $cpt->SetTextColorRGB($result["arTextColor_1"], $result["arTextColor_2"]);
    $cpt->SetWaveTransformation($result["bWaveTransformation"] === "Y");
    $cpt->SetEmptyText($result["bEmptyText"] === "Y");
    $cpt->SetBorderColorRGB($result["arBorderColor"]);
    $cpt->SetTTFFonts($result["arTTFFiles"]);
    $arChars = array();
    $l = strlen($result["letters"]);
    for ($i = 0; $i < $l; $i++) {
        $arChars[] = substr($result["letters"], $i, 1);
    }
    $cpt->SetCodeChars($arChars);
    $cpt->SetCode();
    if ($cpt->InitCode($cpt->GetSID())) {
        $cpt->Output();
    } else {
        $cpt->OutputError();
    }
    require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/epilog_after.php";
    die;
}
$APPLICATION->SetTitle(GetMessage("MAIN_ADM_CAPTCHA_PAGE_TITLE"));
require $_SERVER["DOCUMENT_ROOT"] . "/bitrix/modules/main/include/prolog_admin_after.php";
$CAPTCHA_CODE = htmlspecialcharsbx($APPLICATION->CaptchaGetCode());
$tabControl->Begin();
?>
<script>
<?php 
foreach ($arSettings as $key => $value) {
    ?>
	<?php 
    if ($value[0] === "list") {