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