Craig Jacks
The man and his music
johnshepp.org
The Dot Org Site. Tech talk, ebooks, and code offerings
Movie Land
My animation repository. Best viewed through a bottle of Bushmills.
SheppLog Web Design
My Web Design Consortium
Jackalope Forum
Where Jackalopes Meet
Recent Articles
Anthem Challenge - My Bid
Mea Culpa From Somewhere On The Hill
Crack Book Tales
Spinal Chord - Variety Telethon 1991
Burnin' Tires
Merry Melodies
America est mortuus
911 Spin
The Latest Bush Earpiece Malfunction
Jihadi Cake Recipe
Jihadi Chat Room
Photoshop Bungle of the Year Award 2006
Mel Gibson - The Fake Terror Setup
The North American Union
Sears Tower 666
Cowboy Diplomacy or Just a Lost Cowboy?
A legend is gone
Google Comments
DMLmusic.com is born
A Time For Solidarity
Support The Teachers' Fight
The new American Grafitti
9-11 "Celebration" was clearly Spin
9/11 Symbolism Only Karl Rove Could Dream Up
New Orleans Is Sinking
Recent CMS
Typo...Complicated But Worth It?
The Phoenix CMS
Recent Linux
Mail Server Hell!!
Cfdecrypt
Those of you that are open-source gurus know that proprietory software sometimes stops you cold. Not so much in terms of usage, but more in terms of making it work even better. Such is that case with encrypted coldfusion templates. Imagine you are getting untold errors because of some incorrect code in the application, which is common across platorms, especiallly Linux, when the author wrote the app. for Windows. You open up the file, only to find streams of dingbats. This means you have an excrypted template. Then I came across shroom's site where I found the following perl script. Here's the script, but you will need to find the binary or compile it from source.
#!/usr/bin/perl
require "cgi-lib.pl";
&ReadParse; open (FP, "> temp");
print FP $in{fn}; close (FP);
$MSG = `/usr/local/bin/cfdecrypt < temp`;
print qq {Content-type: text/html $MSG }
The next thing to do is save the script as cfdecryt.cgi or cfdecrypt.pl as a text file in ascii. Then you chmod the file so it is executable ie:
chmod 755 cfdecrypt.cgi
Then you have to edit your apache httpd.conf file to allow execution of the perl script by creating a script alias to the cgi-bin and allowing users access. This can be achieved a number of ways, but it is best to study the documentation to get a better feel for it. Here's a sample config for a virtual host:
<VirtualHost *:80>
ServerName foo.bar.tld
DocumentRoot "/var/www/html/foo"
ScriptAlias /cgi-bin/ "/var/www/html/cgi-bin/"
<Directory "/var/www/html/cgi-bin">
AddHandler cgi-script .cgi .pl
Options +Includes ExecCGI
Order allow,deny
Allow from all
</Directory>
</VirtualHost>
* * *