Changeset 84
- Timestamp:
- Sep 9, 2003, 8:36:25 PM (21 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r78 r84 37 37 //-------------------------------------------------------------- initialization 38 38 initialize_category( 'picture' ); 39 $cat_directory = $page['cat_dir']; // by default40 39 //------------------------------------- main picture information initialization 41 40 $query = 'SELECT id,date_available,comment,hit,keywords'; … … 53 52 $query.= ';'; 54 53 $result = mysql_query( $query ); 54 // if this image_id doesn't correspond to this category, an error message is 55 // displayed, and execution is stopped 56 if ( mysql_num_rows( $result ) == 0 ) 57 { 58 echo '<div style="text-align:center;">'.$lang['access_forbiden'].'<br />'; 59 echo '<a href="'.add_session_id( './category.php' ).'">'; 60 echo $lang['thumbnails'].'</a></div>'; 61 exit(); 62 } 55 63 $row = mysql_fetch_array( $result ); 56 64 $page['id'] = $row['id'];
Note: See TracChangeset
for help on using the changeset viewer.