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: not a bug, but a question...  (Read 3726 times)

0 Members and 1 Guest are viewing this topic.

sigi

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 68
    • http://www.allygally.de
not a bug, but a question...
« on: December 08, 2003, 12:49:53 pm »

Hi

in the Blocks there is always a function truncate_string(x) ... this function is repeated in every block, with a slight differencer in the function name ...

why not use the function truncate_string() thats found in include/functions.inc.php ? and if you think that files rather big to include in a block, why not
a) put the function itself in a seperate file or
b) put it in include/load.inc-php thats used by every blockfile ?
Logged
Siegfried Schlosser

Berlin, Germany

had a big Coppermine gallery with more than 250.000 pics  at
www.allygally.de, but due to juristical problems that is closed now ....
Now trying Coppermine 1.4.x at http://walexis.pytalhost.de/

DJMaze

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 831
    • Dragonfly CMS
not a bug, but a question...
« Reply #1 on: December 08, 2003, 01:47:39 pm »

functions.inc is a require_once by blocks and coppermine module so that function is always used
Logged
There are 2 kinds of users in this world: satisfied and complainers.
Why do we never hear something from the satisfied users?
http://coppermine-gallery.net/forum/index.php?topic=24315.0

gtroll

  • VIP
  • Coppermine addict
  • ***
  • Offline Offline
  • Posts: 618
    • CPG-Nuke
not a bug, but a question...
« Reply #2 on: December 08, 2003, 08:04:22 pm »

and the old truncate_stringxxx that was in the blocks was removed and added to function.inc.php so if the function is in your blocks please use the newest version of block-CPG-*

sigi

  • Coppermine regular visitor
  • **
  • Offline Offline
  • Posts: 68
    • http://www.allygally.de
not a bug, but a question...
« Reply #3 on: December 08, 2003, 08:23:50 pm »

these funxctions are in the blockfiles of RC5 aka cpgnuke 1.21 ...
Logged
Siegfried Schlosser

Berlin, Germany

had a big Coppermine gallery with more than 250.000 pics  at
www.allygally.de, but due to juristical problems that is closed now ....
Now trying Coppermine 1.4.x at http://walexis.pytalhost.de/
Pages: [1]   Go Up
 

Page created in 0.02 seconds with 18 queries.