This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
data = Hash.new { |hash, key| hash[key] = [] } | |
data[:description] = "Test" | |
data[:expression] = "catch_all()" | |
data[:action] << "stop()" | |
data[:action] << "store()" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Find -- :([a-z\_]*) => | |
Replace -- $1: |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# JRun Settings | |
LoadModule jrun_module /Applications/ColdFusion9/runtime/lib/wsconfig/1/mod_jrun22.so | |
<IfModule mod_jrun22.c> | |
JRunConfig Verbose false | |
JRunConfig Apialloc false | |
JRunConfig Ignoresuffixmap false | |
JRunConfig Serverstore /Applications/ColdFusion9/runtime/lib/wsconfig/1/jrunserver.store | |
JRunConfig Bootstrap 127.0.0.1:51800 | |
#JRunConfig Errorurl url <optionally redirect to this URL on errors> | |
#JRunConfig ProxyRetryInterval 600 <number of seconds to wait before trying to reconnect to unreachable clustered server> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cffunction name="$getPathFromRequest" returntype="string" access="public" output="false"> | |
<cfargument name="pathInfo" type="string" required="true"> | |
<cfargument name="scriptName" type="string" required="true"> | |
<cfscript> | |
var returnValue = ""; | |
// ensure that the $pathinfo var is picked up from the URL struct when using URLRewriting via Tomcat/URLRewriteFilter | |
if (StructKeyExists(url, "$pathinfo")) | |
arguments.pathInfo = url.$pathinfo; | |
// we want the path without the leading "/" so this is why we do some checking here | |
if (arguments.pathInfo == arguments.scriptName || arguments.pathInfo == "/" || arguments.pathInfo == "") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cffunction name="$getPathFromRequest" returntype="string" access="public" output="false"> | |
<cfargument name="pathInfo" type="string" required="true"> | |
<cfargument name="scriptName" type="string" required="true"> | |
<cfscript> | |
var returnValue = ""; | |
// we want the path without the leading "/" so this is why we do some checking here | |
if (arguments.pathInfo == arguments.scriptName || arguments.pathInfo == "/" || arguments.pathInfo == "") | |
returnValue = ""; | |
else | |
returnValue = Right(arguments.pathInfo, Len(arguments.pathInfo)-1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<!DOCTYPE urlrewrite PUBLIC "-//tuckey.org//DTD UrlRewrite 2.6//EN" "http://tuckey.org/res/dtds/urlrewrite2.6.dtd"> | |
<urlrewrite> | |
<rule match-type="regex"> | |
<!-- folder conditions --> | |
<condition type="request-uri" operator="notequal" next="and">/flex2gateway/*</condition> | |
<condition type="request-uri" operator="notequal" next="and">/jrunscripts/*</condition> | |
<condition type="request-uri" operator="notequal" next="and">/cfide/*</condition> | |
<condition type="request-uri" operator="notequal" next="and">/files/*</condition> | |
<condition type="request-uri" operator="notequal" next="and">/flash/*</condition> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<filter> | |
<filter-name>UrlRewriteFilter</filter-name> | |
<filter-class>org.tuckey.web.filters.urlrewrite.UrlRewriteFilter</filter-class> | |
</filter> | |
<filter-mapping> | |
<filter-name>UrlRewriteFilter</filter-name> | |
<url-pattern>/*</url-pattern> | |
</filter-mapping> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// the CFC I use to grab the data | |
component displayname="MemberActivity" hint="I generate reports on Member Activity"{ | |
public MemberActivity function init(){ | |
return this; | |
} | |
public query function getMemberLogonActivity(){ | |
var result = ""; | |
var q_service = new query(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfcomponent extends="Controller" output="false"> | |
<cfscript> | |
function init(){ | |
// Let CFWheels know what type of output this controller can 'provide' | |
provides("html,xml,json,csv"); | |
} | |
// I've removed all non-related methods for this sample | |
function export(){ | |
if( !structKeyExists(params,"selection") ){ | |
mailinglist = model("MailingList").findAll(where="exported=0",select="id,emailAddress"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<cfscript> | |
if(lcase(trim(cgi.request_method)) == 'post'){ | |
sendChatRequestMessage(); | |
} | |
</cfscript> | |
<cfoutput> | |
<html> | |
<head> | |
<title>Client-Specific Announcements</title> | |
</head> |
NewerOlder