[ 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/action/ -> registeraction.class.php (source)

   1  <?php
   2  
   3  lt_include( PLOG_CLASS_PATH."class/summary/action/summaryaction.class.php" );
   4  lt_include( PLOG_CLASS_PATH."class/data/textfilter.class.php" );
   5  lt_include( PLOG_CLASS_PATH."class/summary/view/summarycachedview.class.php" );
   6  lt_include( PLOG_CLASS_PATH."class/config/config.class.php" );
   7  lt_include( PLOG_CLASS_PATH."class/data/validator/stringvalidator.class.php" );
   8  lt_include( PLOG_CLASS_PATH."class/data/validator/usernamevalidator.class.php" );
   9  lt_include( PLOG_CLASS_PATH."class/data/validator/passwordvalidator.class.php" );
  10  lt_include( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );
  11  lt_include( PLOG_CLASS_PATH."class/data/validator/emailvalidator.class.php" );
  12  
  13  /**
  14   * Base action that all register actions should extend
  15   * @package summary
  16   * @subpackage action
  17   */
  18  class RegisterAction extends SummaryAction
  19  {
  20      var $userName;
  21      var $userPassword;
  22      var $userFullName;
  23      var $userEmail;
  24      var $blogName;
  25      var $blogCategoryId;
  26      var $blogLocale;
  27      var $templateId;
  28      var $blogDomain;
  29  
  30      function RegisterAction( $actionInfo, $request )
  31      {
  32          $this->SummaryAction( $actionInfo, $request );
  33  
  34          // there has to be a better place to check this, but I can't think of it now... Killing
  35          // the script without returning to the controller probably isn't a good idea, but it's
  36          // the quickest right now!
  37          $config =& Config::getConfig();
  38          if( $config->getValue( "summary_disable_registration" )) {
  39              lt_include( PLOG_CLASS_PATH."class/summary/view/summarymessageview.class.php" );
  40              $this->_view = new SummaryMessageView();
  41              $this->_view->setErrorMessage( $this->_locale->tr("error_registration_disabled"));            
  42              die($this->_view->render());
  43          }    
  44      }
  45  }
  46  ?>


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