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: The file renaming function  (Read 2315 times)

0 Members and 1 Guest are viewing this topic.

mreider

  • Coppermine newbie
  • Offline Offline
  • Posts: 16
The file renaming function
« on: May 22, 2006, 09:52:36 am »

I'd like to change the way files are renamed - what file holds that function? Basically i'd like files to be renamed based on their title, and instead of underscores, dashes be used, and retain the .jpg ending.

If someone could point me in the right direction of which file I need to edit, that'd be great!
Logged

Joachim Müller

  • Dev Team member
  • Coppermine addict
  • ****
  • Offline Offline
  • Gender: Male
  • Posts: 47843
  • aka "GauGau"
    • gaugau.de
Re: The file renaming function
« Reply #1 on: May 22, 2006, 10:12:20 am »

edit include/functions.inc.php, find
Code: [Select]
function replace_forbidden($str)and edit the function defintion accordingly if you know what you are doing. We don't recommend doing what you're up to. You might have to edit other places of the core code as well.
Logged
Pages: [1]   Go Up
 

Page created in 0.019 seconds with 19 queries.