Changeset 2615 for branches/2.0


Ignore:
Timestamp:
04/22/10 11:26:40 (14 years ago)
Author:
niltonneto
Message:

Ticket #834 - Corrigida funcionalidade do captcha e seu posicionamento.

Location:
branches/2.0
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • branches/2.0/phpgwapi/templates/default/login_default.php

    r1934 r2615  
    104104                unset($sslattributes); 
    105105        } 
    106  
     106        session_start(); 
    107107        if(isset($passwd_type) || $_POST['submitit_x'] || $_POST['submitit_y'] || $submit) 
    108108        { 
     
    406406                        { 
    407407                                $aux_captcha = '<div class="login_label" > 
    408                <img src="./security/captcha.php" title="'.lang('Security code').'" alt="'.lang('Security code').'" style="width:60;"> 
     408               <input type="hidden" name="' . session_name() .'" value="' . session_id() . '" > 
     409               <img src="./security/captcha.php?xsid='.session_id().'" title="'.lang('Security code').'" alt="'.lang('Security code').'" style="width:60;"> 
    409410<br /> 
    410411                <input class="input" type="text" maxlength="50" size="20" name="codigo" id="codigo" value="" > 
  • branches/2.0/security/captcha.php

    r1174 r2615  
    105105  
    106106 // ************  Fim da Classe  ************************* 
    107   
    108   
     107   
    109108  //Cria o CAPTCHA( gera o string e a imagem ... 
    110109  $GLOBALS['captcha'] = new captcha; 
    111110  // Guarda o string do captcha na session... 
     111  session_id($_REQUEST['xsid']); 
     112  session_start(); 
    112113  $_SESSION['CAPTCHAString'] = $GLOBALS['captcha'] ->GetCaptchaString(); 
    113114  // Vai exibir a imagem do captcha... 
Note: See TracChangeset for help on using the changeset viewer.