The file renaming function The file renaming function
 

News:

CPG Release 1.6.27
change DB IP storage fields to accommodate IPv6 addresses
remove use of E_STRICT (PHP 8.4 deprecated)
update README to reflect new website
align code with new .com CPG website
correct deprecation in captcha

Main Menu

The file renaming function

Started by mreider, May 22, 2006, 09:52:36 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

mreider

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!

Joachim Müller

edit include/functions.inc.php, find 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.