Changeset 276 for branches/release-1_3/admin
- Timestamp:
- Jan 13, 2004, 12:41:53 AM (21 years ago)
- Location:
- branches/release-1_3/admin
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/release-1_3/admin/comments.php
r180 r276 165 165 $vtp->setGlobalVar( $sub, 'user_template', $user['template'] ); 166 166 //--------------------------------------------------- number of days to display 167 if ( isset( $_GET['last_days'] ) ) define( MAX_DAYS, $_GET['last_days'] );168 else define( MAX_DAYS, 0 );167 if ( isset( $_GET['last_days'] ) ) define( 'MAX_DAYS', $_GET['last_days'] ); 168 else define( 'MAX_DAYS', 0 ); 169 169 //----------------------------------------- non specific section initialization 170 170 $array_cat_directories = array(); -
branches/release-1_3/admin/include/functions.php
r270 r276 870 870 else 871 871 $query.= 'NULL'; 872 $quer ies .= ' WHERE id = '.$row['id'];872 $query .= ' WHERE id = $user_id'; 873 873 $query.= ';'; 874 874 mysql_query( $query ); -
branches/release-1_3/admin/update.php
r272 r276 25 25 26 26 $uppercats = ''; 27 27 $output = ''; 28 28 // 0. retrieving informations on the category to display 29 29 $cat_directory = '../galleries'; … … 293 293 // inserting the pictures found in the directory 294 294 foreach ( $pictures as $picture ) { 295 $name = ''; 296 $author = ''; 297 $comment = ''; 298 if (isset ($picture['name'])) $name = $picture['name']; 299 if (isset ($picture['author'])) $author = $picture['author']; 300 if (isset ($picture['comment'])) $comment = $picture['comment']; 301 295 302 $query = 'INSERT INTO '.PREFIX_TABLE.'images'; 296 303 $query.= ' (file,storage_category_id,date_available,tn_ext'; … … 301 308 $query.= ",'".$picture['date']."','".$picture['tn_ext']."'"; 302 309 $query.= ",'".$picture['filesize']."','".$picture['width']."'"; 303 $query.= ",'".$picture['height']."','".$picture['name']."'"; 304 $query.= ",'".$picture['author']."','".$picture['comment']."'"; 305 if ( $picture['date_creation'] != '' ) 310 $query.= ",'".$picture['height']."','$name', '$author', '$comment'"; 311 if ( isset ($picture['date_creation'])) 306 312 { 307 313 $query.= ",'".$picture['date_creation']."'"; … … 588 594 //-------------------------------------------- introduction : choices of update 589 595 // Display choice if "update" var is not specified 590 check_cat_id( $_GET['update'] ); 591 if ( !isset( $_GET['update'] ) 592 and !( isset( $page['cat'] ) 593 or $_GET['update'] == 'cats' 594 or $_GET['update'] == 'all' ) ) 596 if (!isset( $_GET['update'] )) 595 597 { 596 598 $vtp->addSession( $sub, 'introduction' ); … … 606 608 else 607 609 { 610 check_cat_id( $_GET['update'] ); 608 611 $start = get_moment(); 609 612 $count_new = 0;
Note: See TracChangeset
for help on using the changeset viewer.