Changeset 149
- Timestamp:
- 06/03/2003 12:08:51 AM (23 years ago)
- Location:
- trunk/wp-admin
- Files:
-
- 3 edited
-
b2edit.php (modified) (2 diffs)
-
b2edit.showposts.php (modified) (2 diffs)
-
b2team.php (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/b2edit.php
r143 r149 128 128 $postdata = get_postdata($post); 129 129 $authordata = get_userdata($postdata["Author_ID"]); 130 if ($user_level < $authordata [13])130 if ($user_level < $authordata->user_level) 131 131 die ('You don’t have the right to edit <strong>'.$authordata[1].'</strong>’s posts.'); 132 132 … … 219 219 $authordata = get_userdata($postdata["Author_ID"]); 220 220 221 if ($user_level < $authordata [13])221 if ($user_level < $authordata->user_level) 222 222 die ("You don't have the right to delete <b>".$authordata[1]."</b>'s posts."); 223 223 -
trunk/wp-admin/b2edit.showposts.php
r143 r149 236 236 <strong><?php the_time('Y/m/d @ H:i:s'); ?></strong> [ <a href="b2edit.php?p=<?php echo $id ?>&c=1"><?php comments_number('no comments', '1 comment', "% comments") ?></a> 237 237 <?php 238 if (($user_level > $authordata [13]) or ($user_login == $authordata[1])) {238 if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) { 239 239 echo " - <a href='b2edit.php?action=edit&post=$id"; 240 240 if ($m) … … 275 275 <?php comment_date('Y/m/d') ?> @ <?php comment_time() ?> 276 276 <?php 277 if (($user_level > $authordata [13]) or ($user_login == $authordata[1])) {277 if (($user_level > $authordata->user_level) or ($user_login == $authordata->user_login)) { 278 278 echo "[ <a href=\"b2edit.php?action=editcomment&comment=".$commentdata->comment_ID."\">Edit</a>"; 279 279 echo " - <a href=\"b2edit.php?action=deletecomment&p=".$post->ID."&comment=".$commentdata->comment_ID."\">Delete</a> ]"; -
trunk/wp-admin/b2team.php
r127 r149 34 34 35 35 $user_data = get_userdata($id); 36 $usertopromote_level = $user_data [13];36 $usertopromote_level = $user_data->user_level; 37 37 38 38 if ($user_level <= $usertopromote_level) { 39 die('Can’t change the level of a nuser whose level is higher than yours.');39 die('Can’t change the level of a user whose level is higher than yours.'); 40 40 } 41 41 … … 66 66 67 67 if ($user_level <= $usertodelete_level) 68 die('Can’t delete a nuser whose level is higher than yours.');68 die('Can’t delete a user whose level is higher than yours.'); 69 69 70 70 $sql = "DELETE FROM $tableusers WHERE ID = $id"; … … 84 84 ?> 85 85 86 <div class="wrap"><p>Click on a nuser’s login name to see his complete profile.<br />86 <div class="wrap"><p>Click on a user’s login name to see his complete profile.<br /> 87 87 To edit your profile, click on your login name.</p> 88 88 </div> … … 192 192 if ($user_level >= 3) { ?> 193 193 <div class="wrap"> 194 <p>To delete a nuser, bring his level to zero, then click on the red X.<br />195 <strong>Warning:</strong> deleting a nuser also deletes all posts made by this user.194 <p>To delete a user, bring his level to zero, then click on the red X.<br /> 195 <strong>Warning:</strong> deleting a user also deletes all posts made by this user. 196 196 </p> 197 197 </div>
Note: See TracChangeset
for help on using the changeset viewer.