Changeset 1070 for trunk/picture.php


Ignore:
Timestamp:
Mar 9, 2006, 12:14:53 AM (18 years ago)
Author:
rub
Message:

Step 1 improvement issue 0000301:

o Change status of table #_user_infos
o Don't send password to webmaster, guest, generic

Next Step:

o Functions Check of status
o Restricted Access for user generic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r1059 r1070  
    115115
    116116//-------------------------------------------------------------- representative
    117 if ('admin' == $user['status'] and isset($_GET['representative']))
     117if (is_admin() and isset($_GET['representative']))
    118118{
    119119  $query = '
     
    481481      $data{'content'} = htmlspecialchars( $_POST['content'], ENT_QUOTES);
    482482
    483       if (!$conf['comments_validation'] or $user['status'] == 'admin')
     483      if (!$conf['comments_validation'] or is_admin())
    484484      {
    485485        $data{'validated'} = 'true';
     
    499499      $message = $lang['comment_added'];
    500500
    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() )
    504504      {
    505505        $message.= '<br />'.$lang['comment_to_validate'];
     
    520520if ( isset( $_GET['del'] )
    521521     and is_numeric( $_GET['del'] )
    522      and $user['status'] == 'admin' )
     522     and is_admin() )
    523523{
    524524  $query = 'DELETE FROM '.COMMENTS_TABLE;
     
    687687}
    688688// button to set the current picture as representative
    689 if ('admin' == $user['status'] and
     689if (is_admin() and
    690690    isset($page['cat']) and is_numeric($page['cat']))
    691691{
     
    701701}
    702702
    703 if ('admin' == $user['status'])
     703if (is_admin())
    704704{
    705705  $template->assign_block_vars(
     
    753753}
    754754//------------------------------------ admin link for information modifications
    755 if ( $user['status'] == 'admin' )
     755if ( is_admin() )
    756756{
    757757  $template->assign_block_vars('admin', array());
     
    11531153    ));
    11541154
    1155       if ( $user['status'] == 'admin' )
     1155      if ( is_admin() )
    11561156      {
    11571157        $template->assign_block_vars(
Note: See TracChangeset for help on using the changeset viewer.