registeraction.class.php

来自「一个用PHP编写的」· PHP 代码 · 共 47 行

PHP
47
字号
<?phplt_include( PLOG_CLASS_PATH."class/summary/action/summaryaction.class.php" );lt_include( PLOG_CLASS_PATH."class/data/textfilter.class.php" );lt_include( PLOG_CLASS_PATH."class/summary/view/summarycachedview.class.php" );lt_include( PLOG_CLASS_PATH."class/config/config.class.php" );include_once( PLOG_CLASS_PATH."class/data/validator/stringvalidator.class.php" );include_once( PLOG_CLASS_PATH."class/data/validator/usernamevalidator.class.php" );include_once( PLOG_CLASS_PATH."class/data/validator/passwordvalidator.class.php" );include_once( PLOG_CLASS_PATH."class/data/validator/integervalidator.class.php" );include_once( PLOG_CLASS_PATH."class/data/validator/emailvalidator.class.php" );/** * Base action that all register actions should extend * @package summary * @subpackage action */class RegisterAction extends SummaryAction{    var $userName;    var $userPassword;    var $userFullName;    var $userEmail;    var $blogName;    var $blogCategoryId;    var $blogLocale;    var $templateId;    var $blogDomain;    function RegisterAction( $actionInfo, $request )    {        $this->SummaryAction( $actionInfo, $request );		// there has to be a better place to check this, but I can't think of it now... Killing		// the script without returning to the controller probably isn't a good idea, but it's		// the quickest right now!		$config =& Config::getConfig();		if( $config->getValue( "summary_disable_registration" )) {			lt_include( PLOG_CLASS_PATH."class/summary/view/summarymessageview.class.php" );			$this->_view = new SummaryMessageView();			$this->_view->setErrorMessage( $this->_locale->tr("error_registration_disabled"));						die($this->_view->render());		}	    }}?>

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?