variables.version = "3.0";
variables.svnBuild = "150";
var configStruct = server.ADF.environment[request.site.id][getAppBeanName()];
configStruct.CE_FORM_ID = getPhotoFormID();
// Check if we have the UPLOAD_URL defined
if ( StructKeyExists(configStruct, "UPLOAD_URL") AND LEN(configStruct.UPLOAD_URL) ){
// Get the Upload URL and create the Upload Path
configStruct.UPLOAD_PATH = REPLACE(ExpandPath(configStruct.UPLOAD_URL),"\","/","all");
configStruct.UPLOAD_PATH_TEMP = configStruct.UPLOAD_PATH & "temp/";
configStruct.UPLOAD_URL_TEMP = configStruct.UPLOAD_URL & "temp/";
}
return configStruct;
application.ptPhotoGallery.version = variables.version;
application.ptPhotoGallery.svnBuild = variables.svnBuild;
// Load the app config data into the app scope variable
application.ptPhotoGallery.appConfig = getAppConfig();