diff options
author | Joseph Warner <hardolaf@hardolaf.com> | 2013-08-09 05:12:41 -0400 |
---|---|---|
committer | Joseph Warner <hardolaf@hardolaf.com> | 2013-08-09 05:12:57 -0400 |
commit | deb62d51fe4e06e52fbc4042b692071bcd8f9d39 (patch) | |
tree | ea07fb0fa86efee195910bf5e584b4b7dadf98d9 | |
parent | b5255d42b56b1d0d14bcd9a70218689932065ce6 (diff) | |
download | forums-deb62d51fe4e06e52fbc4042b692071bcd8f9d39.tar forums-deb62d51fe4e06e52fbc4042b692071bcd8f9d39.tar.gz forums-deb62d51fe4e06e52fbc4042b692071bcd8f9d39.tar.bz2 forums-deb62d51fe4e06e52fbc4042b692071bcd8f9d39.tar.xz forums-deb62d51fe4e06e52fbc4042b692071bcd8f9d39.zip |
[feature/oauth] Start building the template
PHPBB3-11673
-rw-r--r-- | phpBB/includes/ucp/ucp_auth_link.php | 28 | ||||
-rw-r--r-- | phpBB/language/en/ucp.php | 1 | ||||
-rw-r--r-- | phpBB/styles/prosilver/template/ucp_auth_link.html | 8 |
3 files changed, 37 insertions, 0 deletions
diff --git a/phpBB/includes/ucp/ucp_auth_link.php b/phpBB/includes/ucp/ucp_auth_link.php index 266273cff8..6bf74d4fbf 100644 --- a/phpBB/includes/ucp/ucp_auth_link.php +++ b/phpBB/includes/ucp/ucp_auth_link.php @@ -21,6 +21,34 @@ class ucp_auth_link public function main($id, $mode) { + global $template, $phpbb_container; + + $error = array(); + $s_hidden_fields = array(); + add_form_key('ucp_auth_link'); + + $submit = $request->variable('submit', false, false, phpbb_request_interface::POST); + + if ($submit) + { + if (!check_form_key('ucp_reg_details')) + { + $error[] = 'FORM_INVALID'; + } + + if (!sizeof($error)) + { + + } + } + + $s_hidden_fields = build_hidden_fields($s_hidden_fields); + + $template->assign_vars(array( + 'S_HIDDEN_FIELDS' => $s_hidden_fields, + 'S_UCP_ACTION' => $this->u_action, + )); + $this->tpl_name = 'ucp_auth_link'; $this->page_title = 'UCP_AUTH_LINK'; } diff --git a/phpBB/language/en/ucp.php b/phpBB/language/en/ucp.php index 993e5b56f8..4798b1e81c 100644 --- a/phpBB/language/en/ucp.php +++ b/phpBB/language/en/ucp.php @@ -481,6 +481,7 @@ $lang = array_merge($lang, array( 'UCP_ATTACHMENTS' => 'Attachments', 'UCP_AUTH_LINK' => 'External accounts', 'UCP_AUTH_LINK_MANAGE' => 'Manage external accounts', + 'UCP_AUTH_LINK_TITLE' => 'Manage Your External Accounts', 'UCP_COPPA_BEFORE' => 'Before %s', 'UCP_COPPA_ON_AFTER' => 'On or after %s', 'UCP_EMAIL_ACTIVATE' => 'Please note that you will need to enter a valid email address before your account is activated. You will receive an email at the address you provide that contains an account activation link.', diff --git a/phpBB/styles/prosilver/template/ucp_auth_link.html b/phpBB/styles/prosilver/template/ucp_auth_link.html index 12353f31bd..b521518bf3 100644 --- a/phpBB/styles/prosilver/template/ucp_auth_link.html +++ b/phpBB/styles/prosilver/template/ucp_auth_link.html @@ -1,3 +1,11 @@ <!-- INCLUDE ucp_header.html --> +<h2>{L_UCP_AUTH_LINK_TITLE}</h2> + +<form id="ucp" method="post" action="{S_UCP_ACTION}"> + +{S_HIDDEN_FIELDS} +{S_FORM_TOKEN} +</form> + <!-- INCLUDE ucp_footer.html --> |