Guest User

To CF8

a guest
Sep 15th, 2014
293
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <!---
  2. <cfscript>
  3.  
  4. component
  5.     output = "false"
  6.     hint = "I define the application settings and event handlers."
  7.     {
  8.  
  9.     // Define the application settings.
  10.     this.name = hash( getCurrentTemplatePath() );
  11.     this.applicationTimeout = createTimeSpan( 0, 0, 10, 0 );
  12.     this.sessionManagement = false;
  13.  
  14.     // I initialize the application.
  15.     function onApplicationStart(){
  16.  
  17.         // Get the root directory of the demo.
  18.         var rootDirectory = getDirectoryFromPath( getCurrentTemplatePath() );
  19.  
  20.         // Set up the uploads directory.
  21.         application.uploadsDirectory = (rootDirectory & "uploads/Cory/");
  22.  
  23.         // Return true so the application can load.
  24.         return( true );
  25.  
  26.     }
  27.  
  28.     // I initialize the request.
  29.     function onRequestStart(){
  30.  
  31.         // Check to see if we need to manually reset the application.
  32.         if (structKeyExists( url, "init" )){
  33.             this.onApplicationStart();
  34.         }
  35.         // Return true so the page can load.
  36.         return( true );
  37.     }
  38. }
  39.  
  40. </cfscript>
  41. --->
  42.  
  43. <cfcomponent output="false" accessors="true" displayname="Tag Based CFC" name="test">
  44.     <cfscript>
  45.    
  46.     // I initialize the application.
  47.     function onApplicationStart(){
  48.  
  49.         // Get the root directory of the demo.
  50.         var rootDirectory = getDirectoryFromPath( getCurrentTemplatePath() );
  51.  
  52.         // Set up the uploads directory.
  53.         application.uploadsDirectory = (rootDirectory & "uploads/Cory/");
  54.  
  55.         // Return true so the application can load.
  56.         return( true );
  57.  
  58.     }
  59.  
  60.     // I initialize the request.
  61.     function onRequestStart(){
  62.  
  63.         // Check to see if we need to manually reset the application.
  64.         if (structKeyExists( url, "init" )){
  65.             this.onApplicationStart();
  66.         }
  67.         // Return true so the page can load.
  68.         return( true );
  69.     }
  70.    
  71.     </cfscript>
  72.    
  73. </cfcomponent>
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×