Home | Blog | Twitter @AndyJ | Contact Me | Snippets/Downloads | RSS

Removing getProfileString from Galleon

I'm working on a small personal project at the moment and didnt want to pay out on hosting which i've just realised has been a bad idea! Why? because I cannot use get & set profileString. Now this isn't usually a problem as I never use them but Galleon does to read the ini file. Luckily the solution has been easy to resolve. In the galleon.cfc I edited the getSetting() method and for now hard coded in the struct. My method now looks like:
   view plainprintabout
 <cffunction name="getSettings" access="public" returnType="struct" output="false"
             hint="Returns application settings as a structure.">

 
     <cfset var r = structNew()>
     
     <cfscript>
         r['dsn'] = "myDSN";
         r['perpage'] = "20";
         r['fromAddress'] = "admin@myDomain.net";
10          r['rootURL'] = "http://myDomain.net/forums/";
11  
        r['sendonpost'] = "
admin@myDomain.net";
12          r['dbtype'] = "
mysql";
13          r['tableprefix'] = "
galleon_";
14          r['version'] = "
1.7.006";
15          r['requireconfirmation'] = "
true";
16          r['title'] = "
LAYL Forums";
17          r['fullemails'] = "
true";
18          r['encryptpasswords'] = "
false";
19          r['allowgravatars'] = "
true";
20          r['safeExtensions'] = "
zip,tar,jpg,gif,png,wpd,doc,pdf,xls,ppt,txt,odt";
21      </cfscript>
22  
23      
24      <cfreturn r>
25      
26  </cffunction>

Hopefully in the future I'll change Rays ini file for an XML one and refactor getSettings()

TweetBacks
Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
BlogCFC / created by Raymond Camden / running version 5.9.5.003 / Contact AndyJarrett.com / Pet Rescue SOS www.redgiraffes.co.uk