« Return to Thread: IMPORTANT: updateapp functionality change

Re: IMPORTANT: updateapp functionality change

by Mat Bryant :: Rate this Message:

Reply to Author | View in Thread

thats correct, except make sure you have a [space] before that closing /> or it wont work in blue dragon ;)

<cfset THIS.updateappKey = 'mpPassword' />

Kind regards

-- 
-- Matthew Bryant
Product Development Manager
Daemon Internet Consultants
Adobe Solutions Partner
p. 02 9380 4162
f. 02 9380 4204




On 10/04/2008, at 11:49 AM, AJ Mercer wrote:
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-1229

Essentially, 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 that 
1.If your application is broken 
2. AND requires an updateapp but you cant log in because your application is broke 
3. 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 Bryant
Product Development Manager
Daemon Internet Consultants
Adobe Solutions Partner
p. 02 9380 4162
f. 02 9380 4204









--

AJ Mercer
Web Log: http://webonix.net




--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "farcry-beta" group.
To post to this group, send email to farcry-beta@...
To unsubscribe from this group, send email to farcry-beta-unsubscribe@...
For more options, visit this group at http://groups.google.com/group/farcry-beta?hl=en
-~----------~----~----~----~------~----~------~--~---

 « Return to Thread: IMPORTANT: updateapp functionality change