« Return to Thread: IMPORTANT: updateapp functionality change
<cfset THIS.updateappKey = 'mpPassword' />
So for existing sites that have farcryConstructor.cfm
and apply the update
what is the line of code that needs to go in?
<cfset THIS.updateappKey = 'mpPassword'/>On Thu, Apr 10, 2008 at 5:01 AM, Matthew Bryant <mbryant@...> wrote:Hello bleeding edge community ;)An important change has gone into core. Details here: http://bugs.farcrycms.org/browse/FC-1229Essentially, if you update core, then you will only be able to updateapp=1 when you are logged in as an administrator. However, if you set a key (updateappKey) in your farcryConstructor you can use that key to updateapp without being an administrator.This is a significant change, in that1.If your application is broken2. AND requires an updateapp but you cant log in because your application is broke3. AND you dont know or havnt set an updateappKey in your constructor then you will be forced to recycle CF.The only other option at this stage is to add <cfset application.binit = false /> to the OnRequestStart() in your projects application.cfc if you are unable or unwilling to recycle CF (a shared server might be such a situation)MAKE SURE YOU REMOVE IT ONCE YOUR DONE OR YOUR APPLICATION WILL SEEM QUITE SLOW ;)<cffunction name="OnRequestStart" access="public" returntype="boolean" output="true" hint="Fires at first part of page processing.">
<!--- Define arguments. ---><cfargument name="TargetPage" type="string" required="true" />
<cfset var bReturn = "" />
<!--- THIS WILL ENSURE THE UPDATEAPP IS RUN ---><cfset application.binit = false /><!--- Call the main farcry Application.cfc ---><cfset bReturn = super.OnRequestStart(argumentCollection=arguments) />
<!--- Return out. ---><cfreturn bReturn /></cffunction>Anyones thoughts or suggestions are appreciated.Kind regards---- Matthew BryantProduct Development ManagerDaemon Internet ConsultantsAdobe Solutions Partnerp. 02 9380 4162f. 02 9380 4204
--
AJ Mercer
Web Log: http://webonix.net
« Return to Thread: IMPORTANT: updateapp functionality change
| Free Forum Powered by Nabble | Forum Help |