This little amendment to the footer of the home page will hopefully be enough
to help me rest comfortably over the weekend...
<cffile
action = "read"
file = "network path\application.cfm"
variable = "strApplicationTest">
<cfif left(strApplicationTest,14) EQ "<cfapplication">
<!---Success! The application file has not been hacked--->
<cfelse>
<!---Oops! They have done it again--->
<cffile
action = "copy"
destination = "network path\wwwroot\application.cfm"
source = "network path\wwwroot\application.bak">
</cfif>
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Order the Adobe Coldfusion Anthology now!
http://www.amazon.com/Adobe-Coldfusion-Anthology/dp/1430272155/?tag=houseoffusion
Archive:
http://www.houseoffusion.com/groups/cf-talk/message.cfm/messageid:354401
Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm
Unsubscribe: http://www.houseoffusion.com/groups/cf-talk/unsubscribe.cfm