In the UI it would simply be the option to give the .htm files a different extension. I would envision it being on the same page where you specify the gallery location.
Maybe right below it, a checkbox (that is normally checked by default) for use the default .htm extension. When unchecked, a box to allow a different extension to be entered. (such as .php or .cfm, etc.)
The construction of the gallery would not need to be different except the imbedded links to the various pages would be xxxxxxx.cfm instead of xxxxxxxx.htm
--------------
Servers running ColdFusion or PHP will 'pre-process' the pages with the .cfm or .php extension, replacing 'cfm or php' code with dynamic information from databases, server maintained session variables, login information, IP validation, current directory determination, and so on before sending out through the webserver..
It gives those of us using more than a basic webserver the ability to add security, track users through the gallery, have custom html based on permissions, current directory, login and membership level. The possibilities could be endless.
The integrity of you application would not be compromised as it would be no different than the custom HTML available now except it would be dynamically changed based on what was entered.
Example: User Authentication Model
1. A page could be created where the user logs on and static session variables are created on the server eg: session.userlogged in.
2. In the custom HTML header the following code would redirect the user if not logged in.
<cfif #session,.UserLoggedIn# EQ "0"> ### Check if user is logged in ###
<cflocation url="/gallery.login.cfm"> ### Redirect them to login page if not ###
</cfif>
3. Additional code could check for the existence or /original/ in the CGI.ScriptName variable and require a login to access the original photos. Instead of selling a photo at a time, I could sell subscriptions to the entire gallery.
I will try to build a small gallery, make the changes by hand to give you a sense of what would be possible...
Thanks for the interest...
Les ---