Changeset 280
- Timestamp:
- Jan 15, 2004, 6:06:45 PM (20 years ago)
- Location:
- branches/release-1_3
- Files:
-
- 8 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']; -
branches/release-1_3/include/functions_category.inc.php
r276 r280 407 407 { 408 408 pwg_debug( 'start initialize_category' ); 409 global $page,$lang,$user,$conf ;409 global $page,$lang,$user,$conf, $where_append; 410 410 411 411 if ( isset( $page['cat'] ) ) … … 538 538 $conf['order_by'] = ' ORDER BY hit DESC, file ASC'; 539 539 $page['cat_nb_images'] = $conf['top_number']; 540 if ( $page['start'] + $user['nb_image_page'] >= $conf['top_number'])540 if ( isset($page['start']) && ($page['start']+ $user['nb_image_page'] >= $conf['top_number'] )) 541 541 { 542 542 $page['nb_image_page'] = $conf['top_number'] - $page['start']; … … 544 544 } 545 545 546 if ( $query != '')546 if ( isset($query)) 547 547 { 548 548 $result = mysql_query( $query ); -
branches/release-1_3/picture.php
r279 r280 72 72 $page['width'] = $row['width']; 73 73 $page['height'] = $row['height']; 74 $page['category_id'] = $row['category_id']; 74 if (is_numeric( $page['cat'] )) 75 $page['category_id'] = $row['category_id']; 75 76 $page['keywords'] = $row['keywords']; 76 77 $page['storage_category_id'] = $row['storage_category_id']; … … 493 494 $row = mysql_fetch_array( $result ); 494 495 495 if ( $array_cat_directories[$row['storage_category_id']] == '')496 if ( !isset($array_cat_directories[$row['storage_category_id']])) 496 497 { 497 498 $array_cat_directories[$row['storage_category_id']] = -
branches/release-1_3/register.php
r105 r280 71 71 $vtp->addSession( $handle, 'text' ); 72 72 $vtp->setVar( $handle, 'text.name', 'login' ); 73 $vtp->setVar( $handle, 'text.value', $_POST['login'] ); 73 if (isset( $_POST['login'])) 74 $vtp->setVar( $handle, 'text.value', $_POST['login'] ); 74 75 $vtp->closeSession( $handle, 'text' ); 75 76 $vtp->closeSession( $handle, 'line' ); … … 95 96 $vtp->addSession( $handle, 'text' ); 96 97 $vtp->setVar( $handle, 'text.name', 'mail_address' ); 97 $vtp->setVar( $handle, 'text.value', $_POST['mail_address'] ); 98 if (isset( $_POST['mail_address'])) 99 $vtp->setVar( $handle, 'text.value', $_POST['mail_address'] ); 98 100 $vtp->closeSession( $handle, 'text' ); 99 101 $vtp->closeSession( $handle, 'line' ); -
branches/release-1_3/template/default/htmlfunctions.inc.php
r276 r280 178 178 $vtp->addSession( $handle, 'category' ); 179 179 $vtp->setVar( $handle, 'category.indent', $indent ); 180 181 180 if ( $user['expand'] or $category['nb_sub_categories'] == 0 ) 182 181 { … … 194 193 $url .='?cat='.$page['cat']; 195 194 $url.= '&expand='.$category['expand_string']; 196 if ( $page['cat'] == 'search' ) 197 { 198 $url.= '&search='.$_GET['search'].'&mode='.$_GET['mode']; 199 } 195 } 196 else if ($category['expand_string']<>'') 197 { 198 $url.= '?expand='.$category['expand_string']; 200 199 } 201 200 $vtp->setVar( $handle, 'bullet_w_link.bullet_link', add_session_id($url) );
Note: See TracChangeset
for help on using the changeset viewer.