annotate forum/Themes/default/Reminder.template.php @ 76:e3e11437ecea website

Add forum code
author Chris Cannam
date Sun, 07 Jul 2013 11:25:48 +0200
parents
children
rev   line source
Chris@76 1 <?php
Chris@76 2 /**
Chris@76 3 * Simple Machines Forum (SMF)
Chris@76 4 *
Chris@76 5 * @package SMF
Chris@76 6 * @author Simple Machines
Chris@76 7 * @copyright 2011 Simple Machines
Chris@76 8 * @license http://www.simplemachines.org/about/smf/license.php BSD
Chris@76 9 *
Chris@76 10 * @version 2.0
Chris@76 11 */
Chris@76 12
Chris@76 13 function template_main()
Chris@76 14 {
Chris@76 15 global $context, $settings, $options, $txt, $scripturl;
Chris@76 16
Chris@76 17 echo '
Chris@76 18 <br />
Chris@76 19 <form action="', $scripturl, '?action=reminder;sa=picktype" method="post" accept-charset="', $context['character_set'], '">
Chris@76 20 <div class="tborder login">
Chris@76 21 <div class="cat_bar">
Chris@76 22 <h3 class="catbg">', $txt['authentication_reminder'], '</h3>
Chris@76 23 </div>
Chris@76 24 <span class="upperframe"><span></span></span>
Chris@76 25 <div class="roundframe">
Chris@76 26 <p class="smalltext centertext">', $txt['password_reminder_desc'], '</p>
Chris@76 27 <dl>
Chris@76 28 <dt>', $txt['user_email'], ':</dt>
Chris@76 29 <dd><input type="text" name="user" size="30" class="input_text" /></dd>
Chris@76 30 </dl>
Chris@76 31 <p class="centertext"><input type="submit" value="', $txt['reminder_continue'], '" class="button_submit" /></p>
Chris@76 32 </div>
Chris@76 33 <span class="lowerframe"><span></span></span>
Chris@76 34 </div>
Chris@76 35 <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
Chris@76 36 </form>';
Chris@76 37 }
Chris@76 38
Chris@76 39 function template_reminder_pick()
Chris@76 40 {
Chris@76 41 global $context, $settings, $options, $txt, $scripturl;
Chris@76 42
Chris@76 43 echo '
Chris@76 44 <br />
Chris@76 45 <form action="', $scripturl, '?action=reminder;sa=picktype" method="post" accept-charset="', $context['character_set'], '">
Chris@76 46 <div class="tborder login">
Chris@76 47 <div class="cat_bar">
Chris@76 48 <h3 class="catbg">', $txt['authentication_reminder'], '</h3>
Chris@76 49 </div>
Chris@76 50 <span class="upperframe"><span></span></span>
Chris@76 51 <div class="roundframe">
Chris@76 52 <p><strong>', $txt['authentication_options'], ':</strong></p>
Chris@76 53 <p>
Chris@76 54 <input type="radio" name="reminder_type" id="reminder_type_email" value="email" checked="checked" class="input_radio" /></dt>
Chris@76 55 <label for="reminder_type_email">', $txt['authentication_' . $context['account_type'] . '_email'], '</label></dd>
Chris@76 56 </p>
Chris@76 57 <p>
Chris@76 58 <input type="radio" name="reminder_type" id="reminder_type_secret" value="secret" class="input_radio" />
Chris@76 59 <label for="reminder_type_secret">', $txt['authentication_' . $context['account_type'] . '_secret'], '</label>
Chris@76 60 </p>
Chris@76 61 <p class="centertext"><input type="submit" value="', $txt['reminder_continue'], '" class="button_submit" /></p>
Chris@76 62 </div>
Chris@76 63 <span class="lowerframe"><span></span></span>
Chris@76 64 </div>
Chris@76 65 <input type="hidden" name="uid" value="', $context['current_member']['id'], '" />
Chris@76 66 <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
Chris@76 67 </form>';
Chris@76 68 }
Chris@76 69
Chris@76 70 function template_sent()
Chris@76 71 {
Chris@76 72 global $context, $settings, $options, $txt, $scripturl;
Chris@76 73
Chris@76 74 echo '
Chris@76 75 <br />
Chris@76 76 <div class="tborder login" id="reminder_sent">
Chris@76 77 <div class="cat_bar">
Chris@76 78 <h3 class="catbg">' . $context['page_title'] . '</h3>
Chris@76 79 </div>
Chris@76 80 <p class="information">' . $context['description'] . '</p>
Chris@76 81 </div>';
Chris@76 82 }
Chris@76 83
Chris@76 84 function template_set_password()
Chris@76 85 {
Chris@76 86 global $context, $settings, $options, $txt, $scripturl, $modSettings;
Chris@76 87
Chris@76 88 echo '
Chris@76 89 <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/register.js"></script>
Chris@76 90 <br />
Chris@76 91 <form action="', $scripturl, '?action=reminder;sa=setpassword2" name="reminder_form" id="reminder_form" method="post" accept-charset="', $context['character_set'], '">
Chris@76 92 <div class="tborder login">
Chris@76 93 <div class="cat_bar">
Chris@76 94 <h3 class="catbg">', $context['page_title'], '</h3>
Chris@76 95 </div>
Chris@76 96 <span class="upperframe"><span></span></span>
Chris@76 97 <div class="roundframe">
Chris@76 98 <dl>
Chris@76 99 <dt>', $txt['choose_pass'], ': </dt>
Chris@76 100 <dd>
Chris@76 101 <input type="password" name="passwrd1" id="smf_autov_pwmain" size="22" class="input_password" />
Chris@76 102 <span id="smf_autov_pwmain_div" style="display: none;">
Chris@76 103 <img id="smf_autov_pwmain_img" src="', $settings['images_url'], '/icons/field_invalid.gif" alt="*" />
Chris@76 104 </span>
Chris@76 105 </dd>
Chris@76 106 <dt>', $txt['verify_pass'], ': </dt>
Chris@76 107 <dd>
Chris@76 108 <input type="password" name="passwrd2" id="smf_autov_pwverify" size="22" class="input_password" />
Chris@76 109 <span id="smf_autov_pwverify_div" style="display: none;">
Chris@76 110 <img id="smf_autov_pwverify_img" src="', $settings['images_url'], '/icons/field_invalid.gif" alt="*" />
Chris@76 111 </span>
Chris@76 112 </dd>
Chris@76 113 </dl>
Chris@76 114 <p class="align_center"><input type="submit" value="', $txt['save'], '" class="button_submit" /></p>
Chris@76 115 </div>
Chris@76 116 <span class="lowerframe"><span></span></span>
Chris@76 117 </div>
Chris@76 118 <input type="hidden" name="code" value="', $context['code'], '" />
Chris@76 119 <input type="hidden" name="u" value="', $context['memID'], '" />
Chris@76 120 <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
Chris@76 121 </form>
Chris@76 122 <script type="text/javascript"><!-- // --><![CDATA[
Chris@76 123 var regTextStrings = {
Chris@76 124 "password_short": "', $txt['registration_password_short'], '",
Chris@76 125 "password_reserved": "', $txt['registration_password_reserved'], '",
Chris@76 126 "password_numbercase": "', $txt['registration_password_numbercase'], '",
Chris@76 127 "password_no_match": "', $txt['registration_password_no_match'], '",
Chris@76 128 "password_valid": "', $txt['registration_password_valid'], '"
Chris@76 129 };
Chris@76 130 var verificationHandle = new smfRegister("reminder_form", ', empty($modSettings['password_strength']) ? 0 : $modSettings['password_strength'], ', regTextStrings);
Chris@76 131 // ]]></script>';
Chris@76 132 }
Chris@76 133
Chris@76 134 function template_ask()
Chris@76 135 {
Chris@76 136 global $context, $settings, $options, $txt, $scripturl, $modSettings;
Chris@76 137
Chris@76 138 echo '
Chris@76 139 <script type="text/javascript" src="', $settings['default_theme_url'], '/scripts/register.js"></script>
Chris@76 140 <br />
Chris@76 141 <form action="', $scripturl, '?action=reminder;sa=secret2" method="post" accept-charset="', $context['character_set'], '" name="creator" id="creator">
Chris@76 142 <div class="tborder login">
Chris@76 143 <div class="cat_bar">
Chris@76 144 <h3 class="catbg">', $txt['authentication_reminder'], '</h3>
Chris@76 145 </div>
Chris@76 146 <span class="upperframe"><span></span></span>
Chris@76 147 <div class="roundframe">
Chris@76 148 <p class="smalltext">', $context['account_type'] == 'password' ? $txt['enter_new_password'] : $txt['openid_secret_reminder'], '</p>
Chris@76 149 <dl>
Chris@76 150 <dt>', $txt['secret_question'], ':</dt>
Chris@76 151 <dd>', $context['secret_question'], '</dd>
Chris@76 152 <dt>', $txt['secret_answer'], ':</dt>
Chris@76 153 <dd><input type="text" name="secret_answer" size="22" class="input_text" /></dd>';
Chris@76 154
Chris@76 155 if ($context['account_type'] == 'password')
Chris@76 156 echo '
Chris@76 157 <dt>', $txt['choose_pass'], ': </dt>
Chris@76 158 <dd>
Chris@76 159 <input type="password" name="passwrd1" id="smf_autov_pwmain" size="22" class="input_password" />
Chris@76 160 <span id="smf_autov_pwmain_div" style="display: none;">
Chris@76 161 <img id="smf_autov_pwmain_img" src="', $settings['images_url'], '/icons/field_invalid.gif" alt="*" />
Chris@76 162 </span>
Chris@76 163 </dd>
Chris@76 164 <dt>', $txt['verify_pass'], ': </dt>
Chris@76 165 <dd>
Chris@76 166 <input type="password" name="passwrd2" id="smf_autov_pwverify" size="22" class="input_password" />
Chris@76 167 <span id="smf_autov_pwverify_div" style="display: none;">
Chris@76 168 <img id="smf_autov_pwverify_img" src="', $settings['images_url'], '/icons/field_valid.gif" alt="*" />
Chris@76 169 </span>
Chris@76 170 </dd>';
Chris@76 171
Chris@76 172 echo '
Chris@76 173 </dl>
Chris@76 174 <p class="align_center"><input type="submit" value="', $txt['save'], '" class="button_submit" /></p>
Chris@76 175 </div>
Chris@76 176 <span class="lowerframe"><span></span></span>
Chris@76 177 </div>
Chris@76 178 <input type="hidden" name="uid" value="', $context['remind_user'], '" />
Chris@76 179 <input type="hidden" name="', $context['session_var'], '" value="', $context['session_id'], '" />
Chris@76 180 </form>';
Chris@76 181
Chris@76 182 if ($context['account_type'] == 'password')
Chris@76 183 echo '
Chris@76 184 <script type="text/javascript"><!-- // --><![CDATA[
Chris@76 185 var regTextStrings = {
Chris@76 186 "password_short": "', $txt['registration_password_short'], '",
Chris@76 187 "password_reserved": "', $txt['registration_password_reserved'], '",
Chris@76 188 "password_numbercase": "', $txt['registration_password_numbercase'], '",
Chris@76 189 "password_no_match": "', $txt['registration_password_no_match'], '",
Chris@76 190 "password_valid": "', $txt['registration_password_valid'], '"
Chris@76 191 };
Chris@76 192 var verificationHandle = new smfRegister("creator", ', empty($modSettings['password_strength']) ? 0 : $modSettings['password_strength'], ', regTextStrings);
Chris@76 193 // ]]></script>';
Chris@76 194
Chris@76 195 }
Chris@76 196
Chris@76 197 ?>