From: Sam Reed Date: Tue, 20 Dec 2011 14:01:09 +0000 (+0000) Subject: Move registration form template to its own file X-Git-Tag: 1.31.0-rc.0~25869 X-Git-Url: http://git.cyclocoop.org/%7D%7Cconcat%7B?a=commitdiff_plain;h=1bbdc44b317e25b333df05665275e65c9d636c30;p=lhc%2Fweb%2Fwiklou.git Move registration form template to its own file --- diff --git a/includes/AutoLoader.php b/includes/AutoLoader.php index f03c859144..03cae5e78d 100644 --- a/includes/AutoLoader.php +++ b/includes/AutoLoader.php @@ -864,7 +864,7 @@ $wgAutoloadLocalClasses = array( # includes/templates 'UsercreateTemplate' => 'includes/templates/Userlogin.php', - 'UserloginTemplate' => 'includes/templates/Userlogin.php', + 'UserloginTemplate' => 'includes/templates/Usercreate.php', # includes/upload 'UploadBase' => 'includes/upload/UploadBase.php', diff --git a/includes/templates/Usercreate.php b/includes/templates/Usercreate.php new file mode 100644 index 0000000000..c93b02cc54 --- /dev/null +++ b/includes/templates/Usercreate.php @@ -0,0 +1,238 @@ +data['extraInput'][] = array( + 'name' => $name, + 'value' => $value, + 'type' => $type, + 'msg' => $msg, + 'helptext' => $helptext, + ); + } + + function execute() { + if( $this->data['message'] ) { +?> +
+ data['messagetype'] == 'error' ) { ?> + msg( 'loginerror' )?>
+ + html('message') ?> +
+
+ + +
msgWiki( 'signupstart' ); ?>
+
+ +
+

msg('createaccount') ?>

+ + html('header'); /* pre-table point for form plugins... */ ?> + haveData( 'languages' ) ) { ?> + + + + + + + + + + data['usedomain'] ) { + $doms = ""; + foreach( $this->data['domainnames'] as $dom ) { + $doms .= ""; + } + ?> + + + + + + + + + + + data['useemail'] ) { ?> + + + + data['userealname'] ) { ?> + + + + + + data['usereason'] ) { ?> + + + + + + + data['canremember'] ) { ?> + + + + +data['extraInput'] ) && is_array( $this->data['extraInput'] ) ) { + foreach ( $this->data['extraInput'] as $inputItem ) { ?> + + + + + + + + + +
+ data['name'], 'text', array( + 'class' => 'loginText', + 'id' => 'wpName2', + 'tabindex' => '1', + 'size' => '20', + 'required', + 'autofocus' + ) ); ?> +
+ 'loginPassword', + 'id' => 'wpPassword2', + 'tabindex' => '2', + 'size' => '20' + ) + User::passwordChangeInputAttribs() ); ?> +
msg( 'yourdomainname' ) ?> + +
+ 'loginPassword', + 'id' => 'wpRetype', + 'tabindex' => '4', + 'size' => '20' + ) + User::passwordChangeInputAttribs() ); ?> +
+ data['email'], 'email', array( + 'class' => 'loginText', + 'id' => 'wpEmail', + 'tabindex' => '5', + 'size' => '20' + ) ); ?> +
+ data['emailrequired'] ) { + $this->msgWiki('prefs-help-email-required'); + } else { + $this->msgWiki('prefs-help-email'); + } + if( $this->data['emailothers'] ) { + $this->msgWiki('prefs-help-email-others'); + } ?> +
+
+ +
+ msgWiki('prefs-help-realname'); ?> +
+
+ +
+ formatNum( ceil( $wgCookieExpiration / ( 3600 * 24 ) ) ) ), + 'wpRemember', + 'wpRemember', + $this->data['remember'], + array( 'tabindex' => '8' ) + ) + ?> +
+ /> + +
+ msgWiki( $inputItem['helptext'] ); ?> +
+ +
+ + data['createemail'] ) { ?> + + +
+haveData( 'uselang' ) ) { ?> +haveData( 'token' ) ) { ?> +
+
+
html( 'signupend' ); ?>
+data['extraInput'][] = array( - 'name' => $name, - 'value' => $value, - 'type' => $type, - 'msg' => $msg, - 'helptext' => $helptext, - ); - } - - function execute() { - if( $this->data['message'] ) { -?> -
- data['messagetype'] == 'error' ) { ?> - msg( 'loginerror' )?>
- - html('message') ?> -
-
- - -
msgWiki( 'signupstart' ); ?>
-
- -
-

msg('createaccount') ?>

- - html('header'); /* pre-table point for form plugins... */ ?> - haveData( 'languages' ) ) { ?> - - - - - - - - - - data['usedomain'] ) { - $doms = ""; - foreach( $this->data['domainnames'] as $dom ) { - $doms .= ""; - } - ?> - - - - - - - - - - - data['useemail'] ) { ?> - - - - data['userealname'] ) { ?> - - - - - - data['usereason'] ) { ?> - - - - - - - data['canremember'] ) { ?> - - - - -data['extraInput'] ) && is_array( $this->data['extraInput'] ) ) { - foreach ( $this->data['extraInput'] as $inputItem ) { ?> - - - - - - - - - -
- data['name'], 'text', array( - 'class' => 'loginText', - 'id' => 'wpName2', - 'tabindex' => '1', - 'size' => '20', - 'required', - 'autofocus' - ) ); ?> -
- 'loginPassword', - 'id' => 'wpPassword2', - 'tabindex' => '2', - 'size' => '20' - ) + User::passwordChangeInputAttribs() ); ?> -
msg( 'yourdomainname' ) ?> - -
- 'loginPassword', - 'id' => 'wpRetype', - 'tabindex' => '4', - 'size' => '20' - ) + User::passwordChangeInputAttribs() ); ?> -
- data['email'], 'email', array( - 'class' => 'loginText', - 'id' => 'wpEmail', - 'tabindex' => '5', - 'size' => '20' - ) ); ?> -
- data['emailrequired'] ) { - $this->msgWiki('prefs-help-email-required'); - } else { - $this->msgWiki('prefs-help-email'); - } - if( $this->data['emailothers'] ) { - $this->msgWiki('prefs-help-email-others'); - } ?> -
-
- -
- msgWiki('prefs-help-realname'); ?> -
-
- -
- formatNum( ceil( $wgCookieExpiration / ( 3600 * 24 ) ) ) ), - 'wpRemember', - 'wpRemember', - $this->data['remember'], - array( 'tabindex' => '8' ) - ) - ?> -
- /> - -
- msgWiki( $inputItem['helptext'] ); ?> -
- -
- - data['createemail'] ) { ?> - - -
-haveData( 'uselang' ) ) { ?> -haveData( 'token' ) ) { ?> -
-
-
html( 'signupend' ); ?>
-