Advanced search  

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Pages: [1]   Go Down

Author Topic: File Extension  (Read 2723 times)

0 Members and 1 Guest are viewing this topic.

ojohn

  • Coppermine novice
  • *
  • Offline Offline
  • Posts: 44
File Extension
« on: November 07, 2003, 01:18:59 am »

For the filename can i just show the file name and not the File Extension?
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
File Extension
« Reply #1 on: November 07, 2003, 08:33:24 am »

edit displayimage.php and find
Code: [Select]
   $info[$lang_picinfo['Filename']] = htmlspecialchars($CURRENT_PIC_DATA['filename']);Use one PHP's string functions (your choice) to remove the extension (see http://de2.php.net/manual/en/ref.strings.php ).

GauGau
Logged
Pages: [1]   Go Up
 

Page created in 0.016 seconds with 14 queries.