Changeset 1551 for trunk/wp-admin/profile.php
- Timestamp:
- 08/22/2004 11:24:50 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/profile.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/profile.php
r1503 r1551 3 3 4 4 $title = "Profile"; 5 /* <Profile | My Profile> */ 5 $parent_file = 'profile.php'; 6 6 7 7 function add_magic_quotes($array) { … … 106 106 break; 107 107 108 case 'viewprofile':109 110 111 $profiledata = get_userdata($user);112 if ($_COOKIE['wordpressuser_'.$cookiehash] == $profiledata->user_login)113 header ('Location: profile.php');114 115 include_once('admin-header.php');116 ?>117 118 <h2><?php _e('View Profile') ?> “119 <?php120 switch($profiledata->user_idmode) {121 case 'nickname':122 $r = $profiledata->user_nickname;123 break;124 case 'login':125 $r = $profiledata->user_login;126 break;127 case 'firstname':128 $r = $profiledata->user_firstname;129 break;130 case 'lastname':131 $r = $profiledata->user_lastname;132 break;133 case 'namefl':134 $r = $profiledata->user_firstname.' '.$profiledata->user_lastname;135 break;136 case 'namelf':137 $r = $profiledata->user_lastname.' '.$profiledata->user_firstname;138 break;139 }140 echo $r;141 ?>142 ”</h2>143 144 <div id="profile">145 <p>146 <strong><?php _e('Login') ?></strong> <?php echo $profiledata->user_login ?>147 | <strong><?php _e('User #') ?></strong> <?php echo $profiledata->ID ?> | <strong><?php _e('Level') ?></strong>148 <?php echo $profiledata->user_level ?> | <strong><?php _e('Posts') ?></strong>149 <?php150 $posts = get_usernumposts($user);151 echo $posts;152 ?>153 </p>154 155 <p> <strong><?php _e('First name:') ?></strong> <?php echo $profiledata->user_firstname ?> </p>156 157 <p> <strong><?php _e('Last name:') ?></strong> <?php echo $profiledata->user_lastname ?> </p>158 159 <p> <strong><?php _e('Nickname:') ?></strong> <?php echo $profiledata->user_nickname ?> </p>160 161 <p> <strong><?php _e('E-mail:') ?></strong> <?php echo make_clickable($profiledata->user_email) ?>162 </p>163 164 <p> <strong><?php _e('Website:') ?></strong> <?php echo $profiledata->user_url ?> </p>165 166 <p> <strong><?php _e('ICQ:') ?></strong>167 <?php if ($profiledata->user_icq > 0) { echo make_clickable("icq:".$profiledata->user_icq); } ?>168 </p>169 170 <p> <strong><?php _e('AIM:') ?></strong> <?php echo "<a href='aim:goim?screenname=". str_replace(' ', '+', $profiledata->user_aim) ."&message=Howdy'>$profiledata->user_aim</a>"; ?>171 </p>172 173 <p> <strong><?php _e('MSN IM:') ?></strong> <?php echo $profiledata->user_msn ?> </p>174 175 <p> <strong><?php _e('Yahoo IM:') ?></strong> <?php echo $profiledata->user_yim ?> </p>176 177 </div>178 179 <?php180 181 break;182 183 184 108 case 'IErightclick': 185 109 … … 227 151 $bookmarklet_height= (get_settings('use_trackback')) ? 480 : 440; 228 152 229 ?> 230 <ul id="adminmenu2"> 231 <li><a href="users.php"><?php _e('Authors & Users') ?></a></li> 232 <li><a class="current"><?php _e('Your Profile') ?></a></li> 233 </ul> 234 <?php if (isset($updated)) { ?> 153 if (isset($updated)) { ?> 235 154 <div class="updated"> 236 155 <p><strong><?php _e('Profile updated.') ?></strong></p> … … 245 164 </p> 246 165 247 <style type="text/css" media="screen">248 th { text-align: right; }249 </style>250 166 <table width="99%" border="0" cellspacing="2" cellpadding="3"> 251 167 <tr> 252 168 <th width="33%" scope="row"><?php _e('Login:') ?></th> 253 <td width=" 73%"><?php echo $profiledata->user_login; ?></td>169 <td width="67%"><?php echo $profiledata->user_login; ?></td> 254 170 </tr> 255 171 <tr>
Note: See TracChangeset
for help on using the changeset viewer.