The Blackbox Method for CF and PHP
login  
Current Path:   blackboxsystem.sourceforge.net/file_cf.php
    Information about the
    BlackBox Method
 > welcome
 > the method
 > CF blackbox file
 > PHP blackbox file
 > faq
    Contact Info
 > contact
 > join


Cold Fusion Blackbox Core File
Please visit www.cfblackbox.org for more information on Blackbox in CF.
Download the most recent CF Blackbox File: blackbox2.cfm
Download the original CF Blackbox File: blackbox.cfm



CFSETTING ENABLECFOUTPUTONLY="Yes" SHOWDEBUGOUTPUT="No"

    SPECIALIZED FILE FOR USE IN CUSTOM TAG FOLDER
    call it blackbox.cfm and your files will live in customtags/blackbox/module1_etc
    Revised 1/8/03 by Dan Chick, Byron Bignell.


CFPARAM NAME="attributes.TOOL" DEFAULT=""
CFPARAM NAME="attributes.action" DEFAULT=""

CFSCRIPT
    if (trim(attributes.action EQ "") AND Find(".", attributes.tool)){
       attributes.action = listdeleteat(attributes.tool, 1, ".");
       attributes.tool = listfirst(attributes.tool, ".");
    }

    diskpath = replacenocase(GetCurrentTemplatePath(), ".cfm", "\");
    dir = "#listfirst(listlast(GetCurrentTemplatePath(),"\"),".")#\";
    if (Find(".", ATTRIBUTES.action)){
       extension = "";
    }else{
       extension = ".cfm";
    }
/CFSCRIPT

CFSETTING ENABLECFOUTPUTONLY="No" SHOWDEBUGOUTPUT="No"

CFIF FileExists("#DiskPath##ATTRIBUTES.tool#/#ATTRIBUTES.ACTION##extension#")
    CF IF FileExists("#DiskPath##ATTRIBUTES.tool#/bbsettings.cfm")
      CF INCLUDE TEMPLATE="#dir##ATTRIBUTES.tool#\bbsettings.cfm"
    /CFIF>
    CFINCLUDE TEMPLATE="#dir##ATTRIBUTES.tool#\#ATTRIBUTES.ACTION##extension#"
CFELSE
    CFOUTPUT
       Couldn't find #diskpath##ATTRIBUTES.tool#/#ATTRIBUTES.ACTION##extension#
    /CFOUTPUT
/CFIF/*


Blackbox Method at Sourceforge:   Visit http://sourceforge.net/projects/blackboxsystem/
Time to generate page = 0.05814 seconds