Make WordPress Core


Ignore:
Timestamp:
08/22/2004 11:24:50 PM (22 years ago)
Author:
saxmatt
Message:

New submenu system.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/profile.php

    r1503 r1551  
    33
    44$title = "Profile";
    5 /* <Profile | My Profile> */
     5$parent_file = 'profile.php';
    66
    77function add_magic_quotes($array) {
     
    106106break;
    107107
    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') ?> &#8220;
    119   <?php
    120     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   &#8221;</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   <?php
    150     $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     <?php
    180 
    181 break;
    182 
    183 
    184108case 'IErightclick':
    185109
     
    227151    $bookmarklet_height= (get_settings('use_trackback')) ? 480 : 440;
    228152
    229     ?>
    230 <ul id="adminmenu2">
    231     <li><a href="users.php"><?php _e('Authors &amp; Users') ?></a></li>
    232     <li><a class="current"><?php _e('Your Profile') ?></a></li>
    233 </ul>
    234 <?php if (isset($updated)) { ?>
     153if (isset($updated)) { ?>
    235154<div class="updated">
    236155<p><strong><?php _e('Profile updated.') ?></strong></p>
     
    245164  </p>
    246165
    247     <style type="text/css" media="screen">
    248     th { text-align: right; }
    249     </style>
    250166  <table width="99%"  border="0" cellspacing="2" cellpadding="3">
    251167    <tr>
    252168      <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>
    254170    </tr>
    255171    <tr>
Note: See TracChangeset for help on using the changeset viewer.