Forums

This topic is locked

Making a trial?

Posted 16 Apr 2003 20:44:21
1
has voted
16 Apr 2003 20:44:21 Rod Med posted:
I have an application I have made in Dreamweaver. The code is all coldfusion. I am wondering if there is anyway you can make a coldfusion application have an expiration time or date on it, so it would basically be a full working trial of it. This way I don't get burned on it before I am payed....<img src=../images/dmxzone/forum/icon_smile_8ball.gif border=0 align=middle>

Replies

Replied 24 Apr 2003 16:42:58
24 Apr 2003 16:42:58 Dennis van Galen replied:
This only works if your pages are encrypted, IE code in your pages shows up like:

Allaire Cold Fusion Template
Header Size: New VersionpæÏÀö&#8216;Srá×û«¸ hqؤä8X°É¿Ìò©&#8240;P^qv ßNÊÒ&#8225;ùFÍû'ÉÊ{´d9¢=Oè»3«hcõí&#402;&#352;C(aû=ÒÂ&#8220;&#353;üù&gt;eÐ×åRÚÇ&#8220;&#8216;vMQ&#8364;Ðº&#8216;ª
&#402;³²/¥È&#8226;&#8211;({&#8482;&#402;$sw­Ù=¤¯é&#339;V&GX&#8224;«U±&#8240;U+&#352;¥

What you can do is stick the start trial date into application scope and have application.cfm check if this date is 30 days in the past, like:

<pre id=code><font face=courier size=2 id=code>
&lt;cfif DATEDIFF(day, application.trialdate, getDate()) GTE 30&gt;
&lt;cfoutput&gt;Your trial has expired.&lt;/cfoutput&gt;
&lt;cfabort&gt;
&lt;/cfif&gt;
</font id=code></pre id=code>
something like that would kill your application after the 30 days have past, you could have the application set the date the first time it is run so that you don't have to manually enter each trialdate to the application pages.

Hope that helps you on your way (if you hadn't allready solved this).

with kind regards,

Dennis van Galen
DMXzone Manager
FAQ, Tutorial and Extension Manager


Studio MX / CFMX PRO / SQL 2000 / NT4 AND win2kPRO / IIS5
Replied 25 Apr 2003 06:10:49
25 Apr 2003 06:10:49 Rod Med replied:
Thanks a ton that seems like an easy way to do it. You say it only works if my pages are encrypted. I would very much like to encrypt them, but so far I have yet to see where you do this in Dreamweaver. Any further input would be greatly appreciated.

Iz
Replied 25 Apr 2003 09:03:07
25 Apr 2003 09:03:07 Dennis van Galen replied:
You can use the cfencode utility, located in the cf_root/bin directory.

The encryption is to keep people from removing the 30 day check.

with kind regards,

Dennis van Galen
DMXzone Manager
FAQ, Tutorial and Extension Manager


Studio MX / CFMX PRO / SQL 2000 / NT4 AND win2kPRO / IIS5

Reply to this topic