From d9022f63880ce039446fba8364f68e656b7bf4cb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Thu, 3 May 2012 13:01:35 +0200 Subject: Update to MediaWiki 1.19.0 --- includes/templates/NoLocalSettings.php | 1 + includes/templates/Usercreate.php | 238 +++++++++++++++++++++++++++++++++ includes/templates/Userlogin.php | 227 +------------------------------ 3 files changed, 240 insertions(+), 226 deletions(-) create mode 100644 includes/templates/Usercreate.php (limited to 'includes/templates') diff --git a/includes/templates/NoLocalSettings.php b/includes/templates/NoLocalSettings.php index facb6167..59284af0 100644 --- a/includes/templates/NoLocalSettings.php +++ b/includes/templates/NoLocalSettings.php @@ -10,6 +10,7 @@ if ( !isset( $wgVersion ) ) { $wgVersion = 'VERSION'; } +# bug 30219 : can not use pathinfo() on URLs since slashes do not match $matches = array(); $ext = 'php'; $path = '/'; diff --git a/includes/templates/Usercreate.php b/includes/templates/Usercreate.php new file mode 100644 index 00000000..c93b02cc --- /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' ); ?>
-