Verzeichnisstruktur phpBB-1.0.0
- Veröffentlicht
- 15.12.2000
So funktioniert es
|
|
Auf das letzte Element klicken. Dies geht jeweils ein Schritt zurück |
Auf das Icon klicken, dies öffnet das Verzeichnis. Nochmal klicken schließt das Verzeichnis. |
|
|
(Beispiel Datei-Icons)
|
Auf das Icon klicken um den Quellcode anzuzeigen |
bb_profile.php
001 <?php
002 /***************************************************************************
003 bb_profile.php - description
004 -------------------
005 begin : Sat June 17 2000
006 copyright : (C) 2000 by James Atkinson
007 email : james@totalgeek.org
008
009 $Id: bb_profile.php,v 1.29 2000/12/06 22:33:11 thefinn Exp $
010
011 ***************************************************************************/
012
013 /***************************************************************************
014 *
015 * This program is free software; you can redistribute it and/or modify
016 * it under the terms of the GNU General Public License as published by
017 * the Free Software Foundation; either version 2 of the License, or
018 * (at your option) any later version.
019 *
020 ***************************************************************************/
021
022 /**
023 * Thursday, July 20, 2000 - Yokhannan - Just a few typo errors corrected
024 *
025 * Saturday, July 22, 2000 - Yokhannan - I added the YIM & MSNM code
026 *
027 * Tusday, Sept. 12, 2000 - theFinn - Added code to record the date the user registers.
028 */
029 include('extention.inc');
030 include('functions.'.$phpEx);
031 include('config.'.$phpEx);
032 require('auth.'.$phpEx);
033 $pagetitle = "Profile";
034 $pagetype = "Edit Profile";
035
036
037 if($mode) {
038 switch($mode) {
039 case 'view':
040 include('page_header.'.$phpEx);
041 $userdata = get_userdata_from_id($user, $db);
042 $total_posts = get_total_posts("0", $db, "all");
043 if($userdata[user_posts] != 0)
044 $user_percentage = $userdata[user_posts] / $total_posts * 100;
045 else
046 $user_percentage = 0;
047
048 if (!$userdata[user_id]) {
049 die("User does not exist.");
050 }
051 if($userdata[user_level] == -1) {
052 ?>
053 <TABLE BORDER="0" CELLPADDING="1" CELLSPACING="0" ALIGN="CENTER" VALIGN="TOP" WIDTH="<?php echo $TableWidth?>">
054 <TR><TD BGCOLOR="<?php echo $table_bgcolor?>">
055 <TABLE BORDER="0" CELLPADDING="1" CELLSPACING="1" WIDTH="100%">
056 <TR ALIGN="LEFT" BGCOLOR="<?php echo $color1?>">
057 <TD ALIGN="CENTER"><font face="<?php echo $FontFace?>" size="<?php echo $FontSize2?>" color="<?php echo $textcolor?>"><B>Error</B></font></TD>
058 </TR>
059 <TR ALIGN="CENTER" BGCOLOR="<?php echo $color2?>">
060 <TD><font face="<?php echo $FontFace?>" size="<?php echo $FontSize2?>" color="<?php echo $textcolor?>">This user has been removed from the <?php echo $sitename?> Forums database.</font></TD>
061 </TR>
062 </TABLE></TABLE>
063 <?php
064 include('page_tail.'.$phpEx);
065 exit();
066 }
067 ?>
068 <TABLE BORDER="0" CELLPADDING="1" CELLSPACING="0" ALIGN="CENTER" VALIGN="TOP" WIDTH="<?php echo $TableWidth?>"><TR><TD BGCOLOR="<?php echo $table_bgcolor?>">
069 <TABLE BORDER="0" CELLPADDING="1" CELLSPACING="1" WIDTH="100%">
070 <TR ALIGN="LEFT">
071 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>User Name:</FONT></b></TD>
072 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><?php echo $userdata[username]?></FONT>
073 <font size=-2>(<a href="search.<?php echo $phpEx?>?term=&addterms=any&forum=all&username=<?php echo $userdata[username]?>&sortby=p.post_time&searchboth=both&submit=Search">view posts by this user</a>)</font></TD>
074 </TR>
075 <TR ALIGN="LEFT">
076 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Member Since:</FONT></b></TD>
077 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><?php echo $userdata[user_regdate]?></FONT></TD>
078 </TR>
079 <TR ALIGN="LEFT">
080 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Posts:</FONT></b></TD>
081 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><?php echo $userdata[user_posts]?> (<?php printf("%.2f", $user_percentage) ?>% of total)</FONT></TD>
082 </TR>
083
084 <?php
085 if($userdata[user_viewemail] == 1) {
086 ?>
087 <TR ALIGN="LEFT">
088 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Email Address:<b></TD>
089 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><a href="mailto:<?php echo $userdata[user_email]?>"><?php echo $userdata[user_email]?></a></TD>
090 </TR>
091 <?php
092 }
093 ?>
094 <TR ALIGN="LEFT">
095 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>ICQ Number: <b></TD>
096 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><?php echo $userdata[user_icq]?></FONT> <font size=-2>(<a href="http://wwp.icq.com/scripts/search.dll?to=<?php echo $userdata[user_icq]?>">add</a>)</font> <font size=-2>(<a href="http://wwp.mirabilis.com/<?php echo $userdata[user_icq]?>" TARGET="_blank">pager</a>)</font></TD>
097
098 </TR>
099 <TR ALIGN="LEFT">
100 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>AIM Handle: <b></TD>
101 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><a href="aim:goim?screenname=<?php echo $userdata[user_aim]?>&message=Hi+<?php echo $userdata[user_aim]?>.+Are+you+there?"><?php echo $userdata[user_aim]?></a></FONT> </TD>
102 </TR>
103 <TR ALIGN="LEFT">
104 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Yahoo Messanger: <b></TD>
105 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><a href="http://edit.yahoo.com/config/send_webmesg?.target=<?php echo $userdata[user_yim]?>&.src=pg"><?php echo $userdata[user_yim]?></a></FONT> </TD>
106 </TR>
107 <TR ALIGN="LEFT">
108 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>MSN Messanger: <b></TD>
109 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><?php echo $userdata[user_msnm]?> </TD>
110 </TR>
111
112 <TR ALIGN="LEFT">
113 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Web Site Address: <b></TD>
114 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><a href="<?php echo $userdata[user_website]?>" target="_blank"><?php echo $userdata[user_website]?></a></FONT> </TD>
115 </TR>
116 <TR ALIGN="LEFT">
117 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Location: <b></TD>
118 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><?php echo $userdata[user_from]?> </TD>
119 </TR>
120 <TR ALIGN="LEFT">
121 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Occupation: <b></TD>
122 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><?php echo $userdata[user_occ]?> </TD>
123 </TR>
124 <TR ALIGN="LEFT">
125 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Interests: <b></TD>
126 <?php
127 $userdata[user_intrest] = stripslashes($userdata[user_intrest]);
128 ?>
129 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><?php echo $userdata[user_intrest]?> </TD>
130 </TR>
131 </TABLE></TD></TR></TABLE>
132 <?php
133
134 break;
135 case 'edit':
136
137 if ($submit || $user_logged_in) {
138 // ok.. either the user's entered their username and password, or they have a valid session.
139 if ($save) {
140 // trying to save their profile information..
141 $userdata = get_userdata_from_id($user_id, $db);
142 if(is_banned($userdata[user_id], "username", $db))
143 die("You have been banned from this forum. Contact the system administrator if you have any quesions.");
144 if (!$userdata[user_id]) {
145 include('page_header.'.$phpEx);
146 die("Invalid userid.");
147 }
148 if ($password == '') {
149 include('page_header.'.$phpEx);
150 die("You must enter your password. Go back and do so.");
151 }
152 $md_pass = md5($password);
153 if ($password2 != '') {
154 if ($password != $password2) {
155 include('page_header.'.$phpEx);
156 die("Passwords do not match. Go back and re-enter them.");
157 }
158 } else {
159 // only one password, so make sure it's valid.
160 if ($md_pass != $userdata[user_password]) {
161 include('page_header.'.$phpEx);
162 die("Invalid password. Go back and try again.");
163 }
164 }
165 // whatever the case, $md_pass contains the password for the DB.
166 // ready to save, they've authed just fine..
167 if($allow_namechange && $user_name != $userdata[username]) {
168 if (check_username($user_name, $db)) {
169 die("The username you chose \"$user_name\" has been taken. Please go back and try another name");
170 }
171 if(validate_username($user_name, $db) == 1) {
172 include('page_header.'.$phpEx);
173 die("The username you chose, \"$user_name\" has been disallowed by the administrator. Please go back and try another name");
174 }
175 $new_name = 1;
176 }
177 $sig = str_replace("\n", "<BR>", $sig);
178 $sig = addslashes($sig);
179 $occ = addslashes($occ);
180 $intrest = addslashes($intrest);
181 $from = addslashes($from);
182 $passwd = md5($password);
183 if($new_name) {
184 $sql = "UPDATE users SET username = '$user_name', user_password = '$md_pass', user_icq = '$icq', user_occ = '$occ', user_intrest = '$intrest', user_from = '$from', user_website = '$website', user_sig = '$sig', user_email = '$email', user_viewemail = '$viewemail', user_aim = '$aim', user_yim = '$yim', user_msnm = '$msnm' WHERE (user_id = '$user_id')";
185 }
186 else {
187 $sql = "UPDATE users SET user_password = '$md_pass', user_icq = '$icq', user_occ = '$occ', user_intrest = '$intrest', user_from = '$from', user_website = '$website', user_sig = '$sig', user_email = '$email', user_viewemail = '$viewemail', user_aim = '$aim', user_yim = '$yim', user_msnm = '$msnm' WHERE (user_id = '$user_id')";
188 }
189 if(!$result = mysql_query($sql, $db)) {
190 include('page_header.'.$phpEx);
191 echo mysql_error() . "<br>";
192 die("Error doing db UPDATE.");
193 }
194 // They have authed, log them in.
195 $sessid = new_session($userdata[user_id], $REMOTE_ADDR, $sesscookietime, $db);
196 set_session_cookie($sessid, $sesscookietime, $sesscookiename, $cookiepath, $cookiedomain, $cookiesecure);
197 include('page_header.'.$phpEx);
198 echo "Your Information has been updated.<br>Click <a href=\"index.$phpEx\">here</a> to return to the forum index.";
199 } else {
200 // not trying to save, so show the form.
201 if (!$user_logged_in) {
202 // no valid session, need to check user/pass.
203 if($user == '' || $passwd == '') {
204 include('page_header.'.$phpEx);
205 die("You must enter your User Name and Password. Go back and do so.");
206 }
207 $md_pass = md5($passwd);
208 $userdata = get_userdata($user, $db);
209 if(is_banned($userdata[user_id], "username", $db))
210 die("You have been banned from this forum. Contact the system administrator if you have any quesions.");
211 if($md_pass != $userdata["user_password"]) {
212 include('page_header.'.$phpEx);
213 die("You have entered an incorrect password. Go back and try again.");
214 }
215 // They have authed succecfully, log them in.
216 $sessid = new_session($userdata[user_id], $REMOTE_ADDR, $sesscookietime, $db);
217 set_session_cookie($sessid, $sesscookietime, $sesscookiename, $cookiepath, $cookiedomain, $cookiesecure);
218 }
219 include('page_header.'.$phpEx);
220 ?>
221 <FORM ACTION="<?php echo $PHP_SELF?>" METHOD="POST">
222 <TABLE BORDER="0" CELLPADDING="1" CELLSPACING="0" ALIGN="CENTER" VALIGN="TOP" WIDTH="<?php echo $TableWidth?>">
223 <TR><TD BGCOLOR="<?php echo $table_bgcolor?>">
224 <TABLE BORDER="0" CELLPADDING="1" CELLSPACING="1" WIDTH="100%">
225 <TR ALIGN="LEFT">
226 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>User Name:</FONT></b></TD>
227 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>">
228 <?php
229 if($allow_namechange) {
230 echo "<input type=\"text\" name=\"user_name\" size=\"35\" maxlength=\"40\" value=\"$userdata[username]\">";
231 }
232 else {
233 echo $userdata[username];
234 }
235 ?>
236 </FONT></TD>
237 </TR>
238 <TR ALIGN="LEFT">
239 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Password: *</FONT></b></TD>
240 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><INPUT TYPE="PASSWORD" NAME="password" SIZE="25" MAXLENGTH="25"></TD>
241 </TR>
242 <TR ALIGN="LEFT">
243 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Confirm Password:</b></FONT><br><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize1?>" COLOR="<?php echo $textcolor?>">(only required if being changed)</FONT></TD>
244 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><INPUT TYPE="PASSWORD" NAME="password2" SIZE="25" MAXLENGTH="25"></TD>
245 </TR>
246
247 <TR ALIGN="LEFT">
248 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>EMail Address: *<b></TD>
249 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><INPUT TYPE="TEXT" NAME="email" SIZE="25" MAXLENGTH="50" VALUE="<?php echo $userdata[user_email]?>"></TD>
250 </TR>
251 <TR ALIGN="LEFT">
252 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>ICQ Number: <b></TD>
253 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><INPUT TYPE="TEXT" NAME="icq" SIZE="10" MAXLENGTH="15" VALUE="<?php echo $userdata[user_icq]?>"></TD>
254 </TR>
255 <TR ALIGN="LEFT">
256 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>AIM Handle: <b></TD>
257 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><INPUT TYPE="TEXT" NAME="aim" SIZE="25" MAXLENGTH="18" VALUE="<?php echo $userdata[user_aim]?>"></TD>
258 </TR>
259 <TR ALIGN="LEFT">
260 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Yahoo Messenger: <b></TD>
261 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><INPUT TYPE="TEXT" NAME="yim" SIZE="25" MAXLENGTH="18" VALUE="<?php echo $userdata[user_yim]?>"></TD>
262 </TR>
263 <TR ALIGN="LEFT">
264 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>MSN Messenger: <b></TD>
265 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><INPUT TYPE="TEXT" NAME="msnm" SIZE="25" MAXLENGTH="18" VALUE="<?php echo $userdata[user_msnm]?>"></TD>
266 </TR>
267 <TR ALIGN="LEFT">
268 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Web Site Address: <b></TD>
269 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><INPUT TYPE="TEXT" NAME="website" SIZE="25" MAXLENGTH="40" VALUE="<?php echo $userdata[user_website]?>"></TD>
270 </TR>
271 <TR ALIGN="LEFT">
272 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Location: <b></TD>
273 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><INPUT TYPE="TEXT" NAME="from" SIZE="25" MAXLENGTH="40" VALUE="<?php echo $userdata[user_from]?>"></TD>
274 </TR>
275 <TR ALIGN="LEFT">
276 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Occupation: <b></TD>
277 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><INPUT TYPE="TEXT" NAME="occ" SIZE="25" MAXLENGTH="40" VALUE="<?php echo $userdata[user_occ]?>"></TD>
278 </TR>
279 <TR ALIGN="LEFT">
280 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Intrests: <b></TD>
281 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><INPUT TYPE="TEXT" NAME="intrest" SIZE="25" MAXLENGTH="40" VALUE="<?php echo $userdata[user_intrest]?>"></TD>
282 </TR>
283 <?php
284 $sig = str_replace("<BR>", "\n", $userdata[user_sig]);
285 ?>
286 <TR ALIGN="LEFT">
287 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Signature:</b><br><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize1?>" COLOR="<?php echo $textcolor?>">This is a block of text that can be added to posts you make.<BR>255 characters max!</font></TD>
288 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><TEXTAREA NAME="sig" ROWS=6 COLS=45><?php echo $sig?></TEXTAREA></TD>
289 </TR>
290 <TR ALIGN="LEFT">
291 <?php
292 if($userdata[user_viewemail] == 1)
293 $s = " CHECKED";
294 ?>
295 <TD BGCOLOR="<?php echo $color1?>" width="25%"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><b>Options:</FONT></b></TD>
296 <TD BGCOLOR="<?php echo $color2?>"><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>"><INPUT TYPE="CHECKBOX" NAME="viewemail" VALUE="1" <?php echo $s?>> Allow other users to view my email address</TD>
297 </TR>
298 <TR ALIGN="LEFT">
299 <TD BGCOLOR="<?php echo $color1?>" colspan = 2><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize3?>" COLOR="<?php echo $textcolor?>">Items marked with a * are required</font></TD>
300 </TR>
301 <TR>
302 <TD BGCOLOR="<?php echo $color1?>" colspan=2 ALIGN="CENTER">
303 <INPUT TYPE="HIDDEN" NAME="mode" VALUE="edit">
304 <INPUT TYPE="HIDDEN" NAME="save" VALUE="1">
305 <INPUT TYPE="HIDDEN" NAME="user_id" VALUE="<?php echo $userdata[user_id]?>">
306 <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Submit"> <INPUT TYPE="RESET" VALUE="Clear">
307 </TD>
308 </TR>
309 </TABLE></TD></TR></TABLE></FORM>
310 <?PHP
311
312 }
313 } else {
314 // no valid session, and they haven't submitted.
315 // so, we need to get a user/pass.
316 include('page_header.'.$phpEx);
317 ?>
318 <TABLE BORDER="0" WIDTH="<?php echo $TableWidth?>" CELLPADDING="1" CELLSPACING="0" ALIGN="CENTER" VALIGN="TOP">
319 <TR><TD BGCOLOR="<?php echo $table_bgcolor?>">
320 <TABLE BORDER="0" CELLPADDING="1" CELLSPACING="1" WIDTH="100%">
321 <TR BGCOLOR="<?php echo $color2?>" ALIGN="CENTER">
322 <TD><BR><BR><FONT FACE="<?php echo $FontFace?>" SIZE="<? echo $FontSize2?>" COLOR="<?php echo $textcolor?>">
323 Please enter your User Name and Password to edit your profile information
324 <FORM ACTION="<?php echo $PHP_SELF?>" METHOD="POST">
325 <b>User Name: </b><INPUT TYPE="TEXT" NAME="user" SIZE="25" MAXLENGTH="40" VALUE="<?php echo $userdata[username]?>"><BR>
326 <b>Password: </b><INPUT TYPE="PASSWORD" NAME="passwd" SIZE="25" MAXLENGTH="25"><br></FONT>
327 <INPUT TYPE="HIDDEN" NAME="mode" VALUE="edit">
328 <INPUT TYPE="SUBMIT" NAME="submit" VALUE="Edit Information"> <INPUT TYPE="RESET" VALUE="Clear">
329 </FORM><BR></TD></TR></TABLE></TD></TR></TABLE>
330 <?php
331 }
332 break;
333
334 } // switch
335
336 } // if ($mode)
337 ?>
338 <?php
339 include('page_tail.'.$phpEx);
340 ?>
341