mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
[feature/oauth] Start building the template
PHPBB3-11673
This commit is contained in:
parent
b5255d42b5
commit
deb62d51fe
3 changed files with 37 additions and 0 deletions
|
@ -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';
|
||||
}
|
||||
|
|
|
@ -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.',
|
||||
|
|
|
@ -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 -->
|
||||
|
|
Loading…
Add table
Reference in a new issue