Changeset 696 for trunk/admin
- Timestamp:
- Jan 16, 2005, 6:26:36 PM (20 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/waiting.php
r675 r696 27 27 if( !defined("PHPWG_ROOT_PATH") ) 28 28 { 29 29 die ("Hacking attempt!"); 30 30 } 31 31 include_once( PHPWG_ROOT_PATH.'admin/include/isadmin.inc.php'); … … 50 50 $query.= ';'; 51 51 pwg_query( $query ); 52 // linking logically the picture to its storage category53 $query = 'INSERT INTO';54 52 } 55 53 else … … 63 61 // deletion of the associated files 64 62 $dir = get_complete_dir( $row['storage_category_id'] ); 65 unlink( '.'.$dir.$row['file'] );66 if ( $row['tn_ext'] != '' )63 unlink( $dir.$row['file'] ); 64 if (isset($row['tn_ext']) and $row['tn_ext'] != '' ) 67 65 { 68 66 $thumbnail = $conf['prefix_thumbnail']; 69 67 $thumbnail.= get_filename_wo_extension( $row['file'] ); 70 68 $thumbnail.= '.'.$row['tn_ext']; 71 $url = PHPWG_ROOT_PATH.$dir.'thumbnail/'.$thumbnail;69 $url = $dir.'thumbnail/'.$thumbnail; 72 70 unlink( $url ); 73 71 }
Note: See TracChangeset
for help on using the changeset viewer.