From: Ashley M. K. <as...@pc...> - 2003-06-02 00:26:18
|
Jeff Macdonald wrote: >One thing that puzzles me is the following code that checks the album >paths: > $newalbumname =~ s/^[\.]+|\///g; # hax0r protection... > >The end result is that ANY / is removed from the album name! That just >doesn't seem right. > > Why not? You can't have an album name that has /'s in it anyway, so may as well remove all of them. >My current code adds a link to an album page that says 'Remove this >album'. It then will remove all the files and the album and then display >that album's parent. > > How easy is it to incorporate album hiding with this code as well? The more we can re-use code, the better. -- H| I haven't lost my mind; it's backed up on tape somewhere. +-------------------------------------------------------------------- Ashley M. Kirchner <mailto:as...@pc...> . 303.442.6410 x130 IT Director / SysAdmin / WebSmith . 800.441.3873 x130 Photo Craft Laboratories, Inc. . 3550 Arapahoe Ave. #6 http://www.pcraft.com ..... . . . Boulder, CO 80303, U.S.A. |