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: Hide file extension information cpg1.4  (Read 1991 times)

0 Members and 1 Guest are viewing this topic.

JohannM

  • Coppermine frequent poster
  • ***
  • Offline Offline
  • Posts: 252
Hide file extension information cpg1.4
« on: March 21, 2007, 12:26:24 am »

Hi

I need to hide the file extention (.jpg) in thumbnails.php and displayimage.php.

I tried everything, nothing works.

But also something for the future ...

I found this function on the web:

function strip_ext($name)
     {
          $ext = strrchr($name, '.');
          if($ext !== false)
          {
              $name = substr($name, 0, -strlen($ext));
          }
          return $name;
      }

Could it be implemented somewhere in admin to enable/disable "hide file extentions" ?

Logged
Pages: [1]   Go Up
 

Page created in 0.022 seconds with 20 queries.