[ Index ]
 

Code source de LifeType 1.2.4

Accédez au Source d'autres logiciels libres

Classes | Fonctions | Variables | Constantes | Tables

title

Body

[fermer]

/class/summary/view/ -> summaryusercreationview.class.php (source)

   1  <?php
   2      lt_include( PLOG_CLASS_PATH."class/config/config.class.php" );
   3  
   4      class SummaryUserCreationView extends SummaryView
   5      {
   6  		function SummaryUserCreationView()
   7          {
   8              $this->SummaryView( "registerstep1" );
   9          }
  10  
  11  		function render()
  12          {
  13              $config =& Config::getConfig();
  14              // check whether we should also display one of those authentication images
  15              if( $config->getValue( "use_captcha_auth" )) {
  16                  // generate a file with the captcha class
  17                  lt_include( PLOG_CLASS_PATH."class/data/captcha/captcha.class.php" );
  18                  $captcha = new Captcha();
  19                  $captchaFile = $captcha->generate();
  20                  // and then build a full url based on it...
  21                  $url = $config->getValue( "base_url" )."/".$captchaFile;
  22                  $this->setValue( "userAuthImgPath", $url );
  23                  $this->setValue( "useCaptchaAuth", true );
  24              }
  25              else {
  26                  $this->setValue( "useCaptchaAuth", false );
  27              }
  28  
  29              parent::render();
  30          }
  31      }
  32  ?>


Généré le : Mon Nov 26 21:04:15 2007 par Balluche grâce à PHPXref 0.7
  Clicky Web Analytics