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
<YourSettings> | |
<Setting name="TransferSettings.datasourcePath" value="/config/datasource.xml.cfm" /> | |
<Setting name="TransferSettings.configPath" value="/config/transfer.xml.cfm" /> | |
<Setting name="TransferSettings.definitionPath" value="/config/definitions" /> | |
</YourSettings> |
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
<datasource xmlns:xsi="xsd/datasource.xsd"> | |
<name>YOURDSN</name> | |
<username></username> | |
<password></password> | |
</datasource> |
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
BEGIN | |
/* | |
PARAMETERS EXPECTED | |
- IN p_db VARCHAR | |
- IN p_from VARCHAR | |
- IN p_to VARCHAR | |
*/ | |
DECLARE l_end INT DEFAULT 0; |
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
# ignore following directories | |
RewriteRule ^(assets|views|controllers|layouts|services)(/.*)?$ - [NC,L] | |
# attempt redirect of the short url | |
RewriteCond %{REQUEST_URI} !(.*)/$ | |
RewriteCond %{REQUEST_URI} !index.cfm | |
RewriteRule ^(.*)$ index.cfm?go=main.redirect&s=$1 [L] |
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.default = structNew(); | |
this.default.url = '__APPLICATION-URL__'; | |
this.default.dbhost = '__COUCHDB-HOST__'; | |
this.default.port = '__COUCHDB-PORT__'; | |
this.default.dsn = '__MYSQL-DSN__'; | |
this.default.dbtype = '__DBTYPE__'; | |
this.default.db = '__COUCHDB-DATABASE__'; |
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
<cfdirectory action="list" directory="#expandPath('/imgs')#" name="imgs" filter="*.jpg" /> | |
<cfoutput query="imgs"> | |
<cfimage source="#directory#/#name#" name="img" /> | |
<cfset ImageGrayscale(img) /> | |
<cfset imageScaleTofit(img,200,'') /> | |
<cfimage source="#img#" action="write" destination="#expandPath('/finalimages/')##listFirst(name,'_')#.jpg" overwrite="no" /> | |
<cfflush> | |
#name# done <br/> | |
</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
<cfdirectory action="list" directory="#expandPath('/temp')#" name="pdfs" filter="*.pdf" /> | |
<cfoutput query="pdfs"> | |
<cftry> | |
<cfpdf action="extractimage" | |
source="#directory#/#name#" | |
destination="#expandpath('/imgs')#" | |
format="jpg" | |
imageprefix="#listFirst(name,'.')#_" | |
pages="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
<cfsetting requestTimeOut="100000" /> | |
<cfoutput query="pdfsToDownload"> | |
<cfftp action="getFile" | |
server="__server__" | |
username="__username__" | |
password="__password__" | |
localfile="#expandPath('\temp\')##listLast(file,'/')#" | |
remoteFile="__remotefile__" /> | |
</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
<cffunction name="dspObjects" access="public" output="false" returntype="string"> | |
<cfargument name="columnID" required="yes" type="numeric" default="1"> | |
<cfargument name="ContentHistID" required="yes" type="string" default="#event.getValue('contentBean').getcontenthistid()#"> | |
<cfset var rsObjects=""> | |
<!--- get the string from super ---> | |
<cfset var theRegion=trim(super.dspObjects(arguments.columnID,arguments.ContentHistID)) /> | |
<!--- using the returned string look for any form to pre-polulate ---> | |
<cfset bodystr = theRegion /> | |
<cfset bodystrRes = refindnocase(">form.*?(name)*<",bodystr,1,true) /> |
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
<form name="testForm" action="" method="post"> | |
<label>Favourite language: </label><input type="text" name="technology" id="technology" /> | |
</form> |