Changeset 850 in ExiteCMS for trunk/forum/viewthread.php
- Timestamp:
- 09/28/07 22:07:51 (5 years ago)
- File:
-
- 1 edited
-
trunk/forum/viewthread.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/forum/viewthread.php
r843 r850 248 248 // check what options to show for this post 249 249 $data['user_can_edit'] = iMEMBER && $data['post_author'] != 0 && (iMOD || iSUPERADMIN || (!$tdata['thread_locked'] && $userdata['user_id'] == $data['post_author'])); 250 $data['show_ip'] = (iMOD || iSUPERADMIN && ($data['post_ip'] != "0.0.0.0" && file_exists(PATH_THEME." forum/ip.gif")));250 $data['show_ip'] = (iMOD || iSUPERADMIN && ($data['post_ip'] != "0.0.0.0" && file_exists(PATH_THEME."images/ip.gif"))); 251 251 252 252 // country flag … … 324 324 $adata['size'] = parsebytesize(filesize($file),0); 325 325 if (in_array($adata['attach_ext'], $imagetypes)) { 326 // check if it really is an image 327 $imageinfo = @getimagesize($ attachrealfile);326 // check if it really is an image\ 327 $imageinfo = @getimagesize($file); 328 328 if (is_array($imageinfo)) { 329 329 $adata['is_image'] = true;
Note: See TracChangeset
for help on using the changeset viewer.
