Location: PHPKode > scripts > FuseBox Manager > fusebox-manager/src/plugins/Globals.php
<?php
/*
<!-- FB40 plugin: Globals.cfm -->
<!-- copyright: (c) 2003, by John Quarto-vonTivadar. You are free to use this FB40 plugin and to modify it as long as you leave this copyright notice intact. -->
<!-- use: during Phase "preProcess" -->
<!-- overview: if the file specified by plugin.file exists in the app root, then load it -->
<!--            if isRequired is TRUE, and the file is not found, then an error message will be shown and processing aborted-->
<!--            if isRequired is FALSE, then try to include the file specified by plugin.file if it exists but silently continue if it doesn't exist -->
*/

$plugin = $myFusebox["plugins"][ $myFusebox["thisPlugin"] ];
$plugin["file"] = array();         // Skakunov Alex
$plugin["file"][] = "myConstants.php";  // Skakunov Alex
$plugin["file"][] = "myGlobals.php";    // Skakunov Alex
$plugin["isRequired"] = false;

//$filename = $application["fusebox"]["plugins"][ $myFusebox["thisPlugin"] ][ $myFusebox["thisPhase"] ][ "rootpath" ] . $plugin["file"];

foreach ($plugin["file"] as $filename){

  if ( file_exists( $filename ) ) {
    include( $filename );
  } else if ( ! file_exists( $filename ) && $plugin["isRequired"] ) {
    die("The required plugin file " . $filename . " is missing.");
  }

}
?>
Return current item: FuseBox Manager