home *** CD-ROM | disk | FTP | other *** search
/ Chip 2002 February / CHIPCD_02_2002.iso / Internet / Macromedia ColdFusion Server 5 / coldfusion-50-win-us.exe / data1.cab / Examples / CFDOCS / exampleapps / docs / Application.cfm next >
Encoding:
Text File  |  2001-06-13  |  983 b   |  37 lines

  1. <!--- If not localhost, abort to message window --->
  2.  
  3. <CFParam Name = "CGI.REMOTE_ADDR" default="">
  4.  
  5. <CFIF CGI.REMOTE_ADDR is '' OR NOT (CGI.REMOTE_ADDR IS 'localhost' OR CGI.REMOTE_ADDR IS '127.0.0.1')>
  6.  
  7.     <CFINCLUDE template="/cfdocs/sorry.htm">
  8.  
  9.     <CFABORT>
  10.  
  11. </CFIF>
  12.  
  13.  
  14.  
  15. <!--- Hard coded UUIDs refer for docs --->
  16. <CFSET DOC1 = "BA1EA6CC-7D79-11D3-A928005004218998">
  17. <CFSET DOC2 = "BA1EA6CD-7D79-11D3-A928005004218998">
  18. <CFSET DOC3 = "BA1EA6CE-7D79-11D3-A928005004218998">
  19. <CFSET DOC4 = "BA1EA6CF-7D79-11D3-A928005004218998">
  20. <CFSET DOC5 = "BA1EA6D0-7D79-11D3-A928005004218998">
  21. <CFSET DOC6 = "BA1EA6D1-7D79-11D3-A928005004218998">
  22. <CFSET DOC7 = "BA1EA6D2-7D79-11D3-A928005004218998">
  23. <CFSET DOC8 = "BA1EA6D3-7D79-11D3-A928005004218998">
  24.  
  25. <CFIF IsDefined("URL.DocID") AND Len(URL.DocID) LT 3 AND Val(URL.DocID)>
  26.     <CFTRY>
  27.         <CFSET URL.DocID = Evaluate("DOC#URL.DocID#")>
  28.         <CFCATCH>
  29.             <CFSET URL.DocID = DOC1>
  30.         </CFCATCH>
  31.     </CFTRY>
  32.  
  33. </CFIF>
  34.  
  35.  
  36.     
  37.