';
// Age restriction in effect?
if ($context['show_coppa'])
echo '
';
else
echo '
';
echo '
';
}
/**
* Before registering - get their information.
*/
function template_registration_form()
{
global $context, $scripturl, $txt, $modSettings;
echo '
';
// Any errors?
if (!empty($context['registration_errors']))
{
echo '
', $txt['registration_errors_occurred'], '
';
// Cycle through each error and display an error message.
foreach ($context['registration_errors'] as $error)
echo '
', $error, '
';
echo '
';
}
echo '
';
}
/**
* After registration... all done ;).
*/
function template_after()
{
global $context;
// Not much to see here, just a quick... "you're now registered!" or what have you.
echo '
', $context['title'], '
', $context['description'], '
';
}
/**
* Template for giving instructions about COPPA activation.
*/
function template_coppa()
{
global $context, $txt, $scripturl;
// Formulate a nice complicated message!
echo '
';
// Offer an alternative Phone Number?
if ($context['coppa']['phone'])
echo '
', $context['coppa']['phone'], '
';
echo '
';
}
/**
* An easily printable form for giving permission to access the forum for a minor.
*/
function template_coppa_form()
{
global $context, $txt;
// Show the form (As best we can)
echo '
';
}
/**
* The template for the form allowing an admin to register a user from the admin center.
*/
function template_admin_register()
{
global $context, $scripturl, $txt, $modSettings;
echo '
';
}
/**
* Form for editing the agreement shown for people registering to the forum.
*/
function template_edit_agreement()
{
global $context, $scripturl, $txt;
if (!empty($context['saved_successful']))
echo '
';
// Warning for if the file isn't writable.
if (!empty($context['warning']))
echo '
', $context['warning'], '
';
// Just a big box to edit the text file ;)
echo '
', $txt['registration_agreement'], '
';
// Is there more than one language to choose from?
if (count($context['editable_agreements']) > 1)
{
echo '
', $txt['language_configuration'], '
';
}
// Show the actual agreement in an oversized text box.
echo '
';
}
/**
* Template for editing reserved words.
*/
function template_edit_reserved_words()
{
global $context, $scripturl, $txt;
if (!empty($context['saved_successful']))
echo '
', $txt['settings_saved'], '
';
echo '
';
}
// Form for editing the privacy policy shown to people registering to the forum.
function template_edit_privacy_policy()
{
global $context, $settings, $options, $scripturl, $txt;
if (!empty($context['saved_successful']))
echo '
', $txt['settings_saved'], '
';
// Just a big box to edit the text file ;).
echo '
', $txt['privacy_policy'], '
';
// Is there more than one language to choose from?
if (count($context['editable_policies']) > 1)
{
echo '