Changeset 1161 for trunk/wp-admin/profile.php
- Timestamp:
- 04/25/2004 01:25:41 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/profile.php (modified) (15 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/profile.php
r1115 r1161 1 <?php $title = "Profile"; 1 <?php 2 require_once('../wp-includes/wp-l10n.php'); 3 4 $title = "Profile"; 2 5 /* <Profile | My Profile> */ 3 6 … … 45 48 /* checking the nickname has been typed */ 46 49 if (empty($_POST["newuser_nickname"])) { 47 die ( "<strong>ERROR</strong>: please enter your nickname (can be the same as your login)");50 die (__("<strong>ERROR</strong>: please enter your nickname (can be the same as your login)")); 48 51 return false; 49 52 } … … 52 55 if (!empty($_POST["newuser_icq"])) { 53 56 if ((ereg("^[0-9]+$",$_POST["newuser_icq"]))==false) { 54 die ( "<strong>ERROR</strong>: your ICQ UIN can only be a number, no letters allowed");57 die (__("<strong>ERROR</strong>: your ICQ UIN can only be a number, no letters allowed")); 55 58 return false; 56 59 } … … 59 62 /* checking e-mail address */ 60 63 if (empty($_POST["newuser_email"])) { 61 die ( "<strong>ERROR</strong>: please type your e-mail address");64 die (__("<strong>ERROR</strong>: please type your e-mail address")); 62 65 return false; 63 66 } else if (!is_email($_POST["newuser_email"])) { 64 die ( "<strong>ERROR</strong>: the email address isn't correct");67 die (__("<strong>ERROR</strong>: the email address isn't correct")); 65 68 return false; 66 69 } … … 68 71 if ($_POST["pass1"] == "") { 69 72 if ($_POST["pass2"] != "") 70 die ( "<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice.");73 die (__("<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice.")); 71 74 $updatepassword = ""; 72 75 } else { 73 76 if ($_POST["pass2"] == "") 74 die ( "<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice.");77 die (__("<strong>ERROR</strong>: you typed your new password only once. Go back to type it twice.")); 75 78 if ($_POST["pass1"] != $_POST["pass2"]) 76 die ( "<strong>ERROR</strong>: you typed two different passwords. Go back to correct that.");79 die (__("<strong>ERROR</strong>: you typed two different passwords. Go back to correct that.")); 77 80 $newuser_pass = $_POST["pass1"]; 78 81 $updatepassword = "user_pass=MD5('$newuser_pass'), "; … … 95 98 $result = $wpdb->query($query); 96 99 if (!$result) { 97 die ( "<strong>ERROR</strong>: couldn't update your profile...");100 die (__("<strong>ERROR</strong>: couldn't update your profile...")); 98 101 } 99 102 header('Location: profile.php?updated=true'); … … 110 113 ?> 111 114 112 <h2> View Profile“115 <h2><?php _e('View Profile') ?> “ 113 116 <?php 114 117 switch($profiledata->user_idmode) { … … 138 141 <div id="profile"> 139 142 <p> 140 <strong> Login</strong> <?php echo $profiledata->user_login ?>141 | <strong> User #</strong> <?php echo $profiledata->ID ?> | <strong>Level</strong>142 <?php echo $profiledata->user_level ?> | <strong> Posts</strong>143 <strong><?php _e('Login') ?></strong> <?php echo $profiledata->user_login ?> 144 | <strong><?php _e('User #') ?></strong> <?php echo $profiledata->ID ?> | <strong><?php _e('Level') ?></strong> 145 <?php echo $profiledata->user_level ?> | <strong><?php _e('Posts') ?></strong> 143 146 <?php 144 147 $posts = get_usernumposts($user); … … 147 150 </p> 148 151 149 <p> <strong> First name:</strong> <?php echo $profiledata->user_firstname ?> </p>150 151 <p> <strong> Last name:</strong> <?php echo $profiledata->user_lastname ?> </p>152 153 <p> <strong> Nickname:</strong> <?php echo $profiledata->user_nickname ?> </p>154 155 <p> <strong> Email:</strong> <?php echo make_clickable($profiledata->user_email) ?>152 <p> <strong><?php _e('First name:') ?></strong> <?php echo $profiledata->user_firstname ?> </p> 153 154 <p> <strong><?php _e('Last name:') ?></strong> <?php echo $profiledata->user_lastname ?> </p> 155 156 <p> <strong><?php _e('Nickname:') ?></strong> <?php echo $profiledata->user_nickname ?> </p> 157 158 <p> <strong><?php _e('Email:') ?></strong> <?php echo make_clickable($profiledata->user_email) ?> 156 159 </p> 157 160 158 <p> <strong> Website:</strong> <?php echo $profiledata->user_url ?> </p>159 160 <p> <strong> ICQ:</strong>161 <p> <strong><?php _e('Website:') ?></strong> <?php echo $profiledata->user_url ?> </p> 162 163 <p> <strong><?php _e('ICQ:') ?></strong> 161 164 <?php if ($profiledata->user_icq > 0) { echo make_clickable("icq:".$profiledata->user_icq); } ?> 162 165 </p> 163 166 164 <p> <strong> AIM:</strong> <?php echo "<a href='aim:goim?screenname=". str_replace(' ', '+', $profiledata->user_aim) ."&message=Howdy'>$profiledata->user_aim</a>"; ?>167 <p> <strong><?php _e('AIM:') ?></strong> <?php echo "<a href='aim:goim?screenname=". str_replace(' ', '+', $profiledata->user_aim) ."&message=Howdy'>$profiledata->user_aim</a>"; ?> 165 168 </p> 166 169 167 <p> <strong> MSN IM:</strong> <?php echo $profiledata->user_msn ?> </p>168 169 <p> <strong> Yahoo IM:</strong> <?php echo $profiledata->user_yim ?> </p>170 <p> <strong><?php _e('MSN IM:') ?></strong> <?php echo $profiledata->user_msn ?> </p> 171 172 <p> <strong><?php _e('Yahoo IM:') ?></strong> <?php echo $profiledata->user_yim ?> </p> 170 173 171 174 </div> … … 224 227 <?php if ($updated) { ?> 225 228 <div class="updated"> 226 <p><strong> Profile updated.</strong></p>229 <p><strong><?php _e('Profile updated.') ?></strong></p> 227 230 </div> 228 231 <?php } ?> … … 233 236 <input type="hidden" name="checkuser_id" value="<?php echo $user_ID ?>" /> 234 237 </p> 235 <p><strong> Login:</strong> <?php echo $profiledata->user_login ?> | <strong>Level:</strong>236 <?php echo $profiledata->user_level ?> | <strong> Posts:</strong>238 <p><strong><?php _e('Login:') ?></strong> <?php echo $profiledata->user_login ?> | <strong><?php _e('Level:') ?></strong> 239 <?php echo $profiledata->user_level ?> | <strong><?php _e('Posts:') ?></strong> 237 240 <?php 238 241 $posts = get_usernumposts($user_ID); … … 245 248 <table width="99%" border="0" cellspacing="2" cellpadding="3"> 246 249 <tr> 247 <th width="33%" scope="row"> First name:</th>250 <th width="33%" scope="row"><?php _e('First name:') ?></th> 248 251 <td width="73%"><input type="text" name="newuser_firstname" id="newuser_firstname" value="<?php echo $profiledata->user_firstname ?>" /></td> 249 252 </tr> 250 253 <tr> 251 <th scope="row"> Last name:</th>254 <th scope="row"><?php _e('Last name:') ?></th> 252 255 <td><input type="text" name="newuser_lastname" id="newuser_lastname2" value="<?php echo $profiledata->user_lastname ?>" /></td> 253 256 </tr> 254 257 <tr> 255 <th scope="row"> Profile:</th>258 <th scope="row"><?php _e('Profile:') ?></th> 256 259 <td><textarea name="user_description" rows="5" id="textarea2" style="width: 99%; "><?php echo $profiledata->user_description ?></textarea></td> 257 260 </tr> 258 261 <tr> 259 <th scope="row"> Nickname:</th>262 <th scope="row"><?php _e('Nickname:') ?></th> 260 263 <td><input type="text" name="newuser_nickname" id="newuser_nickname2" value="<?php echo $profiledata->user_nickname ?>" /></td> 261 264 </tr> 262 265 <tr> 263 <th scope="row"> Email:</th>266 <th scope="row"><?php _e('Email:') ?></th> 264 267 <td><input type="text" name="newuser_email" id="newuser_email2" value="<?php echo $profiledata->user_email ?>" /></td> 265 268 </tr> 266 269 <tr> 267 <th scope="row"> Website:</th>270 <th scope="row"><?php _e('Website:') ?></th> 268 271 <td><input type="text" name="newuser_url" id="newuser_url2" value="<?php echo $profiledata->user_url ?>" /></td> 269 272 </tr> 270 273 <tr> 271 <th scope="row"> ICQ:</th>274 <th scope="row"><?php _e('ICQ:') ?></th> 272 275 <td><input type="text" name="newuser_icq" id="newuser_icq2" value="<?php if ($profiledata->user_icq > 0) { echo $profiledata->user_icq; } ?>" /></td> 273 276 </tr> 274 277 <tr> 275 <th scope="row"> AIM:</th>278 <th scope="row"><?php _e('AIM:') ?></th> 276 279 <td><input type="text" name="newuser_aim" id="newuser_aim2" value="<?php echo $profiledata->user_aim ?>" /></td> 277 280 </tr> 278 281 <tr> 279 <th scope="row"> MSN IM:</th>282 <th scope="row"><?php _e('MSN IM:') ?> </th> 280 283 <td><input type="text" name="newuser_msn" id="newuser_msn2" value="<?php echo $profiledata->user_msn ?>" /></td> 281 284 </tr> 282 285 <tr> 283 <th scope="row"> Yahoo IM:</th>286 <th scope="row"><?php _e('Yahoo IM:') ?> </th> 284 287 <td> <input type="text" name="newuser_yim" id="newuser_yim2" value="<?php echo $profiledata->user_yim ?>" /> </td> 285 288 </tr> 286 289 <tr> 287 <th scope="row"> Identity on blog:</th>290 <th scope="row"><?php _e('Identity on blog:') ?> </th> 288 291 <td><select name="newuser_idmode"> 289 292 <option value="nickname"<?php … … 308 311 </tr> 309 312 <tr> 310 <th scope="row"> New <strong>Password</strong> (Leave blank to stay the same.)</th>313 <th scope="row"><?php _e('New <strong>Password</strong> (Leave blank to stay the same.)') ?></th> 311 314 <td><input type="password" name="pass1" size="16" value="" /> 312 315 <br> … … 315 318 </table> 316 319 <p class="submit"> 317 <input type="submit" value=" Update »" name="submit" />320 <input type="submit" value="<?php _e('Update »') ?>" name="submit" /> 318 321 </p> 319 322 </div> … … 328 331 window.sidebar.addPanel("WordPress Post: <?php echo get_settings('blogname'); ?>","<?php echo get_settings('siteurl'); ?>/wp-admin/sidebar.php",""); 329 332 else 330 alert( 'No Sidebar found! You must use Mozilla 0.9.4 or later!');333 alert(<?php __("'No Sidebar found! You must use Mozilla 0.9.4 or later!'") ?>); 331 334 } 332 335 </script>
Note: See TracChangeset
for help on using the changeset viewer.