Changeset 1321 in ExiteCMS


Ignore:
Timestamp:
02/28/08 00:25:43 (4 years ago)
Author:
hverton
Message:

updated the Securimage code
fixed non-working text validation code
moved CMS_getOS() from dns_functions.php to core_functions.php

Location:
trunk
Files:
16 edited

Legend:

Unmodified
Added
Removed
  • trunk/administration/settings_registration.php

    r1222 r1321  
    3333    $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".(isNum($_POST['admin_activation']) ? $_POST['admin_activation'] : "0")."' WHERE cfg_name = 'admin_activation'"); 
    3434    $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".(isNum($_POST['display_validation']) ? $_POST['display_validation'] : "1")."' WHERE cfg_name = 'display_validation'"); 
    35     $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".$_POST['validation_method']."' WHERE cfg_name = 'validation_method'"); 
     35    $result = dbquery("UPDATE ".$db_prefix."configuration SET cfg_value = '".stripinput($_POST['validation_method'])."' WHERE cfg_name = 'validation_method'"); 
    3636} 
    3737 
  • trunk/administration/tools/language_pack_English.php

    r1295 r1321  
    23962396        $localestrings['c112'] = "Validation Code:"; 
    23972397        $localestrings['c113'] = "Enter Validation Code:"; 
     2398        $localestrings['c114'] = "New Code"; 
    23982399        load_localestrings($localestrings, LP_LOCALE, "main.comments", $step); 
    23992400 
     
    24112412        $localestrings['412'] = "Validation Code:"; 
    24122413        $localestrings['413'] = "Enter Validation Code:"; 
     2414        $localestrings['414'] = "Validation code entered was not correct"; 
     2415        $localestrings['415'] = "New Code"; 
    24132416        $localestrings['420'] = "You must specify a Name"; 
    2414         $localestrings['421'] = "You must specify an Email Address"; 
     2417        $localestrings['421'] = "You must specify a valid Email Address"; 
    24152418        $localestrings['422'] = "You must specify a Subject"; 
    24162419        $localestrings['423'] = "You must specify a Message"; 
     
    28682871        $localestrings['459'] = "Please Try Again"; 
    28692872        $localestrings['500'] = "Please enter your details below. "; 
    2870         $localestrings['501'] = "A verification email will be sent to your specified email address. "; 
     2873        $localestrings['501'] = "A verification email will be sent to this email address to confirm your registration. "; 
    28712874        $localestrings['502'] = "Fields marked <span style='color:#ff0000;'>*</span> must be completed.\nYour user name and password is case-sensitive. Your full name is used in email communication only."; 
    28722875        $localestrings['503'] = " You can enter additional information by going to Edit Profile once you are logged in."; 
     
    28752878        $localestrings['506'] = "Register"; 
    28762879        $localestrings['507'] = "The registration system is currently disabled."; 
     2880        $localestrings['508'] = "New code"; 
    28772881        $localestrings['550'] = "Please specify a user name."; 
    28782882        $localestrings['551'] = "Please specify a password."; 
  • trunk/contact.php

    r1315 r1321  
    3636locale_load("main.contact"); 
    3737 
    38 // captcha check 
    39 $cic = ""; 
    40 $securimage = new Securimage(); 
    41 if ($securimage->check($_POST['captcha_code']) == false) { 
    42     $cic = "&cic=1"; 
    43 } 
    44 $variables['cic'] = $cic; 
    45  
    46 // get variables from the post, or initialize them 
     38// captcha check ok and message posted? 
    4739if (isset($_POST['sendmessage'])) { 
    4840    $mailname = substr(stripinput(trim($_POST['mailname'])),0,50); 
     
    5042    $subject = substr(str_replace(array("\r","\n","@"), "", descript(stripslash(trim($_POST['subject'])))),0,50); 
    5143    $message = descript(stripslash(trim($_POST['message']))); 
    52 } else { 
    53     $mailname = ""; 
    54     $email = ""; 
    55     $subject = ""; 
    56     $message = ""; 
    57 } 
    58  
    59 // captcha check ok and message posted? 
    60 if ($cic == "" && isset($_POST['sendmessage'])) { 
     44    // error initialisation 
    6145    $errors = array(); 
     46    // captcha check 
     47    $securimage = new Securimage(); 
     48    if ($securimage->check($_POST['captcha_code']) == false) { 
     49        $errors[] = $locale['414']; 
     50    } 
    6251    if ($mailname == "") { 
    6352        $errors[] = $locale['420']; 
     
    8473    $template_variables['main.contact.message'] = $variables; 
    8574} else { 
    86     // form variables 
    87     $variables['mailname'] = $mailname; 
    88     $variables['email'] = $email; 
    89     $variables['subject'] = $subject; 
    90     $variables['message'] = $message; 
     75    // generate captcha text if needed 
     76    if ($settings['display_validation'] == "1" && $settings['validation_method'] == "text") { 
     77        require_once PATH_INCLUDES."secureimage-1.0.3/securimage.php"; 
     78        $securimage = new Securimage(); 
     79        $securimage->createCode(); 
     80        $variables['validation_code'] = $_SESSION['securimage_code_value']; 
     81    } 
    9182    // define the body panel variables 
    9283    $variables['target'] = $target; 
  • trunk/files/locales/en.main.global.php

    r1295 r1321  
    33// locale       : English 
    44// locale name  : main.global 
    5 // generated on : Wed Feb 20 2008, 23:43:29 CET 
     5// generated on : Wed Feb 27 2008, 14:54:56 CET 
    66// translators  : ExiteCMS team,WanWizard 
    77// ---------------------------------------------------------- 
  • trunk/includes/comments_include.php

    r1315 r1321  
    9191    $variables['post_link'] = $clink; 
    9292    $variables['cic'] = (isset($_GET['cic']) && !empty($_GET['cic'])) ? $_GET['cic'] : ""; 
     93    if ($settings['display_validation'] == "1" && $settings['validation_method'] == "text") { 
     94        require_once PATH_INCLUDES."secureimage-1.0.3/securimage.php"; 
     95        $securimage = new Securimage(); 
     96        $securimage->createCode(); 
     97        $variables['validation_code'] = $_SESSION['securimage_code_value']; 
     98    } 
    9399 
    94100    // define the body panel variables 
  • trunk/includes/core_functions.php

    r1313 r1321  
    923923    } 
    924924} 
     925 
     926// get the OS type 
     927function CMS_getOS () { 
     928    if (substr(PHP_OS, 0, 3) == 'WIN') { 
     929        return "Windows"; 
     930    } elseif ( stristr(PHP_OS, "linux")) { 
     931        return "Linux"; 
     932    } elseif ( stristr(PHP_OS, "SunOS")) { 
     933        return "SunOS"; 
     934    } elseif ( stristr(PHP_OS, "Solaris")) { 
     935        return "Solaris"; 
     936    } else { 
     937        return "Other"; 
     938    } 
     939} 
    925940?> 
  • trunk/includes/dns_functions.php

    r1024 r1321  
    1111+----------------------------------------------------*/ 
    1212if (eregi("dns_functions.php", $_SERVER['PHP_SELF']) || !defined('INIT_CMS_OK')) die(); 
    13  
    14 function CMS_getOS () { 
    15     if (substr(PHP_OS, 0, 3) == 'WIN') { 
    16         return "Windows"; 
    17     } elseif ( stristr(PHP_OS, "linux")) { 
    18         return "Linux"; 
    19     } elseif ( stristr(PHP_OS, "SunOS")) { 
    20         return "SunOS"; 
    21     } elseif ( stristr(PHP_OS, "Solaris")) { 
    22         return "Solaris"; 
    23     } else { 
    24         return "Other"; 
    25     } 
    26 } 
    2713 
    2814// internal replacement for checkdnsrr, which works cross-platform 
  • trunk/includes/secureimage-1.0.3/securimage.php

    r1313 r1321  
    8484   * @var int 
    8585   */ 
    86   var $image_width = 175; 
     86  var $image_width = 200; 
    8787 
    8888  /** 
     
    9191   * @var int 
    9292   */ 
    93   var $image_height = 45; 
     93  var $image_height = 40; 
    9494 
    9595  /** 
     
    106106   * @var int 
    107107   */ 
    108   var $code_length = 4; 
     108  var $code_length = 6; 
    109109 
    110110  /** 
     
    123123   * @var string  The path to the word list to use for creating CAPTCHA codes 
    124124   */ 
    125   var $wordlist_file = 'words/words.txt'; 
     125  var $wordlist_file = ''; 
    126126   
    127127  /** 
     
    130130   * @var bool 
    131131   */ 
    132   var $use_wordlist  = true; 
     132  var $use_wordlist  = false; 
    133133 
    134134  /** 
     
    173173   * @var int 
    174174   */ 
    175   var $font_size = 24; 
     175  var $font_size = 22; 
    176176 
    177177  /** 
     
    182182   * @var int 
    183183   */ 
    184   var $text_angle_minimum = -20; 
     184  var $text_angle_minimum = -45; 
    185185 
    186186  /** 
     
    191191   * @var int 
    192192   */ 
    193   var $text_angle_maximum = 20; 
     193  var $text_angle_maximum = 45; 
    194194 
    195195  /** 
     
    199199   * @var int 
    200200   */ 
    201   var $text_x_start = 8; 
     201  var $text_x_start = 12; 
    202202 
    203203  /** 
     
    321321   * @var boolean 
    322322   */ 
    323   var $draw_angled_lines = false; 
     323  var $draw_angled_lines = true; 
    324324 
    325325  /** 
     
    417417  { 
    418418    if ( session_id() == '' ) { // no session has been started yet, which is needed for validation 
    419       session_start(); 
     419      die('no session available!'); 
    420420    } 
    421421  } 
  • trunk/includes/secureimage-1.0.3/securimage_play.php

    r1313 r1321  
    11<?php 
    2  
    3 include 'securimage.php'; 
     2require_once '../core_functions.php'; 
     3require_once include 'securimage.php'; 
    44 
    55$img = new Securimage(); 
  • trunk/includes/secureimage-1.0.3/securimage_show.php

    r1313 r1321  
    11<?php 
    2  
    3 include 'securimage.php'; 
     2require_once '../core_functions.php'; 
     3require_once 'securimage.php'; 
    44 
    55$img = new securimage(); 
  • trunk/includes/templates/admin.comments.tpl

    r893 r1321  
    5959                    {$locale.041}{$comments[id].comment_datestamp|date_format:"longdate"} 
    6060                </span> 
    61             <td> 
     61            </td> 
    6262        </tr> 
    6363        <tr> 
    6464            <td class='tbl1'> 
    6565                {$comments[id].comment_message} 
    66             <td> 
     66            </td> 
    6767        </tr> 
    6868        <tr> 
    6969            <td align='right' class='tbl2'> 
    70                 <span class='small'> 
    71                     <a href='{$smarty.const.FUSION_SELF}{$aidlink}&amp;step=edit&amp;comment_id={$comments[id].comment_id}&amp;ctype={$ctype}&amp;cid={$cid}'>{$locale.411}</a> | 
    72                     <a href='{$smarty.const.FUSION_SELF}{$aidlink}&amp;step=delete&amp;comment_id={$comments[id].comment_id}&amp;ctype={$ctype}&amp;cid={$cid}' onClick='return DeleteItem()'>{$locale.412}</a> | 
    73                     <a href='{$smarty.const.ADMIN}blacklist.php{$aidlink}&amp;ip={$comments[id].comment_ip}&amp;reason=470'>{$locale.413}</a> 
    74                 </span> 
     70                {buttonlink name=$locale.411 link=$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;step=edit&amp;comment_id="|cat:$comments[id].comment_id|cat:"&amp;ctype="|cat:$ctype|cat:"&amp;cid="|cat:$cid} 
     71                {buttonlink name=$locale.412 link="if (DeleteItem()) window.location=\""|cat:$smarty.const.FUSION_SELF|cat:$aidlink|cat:"&amp;step=delete&amp;comment_id="|cat:$comments[id].comment_id|cat:"&amp;ctype="|cat:$ctype|cat:"&amp;cid="|cat:$cid|cat:"\";" script="yes"} 
     72                {buttonlink name=$locale.413 link=$smarty.const.ADMIN|cat:"blacklist.php"|cat:$aidlink|cat:"&amp;ip="|cat:$comments[id].comment_ip|cat:"&amp;reason=470"} 
    7573            </td> 
    7674        </tr> 
     
    7876    <table align='center' cellpadding='0' cellspacing='0'> 
    7977        <tr> 
    80             <td height='5px'> 
     78            <td style='height:5px;'> 
    8179            </td> 
    8280        </tr> 
     
    9088{/section} 
    9189{include file="_closetable.tpl"} 
    92 <script> 
     90<script type="text/javascript"> 
    9391function DeleteItem() {ldelim} 
    9492    return confirm("{$locale.414}"); 
  • trunk/includes/templates/include.comments.tpl

    r1313 r1321  
    4141    <tr> 
    4242        <td align='right' class='tbl2'> 
    43             <a href='{$smarty.const.ADMIN}comments.php{$aidlink}&amp;ctype={$comment_type}&amp;cid={$comment_id}'>{$locale.c106}</a> 
     43            {buttonlink name=$locale.c106 link=$smarty.const.ADMIN|cat:"comments.php"|cat:$aidlink|cat:"&amp;ctype="|cat:$comment_type|cat:"&amp;cid="|cat:$comment_id} 
    4444        </td> 
    4545    </tr> 
     
    107107                </td> 
    108108                <td align='left' width='50%' class='tbl1'> 
    109                     <img id="captcha" src="{$smarty.const.INCLUDES}securimage-1.0.3/securimage_show.php" alt="CAPTCHA Image" /> 
     109                    {if $settings.validation_method == "text"} 
     110                        <span style='font-size:125%;font-weight:bold;'>{$validation_code|upper}</span> 
     111                    {else} 
     112                        <img id="captcha" src="{$smarty.const.INCLUDES}secureimage-1.0.3/securimage_show.php" alt="CAPTCHA Image" /> 
     113                    {/if} 
    110114                </td> 
    111115            </tr> 
     
    116120                <td align='left' width='50%' class='tbl1'> 
    117121                    <input type='text' name='captcha_code' class='textbox' style='vertical-align:middle;width:100px' /> 
     122                    {if $settings.validation_method == "image"} 
     123                        &nbsp; 
     124                        {buttonlink name=$locale.c114 link="document.getElementById(\"captcha\").src=\""|cat:$smarty.const.INCLUDES|cat:"secureimage-1.0.3/securimage_show.php?\"+Math.random(); return false;" script="yes"} 
     125                    {/if} 
    118126                </td> 
    119127            </tr> 
  • trunk/includes/templates/main.contact.message.tpl

    r1185 r1321  
    3030        {$locale.442} 
    3131        <br /><br /> 
    32         <span class='small'>{$locale.423}</span> 
    33         <br /> 
    3432        {foreach from=$errors item=errmsg} 
    3533            {$errmsg}<br /> 
    3634        {/foreach} 
     35        <br /> 
    3736        {$locale.443} 
    3837        <br /><br /> 
  • trunk/includes/templates/main.contact.tpl

    r1313 r1321  
    6060                {$locale.411} 
    6161                <br /><br /> 
    62                 {$locale.412} <img id="captcha" src="{$smarty.const.INCLUDES}securimage-1.0.3/securimage_show.php" alt="CAPTCHA Image" /> 
     62                {$locale.412}  
     63                {if $settings.validation_method == "text"} 
     64                    <span style='font-size:125%;font-weight:bold;'>{$validation_code|upper}</span> 
     65                {else} 
     66                    <img id="captcha" src="{$smarty.const.INCLUDES}secureimage-1.0.3/securimage_show.php" alt="CAPTCHA Image" style='vertical-align:middle;'/> 
     67                {/if} 
     68                <br /><br /> 
    6369                {$locale.413} <input type='text' name='captcha_code' class='textbox' style='vertical-align:top;width:100px' /> 
     70                {if $settings.validation_method == "image"} 
     71                    &nbsp; 
     72                    {buttonlink name=$locale.415 link="document.getElementById(\"captcha\").src=\""|cat:$smarty.const.INCLUDES|cat:"secureimage-1.0.3/securimage_show.php?\"+Math.random(); return false;" script="yes"} 
     73                {/if} 
    6474                <br /><br /> 
    6575                <input type='submit' name='sendmessage' value='{$locale.406}' class='button' /> 
  • trunk/includes/templates/main.register.tpl

    r1315 r1321  
    1717{include file="_opentable.tpl" name=$_name title=$locale.400 state=$_state style=$_style} 
    1818<center> 
    19     {$locale.500} 
    20     {if $settings.email_verification == "1"}{$locale.501}{/if} 
    21     {$locale.502} 
    22     {if $settings.email_verification == "1"}{$locale.503}{/if} 
     19    {$locale.500}<br /> 
     20    {$locale.502}<br /> 
    2321</center> 
    2422<br /> 
    25 <table align='center' cellpadding='0' cellspacing='0'> 
    26     <form name='inputform' method='post' action='{$smarty.const.FUSION_SELF}' onSubmit='return ValidateForm(this)'> 
     23<form name='inputform' method='post' action='{$smarty.const.FUSION_SELF}' onsubmit='return ValidateForm(this)'> 
     24    <table align='center' cellpadding='0' cellspacing='0'> 
    2725        <tr> 
    2826            <td class='tbl'> 
     
    3129            </td> 
    3230            <td class='tbl'> 
    33                 <input type='text' name='username' maxlength='30' class='textbox' style='width:200px;'> 
     31                <input type='text' name='username' maxlength='30' class='textbox' style='width:200px;' /> 
    3432            </td> 
    3533        </tr> 
     
    4038            </td> 
    4139            <td class='tbl'> 
    42                 <input type='text' name='fullname' maxlength='50' class='textbox' style='width:200px;'> 
     40                <input type='text' name='fullname' maxlength='50' class='textbox' style='width:200px;' /> 
    4341            </td> 
    4442        </tr> 
     
    4947            </td> 
    5048            <td class='tbl'> 
    51                 <input type='password' name='password1' maxlength='20' class='textbox' style='width:200px;'> 
     49                <input type='password' name='password1' maxlength='20' class='textbox' style='width:150px;' /> 
    5250            </td> 
    5351        </tr> 
     
    5856            </td> 
    5957            <td class='tbl'> 
    60                 <input type='password' name='password2' maxlength='20' class='textbox' style='width:200px;'> 
     58                <input type='password' name='password2' maxlength='20' class='textbox' style='width:150px;' /> 
    6159            </td> 
    6260        </tr> 
     
    6765            </td> 
    6866            <td class='tbl'> 
    69                 <input type='text' name='email' maxlength='100' class='textbox' style='width:200px;'> 
    70             </td> 
    71         </tr> 
     67                <input type='text' name='email' maxlength='100' class='textbox' style='width:250px;' /> 
     68            </td> 
     69        </tr> 
     70        {if $settings.email_verification == "1"} 
     71            <tr> 
     72                <td class='tbl' colspan='2'> 
     73                    {$locale.501} 
     74                </td> 
     75            </tr> 
     76        {/if} 
    7277        <tr> 
    7378            <td class='tbl'> 
     
    7580            </td> 
    7681            <td class='tbl'> 
    77                 <input type='radio' name='user_hide_email' value='1'>{$locale.u007} 
    78                 <input type='radio' name='user_hide_email' value='0' checked>{$locale.u008} 
     82                <select name='user_hide_email' class='textbox'> 
     83                    <option value='1'>{$locale.u007}</option> 
     84                    <option value='0' checked="checked">{$locale.u008}</option> 
     85                </select> 
    7986            </td> 
    8087        </tr> 
     
    103110                </td> 
    104111                <td class='tbl'> 
    105                     <img id="captcha" src="{$smarty.const.INCLUDES}secureimage-1.0.3/securimage_show.php" alt="CAPTCHA Image" /> 
     112                    {if $settings.validation_method == "text"} 
     113                        <span style='font-size:125%;font-weight:bold;'>{$validation_code|upper}</span> 
     114                    {else} 
     115                        <img id="captcha" src="{$smarty.const.INCLUDES}secureimage-1.0.3/securimage_show.php" alt="CAPTCHA Image" /> 
     116                    {/if} 
    106117                </td> 
    107118            </tr> 
     
    111122                </td> 
    112123                <td class='tbl'> 
    113                     <input type='text' name='captcha_code' class='textbox' style='width:100px'> 
     124                    <input type='text' name='captcha_code' class='textbox' style='width:100px' /> 
     125                    {if $settings.validation_method == "image"} 
     126                        &nbsp; 
     127                        {buttonlink name=$locale.508 link="document.getElementById(\"captcha\").src=\""|cat:$smarty.const.INCLUDES|cat:"secureimage-1.0.3/securimage_show.php?\"+Math.random(); return false;" script="yes"} 
     128                    {/if} 
    114129                </td> 
    115130            </tr> 
     
    118133            <tr> 
    119134                <td class='tbl'> 
    120                     {$locale.u009}</td> 
    121                 <td class='tbl'> 
    122                     <input type='text' name='user_location' maxlength='50' class='textbox' style='width:200px;'> 
     135                    {$locale.u009} 
     136                </td> 
     137                <td class='tbl'> 
     138                    <input type='text' name='user_location' maxlength='50' class='textbox' style='width:200px;' /> 
    123139                </td> 
    124140            </tr> 
     
    136152                </td> 
    137153                <td class='tbl'> 
    138                     <input type='text' name='user_aim' maxlength='16' class='textbox' style='width:200px;'> 
     154                    <input type='text' name='user_aim' maxlength='16' class='textbox' style='width:200px;' /> 
    139155                </td> 
    140156            </tr> 
     
    144160                </td> 
    145161                <td class='tbl'> 
    146                     <input type='text' name='user_icq' maxlength='15' class='textbox' style='width:200px;'> 
     162                    <input type='text' name='user_icq' maxlength='15' class='textbox' style='width:200px;' /> 
    147163                </td> 
    148164            </tr> 
     
    152168                </td> 
    153169                <td class='tbl'> 
    154                     <input type='text' name='user_msn' maxlength='100' class='textbox' style='width:200px;'> 
     170                    <input type='text' name='user_msn' maxlength='100' class='textbox' style='width:200px;' /> 
    155171                </td> 
    156172            </tr> 
     
    160176                </td> 
    161177                <td class='tbl'> 
    162                     <input type='text' name='user_yahoo' maxlength='100' class='textbox' style='width:200px;'> 
     178                    <input type='text' name='user_yahoo' maxlength='100' class='textbox' style='width:200px;' /> 
    163179                </td> 
    164180            </tr> 
     
    168184                </td> 
    169185                <td class='tbl'> 
    170                     <input type='text' name='user_web' maxlength='100' class='textbox' style='width:200px;'> 
     186                    <input type='text' name='user_web' maxlength='100' class='textbox' style='width:200px;' /> 
    171187                </td> 
    172188            </tr> 
     
    188204                </td> 
    189205                <td class='tbl'> 
    190                     <textarea name='user_sig' rows='5' class='textbox' style='width:295px'>{$userdata.user_sig}</textarea><br> 
    191                     <input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onClick="addText('user_sig', '[b]', '[/b]');"> 
    192                     <input type='button' value='i' class='button' style='font-style:italic;width:25px;' onClick="addText('user_sig', '[i]', '[/i]');"> 
    193                     <input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onClick="addText('user_sig', '[u]', '[/u]');"> 
    194                     <input type='button' value='url' class='button' style='width:30px;' onClick="addText('user_sig', '[url]', '[/url]');"> 
    195                     <input type='button' value='mail' class='button' style='width:35px;' onClick="addText('user_sig', '[mail]', '[/mail]');"> 
    196                     <input type='button' value='img' class='button' style='width:30px;' onClick="addText('user_sig', '[img]', '[/img]');"> 
    197                     <input type='button' value='center' class='button' style='width:45px;' onClick="addText('user_sig', '[center]', '[/center]');"> 
    198                     <input type='button' value='small' class='button' style='width:40px;' onClick="addText('user_sig', '[small]', '[/small]');"> 
     206                    <textarea name='user_sig' rows='5' class='textbox' style='width:295px'>{$userdata.user_sig}</textarea><br /> 
     207                    <input type='button' value='b' class='button' style='font-weight:bold;width:25px;' onClick="addText('user_sig', '[b]', '[/b]');" /> 
     208                    <input type='button' value='i' class='button' style='font-style:italic;width:25px;' onClick="addText('user_sig', '[i]', '[/i]');" /> 
     209                    <input type='button' value='u' class='button' style='text-decoration:underline;width:25px;' onClick="addText('user_sig', '[u]', '[/u]');" /> 
     210                    <input type='button' value='url' class='button' style='width:30px;' onClick="addText('user_sig', '[url]', '[/url]');" /> 
     211                    <input type='button' value='mail' class='button' style='width:35px;' onClick="addText('user_sig', '[mail]', '[/mail]');" /> 
     212                    <input type='button' value='img' class='button' style='width:30px;' onClick="addText('user_sig', '[img]', '[/img]');" /> 
     213                    <input type='button' value='center' class='button' style='width:45px;' onClick="addText('user_sig', '[center]', '[/center]');" /> 
     214                    <input type='button' value='small' class='button' style='width:40px;' onClick="addText('user_sig', '[small]', '[/small]');" /> 
    199215                </td> 
    200216            </tr> 
     
    203219            <td align='center' colspan='2'> 
    204220                <br /> 
    205                 <input type='submit' name='register' value='{$locale.506}' class='button'> 
    206             </td> 
    207         </tr> 
    208     </form> 
    209 </table> 
     221                <input type='submit' name='register' value='{$locale.506}' class='button' /> 
     222            </td> 
     223        </tr> 
     224    </table> 
     225    <center> 
     226        {if $settings.email_verification == "1"}<br />{$locale.503}<br />{/if} 
     227    </center> 
     228</form> 
    210229{include file="_closetable.tpl"} 
    211 {literal}<script language='JavaScript'> 
     230{literal}<script type='text/javascript' language='javascript'> 
    212231// 
    213232// calculate the offset between browser and server time 
  • trunk/register.php

    r1315 r1321  
    2121// no point registering when you're already a member 
    2222if (iMEMBER) fallback(BASEDIR."index.php"); 
    23  
    24 // include the DNS functions include 
    25 require_once PATH_INCLUDES."dns_functions.php"; 
    2623 
    2724// load the locales for this module 
     
    222219            $theme_files = array(); 
    223220        } 
     221        if ($settings['display_validation'] == "1" && $settings['validation_method'] == "text") { 
     222            require_once PATH_INCLUDES."secureimage-1.0.3/securimage.php"; 
     223            $securimage = new Securimage(); 
     224            $securimage->createCode(); 
     225            $variables['validation_code'] = $_SESSION['securimage_code_value']; 
     226        } 
    224227        $variables['theme_files'] = $theme_files; 
    225228        // define the body panel variables 
Note: See TracChangeset for help on using the changeset viewer.