Changeset 1070 for trunk/picture.php
- Timestamp:
- Mar 9, 2006, 12:14:53 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r1059 r1070 115 115 116 116 //-------------------------------------------------------------- representative 117 if ( 'admin' == $user['status']and isset($_GET['representative']))117 if (is_admin() and isset($_GET['representative'])) 118 118 { 119 119 $query = ' … … 481 481 $data{'content'} = htmlspecialchars( $_POST['content'], ENT_QUOTES); 482 482 483 if (!$conf['comments_validation'] or $user['status'] == 'admin')483 if (!$conf['comments_validation'] or is_admin()) 484 484 { 485 485 $data{'validated'} = 'true'; … … 499 499 $message = $lang['comment_added']; 500 500 501 if (!$conf['comments_validation'] or $user['status'] == 'admin')502 503 if ( $conf['comments_validation'] and $user['status'] != 'admin')501 if (!$conf['comments_validation'] or is_admin()) 502 503 if ( $conf['comments_validation'] and !is_admin() ) 504 504 { 505 505 $message.= '<br />'.$lang['comment_to_validate']; … … 520 520 if ( isset( $_GET['del'] ) 521 521 and is_numeric( $_GET['del'] ) 522 and $user['status'] == 'admin')522 and is_admin() ) 523 523 { 524 524 $query = 'DELETE FROM '.COMMENTS_TABLE; … … 687 687 } 688 688 // button to set the current picture as representative 689 if ( 'admin' == $user['status']and689 if (is_admin() and 690 690 isset($page['cat']) and is_numeric($page['cat'])) 691 691 { … … 701 701 } 702 702 703 if ( 'admin' == $user['status'])703 if (is_admin()) 704 704 { 705 705 $template->assign_block_vars( … … 753 753 } 754 754 //------------------------------------ admin link for information modifications 755 if ( $user['status'] == 'admin')755 if ( is_admin() ) 756 756 { 757 757 $template->assign_block_vars('admin', array()); … … 1153 1153 )); 1154 1154 1155 if ( $user['status'] == 'admin')1155 if ( is_admin() ) 1156 1156 { 1157 1157 $template->assign_block_vars(
Note: See TracChangeset
for help on using the changeset viewer.