Skip to:
Content

Changeset 123


Ignore:
Timestamp:
06/04/05 20:52:41 (9 years ago)
Author:
mdawaffe
Message:

What the? Bad local patching yielded oddities.

Location:
trunk/bb-admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/bb-admin/tag-destroy.php

    r120 r123  
    1818    die("Something odd happened when attempting to destroy that tag.  Error code: $destroyed.  <a href=\"" . $_SERVER['HTTP_REFERER'] . '">Try Again</a>'); 
    1919?> 
    20 <?php 
    21 require('../bb-config.php'); 
    22  
    23 nocache_headers(); 
    24  
    25 if ( $current_user->user_type < 2 ) 
    26     die('You need to be logged in as a developer to destroy a tag.'); 
    27  
    28 $tag_id = (int) $_POST['id' ]; 
    29  
    30 $old_tag = get_tag( $tag_id ); 
    31 if ( !$old_tag ) 
    32     die('Tag not found.'); 
    33  
    34 if ( $destroyed = destroy_tag( $tag_id ) ) 
    35     header('Location: ' . $bb->path ); 
    36 else 
    37     die("Something odd happened when attempting to destroy that tag.  Error code: $destroyed.  <a href=\"" . $_SERVER['HTTP_REFERER'] . '">Try Again</a>'); 
    38 ?> 
    39 <?php 
    40 require('../bb-config.php'); 
    41  
    42 nocache_headers(); 
    43  
    44 if ( $current_user->user_type < 2 ) 
    45     die('You need to be logged in as a developer to destroy a tag.'); 
    46  
    47 $tag_id = (int) $_POST['id' ]; 
    48  
    49 $old_tag = get_tag( $tag_id ); 
    50 if ( !$old_tag ) 
    51     die('Tag not found.'); 
    52  
    53 if ( $destroyed = destroy_tag( $tag_id ) ) 
    54     header('Location: ' . $bb->path ); 
    55 else 
    56     die("Something odd happened when attempting to destroy that tag.  Error code: $destroyed.  <a href=\"" . $_SERVER['HTTP_REFERER'] . '">Try Again</a>'); 
    57 ?> 
  • trunk/bb-admin/tag-rename.php

    r120 r123  
    1919    die('There already exists a tag by that name or the name is invalid.  <a href="' . $_SERVER['HTTP_REFERER'] . '">Try Again</a>'); 
    2020?> 
    21 <?php 
    22 require('../bb-config.php'); 
    23  
    24 nocache_headers(); 
    25  
    26 if ( $current_user->user_type < 2 ) 
    27     die('You need to be logged in as a developer to rename a tag.'); 
    28  
    29 $tag_id = (int) $_POST['id' ]; 
    30 $tag    =       $_POST['tag']; 
    31  
    32 $old_tag = get_tag( $tag_id ); 
    33 if ( !$old_tag ) 
    34     die('Tag not found.'); 
    35  
    36 if ( $tag = rename_tag( $tag_id, $tag ) ) 
    37     header('Location: ' . $bb->tagpath . "tags/$tag" ); 
    38 else 
    39     die('There already exists a tag by that name or the name is invalid.  <a href="' . $_SERVER['HTTP_REFERER'] . '">Try Again</a>'); 
    40 ?> 
    41 <?php 
    42 require('../bb-config.php'); 
    43  
    44 nocache_headers(); 
    45  
    46 if ( $current_user->user_type < 2 ) 
    47     die('You need to be logged in as a developer to rename a tag.'); 
    48  
    49 $tag_id = (int) $_POST['id' ]; 
    50 $tag    =       $_POST['tag']; 
    51  
    52 $old_tag = get_tag( $tag_id ); 
    53 if ( !$old_tag ) 
    54     die('Tag not found.'); 
    55  
    56 if ( $tag = rename_tag( $tag_id, $tag ) ) 
    57     header('Location: ' . $bb->tagpath . "tags/$tag" ); 
    58 else 
    59     die('There already exists a tag by that name or the name is invalid.  <a href="' . $_SERVER['HTTP_REFERER'] . '">Try Again</a>'); 
    60 ?> 
Note: See TracChangeset for help on using the changeset viewer.