Ignore:
Timestamp:
Jan 15, 2004, 6:06:45 PM (21 years ago)
Author:
gweltas
Message:

Correction of php warnings

Location:
branches/release-1_3/admin
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/admin/stats.php

    r195 r280  
    4343$vtp->setGlobalVar( $sub, 'user_template', $user['template'] );
    4444//--------------------------------------------------- number of days to display
    45 if ( isset( $_GET['last_days'] ) ) define( MAX_DAYS, $_GET['last_days'] );
    46 else                               define( MAX_DAYS, 0 );
     45if ( isset( $_GET['last_days'] ) ) define( 'MAX_DAYS', $_GET['last_days'] );
     46else                               define( 'MAX_DAYS', 0 );
    4747
    4848foreach ( $conf['last_days'] as $option ) {
    4949  $vtp->addSession( $sub, 'last_day_option' );
    5050  $vtp->setVar( $sub, 'last_day_option.option', $option );
    51   $url = './admin.php?page=stats&expand='.$_GET['expand'];
     51  $url = './admin.php?page=stats';
     52  if (isset($_GET['expand']))
     53          $url .='&expand='.$_GET['expand'];
    5254  $url.= '&last_days='.($option - 1);
    5355  $vtp->setVar( $sub, 'last_day_option.link', add_session_id( $url ) );
     
    6062//---------------------------------------------------------------- log  history
    6163// empty link
    62 $url = './admin.php?page=stats&last_days='.$_GET['last_days'];
    63 $url.= '&expand='.$_GET['expand'];
     64$url = './admin.php?page=stats';
     65if (isset($_GET['last_days']))
     66        $url .='&last_days='.$_GET['last_days'];
     67// expand array management
     68$expand_days = array();
     69if (isset($_GET['expand']))
     70{
     71        $url.= '&expand='.$_GET['expand'];
     72        $expand_days = explode( ',', $_GET['expand'] );
     73}
    6474$url.= '&act=empty';
    6575$vtp->setVar( $sub, 'emply_url', add_session_id( $url ) );
    66 // expand array management
    67 $expand_days = explode( ',', $_GET['expand'] );
    6876$page['expand_days'] = array();
    6977foreach ( $expand_days as $expand_day ) {
     
    100108    array_push( $local_expand, $i );
    101109  }
    102   $url = './admin.php?page=stats&last_days='.$_GET['last_days'];
     110  $url = './admin.php?page=stats';
     111  if (isset($_GET['last_days']))
     112        $url.= '&last_days='.$_GET['last_days'];
    103113  $url.= '&expand='.implode( ',', $local_expand );
    104114  $vtp->setVar( $sub, 'day.url', add_session_id( $url ) );
  • branches/release-1_3/admin/thumbnail.php

    r57 r280  
    254254    $vtp->closeSession( $sub, 'dir' );
    255255    // recursive call
    256     $dirs.= get_displayed_dirs( $dir.'/'.$sub_dir,
    257                                 $indent+30 );
    258    
     256    get_displayed_dirs( $dir.'/'.$sub_dir,
     257                                $indent+30 );   
    259258  }
    260259}
  • branches/release-1_3/admin/user_list.php

    r164 r280  
    110110  $action = './admin.php?'.$_SERVER['QUERY_STRING'];
    111111  $vtp->setVar( $sub, 'add_user.form_action', $action );
    112   $vtp->setVar( $sub, 'add_user.f_username', $_POST['username'] );
     112  if (isset( $_POST['username']))
     113          $vtp->setVar( $sub, 'add_user.f_username', $_POST['username'] );
    113114  $vtp->closeSession( $sub, 'add_user' );
    114115 
  • branches/release-1_3/admin/user_perm.php

    r261 r280  
    6060}
    6161//---------------------------------------------------------------- form display
    62 $restrictions = get_restrictions( $_GET['user_id'], $page['user_status'],
     62$restrictions = get_user_restrictions( $_GET['user_id'], $page['user_status'],
    6363                                  false, false );
    6464$action = './admin.php?page=user_perm&user_id='.$_GET['user_id'];
Note: See TracChangeset for help on using the changeset viewer.