Ken wrote:
Hi. I trying create a function in this format:
IsBlockedTime(startdayofweek,starthour, startminute, enddayofweek,
endhour,endminute)
This will compare the current date and time to the parameters passed
through the function, and return a boolean.
Basically, I am trying to stop my users from accessing certain pages
between Friday 10 am to Monday 8 am. I want to create a function so
that in future I can change those start and end timings. A CFC can do
it. Any ideas?
- Ken
Hi Ken,
Go to my blog (http://blog.maestropublishing.com/)and download my
MaintenancePlugin.cfc for Mach-II. It's a Mach-II plugin, but it has
all the code you need and even uses startDay, startTime, etc.
Rework as you like.
Best,
.Peter
--
Peter J. Farrell :: Maestro Publishing
http://blog.maestropublishing.com
Rooibos Generator - Version 2.1
Create boilerplate beans and transfer objects for ColdFusion for free!
http://rooibos.maestropublishing.com/
Member Team Mach-II - It's coming...we're in a code freeze!
----------------------------------------------------------
You are subscribed to cfcdev. To unsubscribe, send an email to
cfcdev@cfczone.org with the words 'unsubscribe cfcdev' as the subject of the
email.
CFCDev is run by CFCZone (www.cfczone.org) and supported by CFXHosting
(www.cfxhosting.com).
CFCDev is supported by New Atlanta, makers of BlueDragon
http://www.newatlanta.com/products/bluedragon/index.cfm
An archive of the CFCDev list is available at
www.mail-archive.com/cfcdev@cfczone.org