Hide file extension information cpg1.4 Hide file extension information cpg1.4
 

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]

Main Menu

Hide file extension information cpg1.4

Started by JohannM, March 21, 2007, 12:26:24 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

JohannM

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" ?