Changeset 279
- Timestamp:
- Jan 15, 2004, 1:11:00 AM (20 years ago)
- Location:
- branches/release-1_3
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_3/admin/include/functions.php
r277 r279 432 432 { 433 433 // date arrives at this format : DD/MM/YYYY 434 list($day,$month,$year) = explode( '/', $date );434 @list($day,$month,$year) = explode( '/', $date ); 435 435 return @checkdate( $month, $day, $year ); 436 436 } -
branches/release-1_3/admin/picture_modify.php
r258 r279 86 86 // category, the category is updated in the database (without wondering 87 87 // if this picture was already the representative one) 88 if ( $_POST['representative-'.$row['category_id']] == 1)88 if ( isset($_POST['representative-'.$row['category_id']]) ) 89 89 { 90 90 $query = 'UPDATE '.PREFIX_TABLE.'categories'; … … 145 145 while ( $row = mysql_fetch_array( $result ) ) 146 146 { 147 if ( $_POST['dissociate-'.$row['category_id']] == 1)147 if ( isset($_POST['dissociate-'.$row['category_id']]) ) 148 148 { 149 149 $query = 'DELETE FROM '.PREFIX_TABLE.'image_category'; -
branches/release-1_3/category.php
r276 r279 463 463 get_cat_display_name( $page['cat_name'], ' - ', 464 464 'font-style:italic;' ) ); 465 } 466 else 467 { 468 $vtp->setVar( $handle, 'cat_infos.cat_name', $page['title'] ); 469 } 470 // upload a picture in the category 471 if ( $page['cat_site_id'] == 1 465 // upload a picture in the category 466 if ( $page['cat_site_id'] == 1 472 467 and $conf['upload_available'] 473 468 and $page['cat_uploadable'] ) 474 { 475 $vtp->addSession( $handle, 'upload' ); 476 $url = './upload.php?cat='.$page['cat'].'&expand='.$page['expand']; 477 $vtp->setVar( $handle, 'upload.url', add_session_id( $url ) ); 478 $vtp->closeSession( $handle, 'upload' ); 479 } 469 { 470 $vtp->addSession( $handle, 'upload' ); 471 $url = './upload.php?cat='.$page['cat'].'&expand='.$page['expand']; 472 $vtp->setVar( $handle, 'upload.url', add_session_id( $url ) ); 473 $vtp->closeSession( $handle, 'upload' ); 474 } 475 } 476 else 477 { 478 $vtp->setVar( $handle, 'cat_infos.cat_name', $page['title'] ); 479 } 480 480 481 $vtp->closeSession( $handle, 'cat_infos' ); 481 482 } -
branches/release-1_3/picture.php
r251 r279 235 235 $row = mysql_fetch_array( $result ); 236 236 237 if ( $array_cat_directories[$row['storage_category_id']] == '')237 if ( !isset($array_cat_directories[$row['storage_category_id']]) ) 238 238 { 239 239 $array_cat_directories[$row['storage_category_id']] = … … 282 282 } 283 283 284 if ( $array_cat_directories[$page['storage_category_id']] == '')284 if ( !isset($array_cat_directories[$page['storage_category_id']]) ) 285 285 { 286 286 $array_cat_directories[$page['storage_category_id']] = … … 290 290 291 291 $n = $page['num'] + 1; 292 $intitule_titre = replace_space( $intitule_cat." - " ).$n.'/' .292 $intitule_titre = replace_space( $intitule_cat." - " ).$n.'/'; 293 293 $intitule_titre.= $page['cat_nb_images']."<br />"; 294 294 if ( $page['name'] != "" ) … … 723 723 { 724 724 $vtp->addSession( $handle, 'author_known' ); 725 $vtp->setVar( $handle, 'author_known.value', $user['pseudo'] ); 725 if (isset($user['pseudo'])) 726 $vtp->setVar( $handle, 'author_known.value', $user['pseudo'] ); 726 727 $vtp->closeSession( $handle, 'author_known' ); 727 728 } -
branches/release-1_3/profile.php
r276 r279 116 116 } 117 117 // redirection 118 $url = 'category.php?cat='.$page['cat'].'&expand='.$_GET['expand']; 119 if ( $page['cat'] == 'search' ) 120 { 121 $url.= '&search='.$_GET['search'].'&mode='.$_GET['mode']; 122 } 118 $url = 'category.php'; 123 119 if ( $_POST['create_cookie'] != 1 ) $url = add_session_id( $url, true ); 124 120 header( 'Request-URI: '.$url ); … … 136 132 templatize_array( $tpl, 'lang', $handle ); 137 133 //----------------------------------------------------------------- form action 138 $url = './profile.php?cat='.$page['cat'].'&expand='.$page['expand']; 139 if ( $page['cat'] == 'search' ) 140 { 141 $url.= '&search='.$_GET['search'].'&mode='.$_GET['mode']; 142 } 134 $url = './profile.php'; 143 135 $vtp->setGlobalVar( $handle, 'form_action', add_session_id( $url ) ); 144 136 //-------------------------------------------------------------- errors display
Note: See TracChangeset
for help on using the changeset viewer.