  .

  "",       .

    - ,-     .
    :
 - --   -- - , ?
       cms_components.config  : ()  ask_secrcod=1 ,  () ask_secrcod =0
  " "  ,cms_components.config ask_secrcod =1 ,    ,  .
  " "  ,cms_components.config ask_secrcod =0,      ,  .

 Instantcms 1.8
 _default_

 :
1-/components/registration/frontend.php
2-/admin/components/registration/backend.php
3-/templates/_default_/components/com_registration.tpl


    ,       .
  ,      .


----------------------------------------------------------------------------

1 - components/registration/frontend.php

    "" ,  .
 c 62      //config defaults.

    68:
        
	if (!isset($cfg['ask_secrcod'])) { $cfg['ask_secrcod'] = 1; }

    "" ,     .

-----------------------------------------------------------------------------

 185  ,     //  

  

               $code = $inCore->request('code', 'str');
              if(!$code) { $msg .= $_LANG['TYPE_CAPTCHA'].'<br/>'; }

 :

 185  ,     //   ,

                if ($cfg['ask_secrcod']){
		$code = $inCore->request('code', 'str');
                if(!$code) { $msg .= $_LANG['TYPE_CAPTCHA'].'<br/>'; }
		}else {
		      $code=false;			
		      }	



        " " .

------------------------------------------------------------------------------    


2 - admin/components/registration/backend.php

 "   -  ",    //CONFIG DEFAULTS

 57, :

                      if (!isset($cfg['ask_secrcod'])) { $cfg['ask_secrcod'] = 1; }
-------------------------------------------------------------------------------

"    - ",    //SAVE CONFIG
 84,  :

             $cfg['ask_secrcod']   = $inCore->request('ask_secrcod', 'int');


 
            <tr>
                <td><strong>    :</strong> </td>
                <td>
                    <input name="ask_birthdate" type="radio" value="1" <?php if (@$cfg['ask_birthdate']) { echo 'checked="checked"'; } ?>/> 
                    <input name="ask_birthdate" type="radio" value="0" <?php if (@!$cfg['ask_birthdate']) { echo 'checked="checked"'; } ?>/> 
                </td>
            </tr>

 273,     

             <tr>
                <td><strong>    :</strong> </td>
                <td>
                    <input name="ask_secrcod" type="radio" value="1" <?php if (@$cfg['ask_secrcod']) { echo 'checked="checked"'; } ?>/> 
                    <input name="ask_secrcod" type="radio" value="0" <?php if (@!$cfg['ask_secrcod']) { echo 'checked="checked"'; } ?>/> 
                </td>
             </tr>

------------------------------------------------------------------------------------

3 - templates/_default_/components/com_registration.tpl

          " "/

C  121   :	{if $cfg.ask_secrcod}

  131   :     {/if}

: 

                 {if $cfg.ask_secrcod}
                 <tr>
                    <td valign="top" class="">
                        <div><strong>{$LANG.SECUR_SPAM}: </strong></div>
                        <div><small>{$LANG.SECUR_SPAM_TEXT}</small></div>
                    </td>
                    <td valign="top" class="">
                        {php}echo cmsPage::getCaptcha();{/php}
                    </td>
                </tr>
               {/if}


--------------------------------------------------------------------------------------
  .    ,       - .
    ,    "    ".    .


