This repository has been archived by the owner on Feb 8, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #118 from jmohler1970/ColdFusion-2016
ColdFusion 2016
- Loading branch information
Showing
105 changed files
with
3,200 additions
and
2,676 deletions.
There are no files selected for viewing
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<cfsetting showDebugOutput="No"> | ||
|
||
<cfoutput>The time is now #LSDateFormat(now())# @ #LSTimeFormat(Now(), 'h:mm:ss')#</cfoutput> |
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
component { | ||
|
||
|
||
|
||
numeric function getSessionCount() output="false" { | ||
local.oSession = createObject("java","coldfusion.runtime.SessionTracker"); | ||
return local.oSession.getSessionCount(); | ||
} | ||
|
||
|
||
numeric function getApplicationSessionCount(required string appName) output="false" { | ||
local.oSession = createObject("java","coldfusion.runtime.SessionTracker"); | ||
local.mySessions= local.oSession.getSessionCollection(arguments.appName); | ||
return StructCount(mySessions); | ||
} | ||
|
||
|
||
array function getRunningApplications() output="false" { | ||
|
||
var oApp = createObject("java","coldfusion.runtime.ApplicationScopeTracker"); | ||
var applications = oApp.getApplicationKeys(); | ||
var availApps = ArrayNew(1); | ||
|
||
while (applications.hasNext()) { | ||
availApps.append(applications.next()); | ||
} | ||
|
||
return availApps; | ||
} | ||
|
||
|
||
|
||
/* System functions. Use sparingly */ | ||
struct function getSiteInfo() output="false" { | ||
|
||
var oSystem = createObject('java','java.lang.System'); | ||
var jremodel = oSystem.getProperty("sun.arch.data.model"); | ||
var allProp = oSystem.getProperties(); | ||
|
||
|
||
|
||
var stResult = {CFVERSION = server.ColdFusion.ProductVersion, | ||
CFLEVEL = server.ColdFusion.ProductLevel, | ||
JREBIT = allProp["sun.arch.data.model"], | ||
JREVENDOR = allProp["java.vendor"], | ||
JRENAME = allProp["java.runtime.name"], | ||
JREVERSION = allProp["java.runtime.version"] }; | ||
|
||
return stResult; | ||
} | ||
|
||
|
||
|
||
} | ||
|
Oops, something went wrong.