Changeset 280 for branches/release-1_3/admin
- Timestamp:
- Jan 15, 2004, 6:06:45 PM (21 years ago)
- Location:
- branches/release-1_3/admin
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_3/admin/stats.php
r195 r280 43 43 $vtp->setGlobalVar( $sub, 'user_template', $user['template'] ); 44 44 //--------------------------------------------------- number of days to display 45 if ( isset( $_GET['last_days'] ) ) define( MAX_DAYS, $_GET['last_days'] );46 else define( MAX_DAYS, 0 );45 if ( isset( $_GET['last_days'] ) ) define( 'MAX_DAYS', $_GET['last_days'] ); 46 else define( 'MAX_DAYS', 0 ); 47 47 48 48 foreach ( $conf['last_days'] as $option ) { 49 49 $vtp->addSession( $sub, 'last_day_option' ); 50 50 $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']; 52 54 $url.= '&last_days='.($option - 1); 53 55 $vtp->setVar( $sub, 'last_day_option.link', add_session_id( $url ) ); … … 60 62 //---------------------------------------------------------------- log history 61 63 // empty link 62 $url = './admin.php?page=stats&last_days='.$_GET['last_days']; 63 $url.= '&expand='.$_GET['expand']; 64 $url = './admin.php?page=stats'; 65 if (isset($_GET['last_days'])) 66 $url .='&last_days='.$_GET['last_days']; 67 // expand array management 68 $expand_days = array(); 69 if (isset($_GET['expand'])) 70 { 71 $url.= '&expand='.$_GET['expand']; 72 $expand_days = explode( ',', $_GET['expand'] ); 73 } 64 74 $url.= '&act=empty'; 65 75 $vtp->setVar( $sub, 'emply_url', add_session_id( $url ) ); 66 // expand array management67 $expand_days = explode( ',', $_GET['expand'] );68 76 $page['expand_days'] = array(); 69 77 foreach ( $expand_days as $expand_day ) { … … 100 108 array_push( $local_expand, $i ); 101 109 } 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']; 103 113 $url.= '&expand='.implode( ',', $local_expand ); 104 114 $vtp->setVar( $sub, 'day.url', add_session_id( $url ) ); -
branches/release-1_3/admin/thumbnail.php
r57 r280 254 254 $vtp->closeSession( $sub, 'dir' ); 255 255 // recursive call 256 $dirs.= get_displayed_dirs( $dir.'/'.$sub_dir, 257 $indent+30 ); 258 256 get_displayed_dirs( $dir.'/'.$sub_dir, 257 $indent+30 ); 259 258 } 260 259 } -
branches/release-1_3/admin/user_list.php
r164 r280 110 110 $action = './admin.php?'.$_SERVER['QUERY_STRING']; 111 111 $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'] ); 113 114 $vtp->closeSession( $sub, 'add_user' ); 114 115 -
branches/release-1_3/admin/user_perm.php
r261 r280 60 60 } 61 61 //---------------------------------------------------------------- form display 62 $restrictions = get_ restrictions( $_GET['user_id'], $page['user_status'],62 $restrictions = get_user_restrictions( $_GET['user_id'], $page['user_status'], 63 63 false, false ); 64 64 $action = './admin.php?page=user_perm&user_id='.$_GET['user_id'];
Note: See TracChangeset
for help on using the changeset viewer.