| 1 | <?php |
|---|
| 2 | |
|---|
| 3 | |
|---|
| 4 | |
|---|
| 5 | |
|---|
| 6 | |
|---|
| 7 | |
|---|
| 8 | |
|---|
| 9 | |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | |
|---|
| 14 | |
|---|
| 15 | |
|---|
| 16 | |
|---|
| 17 | |
|---|
| 18 | |
|---|
| 19 | |
|---|
| 20 | |
|---|
| 21 | |
|---|
| 22 | |
|---|
| 23 | |
|---|
| 24 | |
|---|
| 25 | |
|---|
| 26 | |
|---|
| 27 | |
|---|
| 28 | |
|---|
| 29 | |
|---|
| 30 | |
|---|
| 31 | |
|---|
| 32 | |
|---|
| 33 | |
|---|
| 34 | |
|---|
| 35 | |
|---|
| 36 | |
|---|
| 37 | |
|---|
| 38 | |
|---|
| 39 | |
|---|
| 40 | |
|---|
| 41 | |
|---|
| 42 | |
|---|
| 43 | |
|---|
| 44 | |
|---|
| 45 | |
|---|
| 46 | |
|---|
| 47 | |
|---|
| 48 | |
|---|
| 49 | |
|---|
| 50 | |
|---|
| 51 | |
|---|
| 52 | class FuseboxApplication { |
|---|
| 53 | |
|---|
| 54 | var $myVersion; |
|---|
| 55 | var $factory; |
|---|
| 56 | var $fuseboxLexicon; |
|---|
| 57 | var $customAttributes; |
|---|
| 58 | var $fuseboxVersion; |
|---|
| 59 | var $appKey; |
|---|
| 60 | var $coreRoot; |
|---|
| 61 | |
|---|
| 62 | function FuseboxApplication() { |
|---|
| 63 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '<ul><li>Starting $'.__CLASS__.'->'.__FUNCTION__.'()'; |
|---|
| 64 | |
|---|
| 65 | $this->isFullyLoaded = false; |
|---|
| 66 | $this->circuits = array(); |
|---|
| 67 | $this->classes = array(); |
|---|
| 68 | $this->lexicons = array(); |
|---|
| 69 | $this->plugins = array(); |
|---|
| 70 | $this->pluginPhases = array(); |
|---|
| 71 | $this->nonFatalExceptionPrefix = "INFORMATION (can be ignored): "; |
|---|
| 72 | |
|---|
| 73 | $this->precedenceFormOrURL = "form"; |
|---|
| 74 | $this->defaultFuseaction = ""; |
|---|
| 75 | $this->fuseactionVariable = "fuseaction"; |
|---|
| 76 | |
|---|
| 77 | $this->parseWithComments = false; |
|---|
| 78 | $this->ignoreBadGrammar = true; |
|---|
| 79 | $this->allowLexicon = true; |
|---|
| 80 | $this->useAssertions = true; |
|---|
| 81 | $this->conditionalParse = false; |
|---|
| 82 | |
|---|
| 83 | $this->password = ""; |
|---|
| 84 | $this->mode = "production"; |
|---|
| 85 | $this->scriptLanguage = "php4"; |
|---|
| 86 | $this->scriptFileDelimiter = "php"; |
|---|
| 87 | $this->scriptVersion = phpversion(); |
|---|
| 88 | $this->maskedFileDelimiters = "htm,cfm,cfml,php,php4,asp,aspx"; |
|---|
| 89 | $this->characterEncoding = "utf-8"; |
|---|
| 90 | |
|---|
| 91 | $this->parseWithIndentation = $this->parseWithComments; |
|---|
| 92 | $this->strictMode = false; |
|---|
| 93 | $this->allowImplicitCircuits = false; |
|---|
| 94 | $this->debug = false; |
|---|
| 95 | $this->hasProcess = array('appinit'=>false,'preprocess'=>false,'postprocess'=>false); |
|---|
| 96 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '</li><li>Ending $'.__CLASS__.'->'.__FUNCTION__.'()</li></ul>'; |
|---|
| 97 | } |
|---|
| 98 | |
|---|
| 99 | function &init ( |
|---|
| 100 | $appKey, |
|---|
| 101 | $appPath, |
|---|
| 102 | $appName, |
|---|
| 103 | &$myFusebox |
|---|
| 104 | ) { |
|---|
| 105 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '<ul><li>Starting $'.__CLASS__.'->'.__FUNCTION__.'()'; |
|---|
| 106 | $this->myVersion = "5.0.0.GR.0"; |
|---|
| 107 | require_once("fuseboxFactory.php"); |
|---|
| 108 | if ( !isPHP5() ) { eval('$this->factory =& new FuseboxFactory();'); } else { $this->factory = new FuseboxFactory(); } |
|---|
| 109 | |
|---|
| 110 | $this->fuseboxLexicon = $this->factory->getBuiltinLexicon(); |
|---|
| 111 | $this->customAttributes = array(); |
|---|
| 112 | |
|---|
| 113 | $this->fuseboxVersion = $this->myVersion; |
|---|
| 114 | |
|---|
| 115 | $this->appKey = $appKey; |
|---|
| 116 | $this->appName = $appName; |
|---|
| 117 | $this->webrootdirectory = str_replace("\\","/",getcwd().DIRECTORY_SEPARATOR); |
|---|
| 118 | $this->coreRoot = str_replace("\\","/",dirname(__FILE__).DIRECTORY_SEPARATOR); |
|---|
| 119 | |
|---|
| 120 | $this->approotdirectory = str_replace("\\","/",$this->webrootdirectory) . str_replace("\\","/",$appPath); |
|---|
| 121 | if ( substr($this->approotdirectory,-1) != "/" ) { |
|---|
| 122 | $this->approotdirectory .= "/"; |
|---|
| 123 | } |
|---|
| 124 | |
|---|
| 125 | while ( strpos($this->approotdirectory,'/../') !== false ) { |
|---|
| 126 | $this->approotdirectory = ereg_replace("[^\.:/]*/\.\./","",$this->approotdirectory); |
|---|
| 127 | } |
|---|
| 128 | |
|---|
| 129 | $this->osdelimiter = "/"; |
|---|
| 130 | |
|---|
| 131 | $this->coreToAppRootPath = $this->relativePath($this->coreRoot,$this->approotdirectory); |
|---|
| 132 | $this->appRootPathToCore = $this->relativePath($this->approotdirectory,$this->coreRoot); |
|---|
| 133 | $this->coreToWebRootPath = $this->relativePath($this->coreRoot,$this->webrootdirectory); |
|---|
| 134 | $this->WebRootPathToCore = $this->relativePath($this->webrootdirectory,$this->coreRoot); |
|---|
| 135 | $this->WebRootPathToappRoot = $this->relativePath($this->webrootdirectory,$this->approotdirectory); |
|---|
| 136 | |
|---|
| 137 | $this->parsePath = "parsed/"; |
|---|
| 138 | $this->parseRootPath = "../"; |
|---|
| 139 | $this->pluginsPath = "plugins/"; |
|---|
| 140 | $this->lexiconPath = "lexicon/"; |
|---|
| 141 | $this->errortemplatesPath = "errortemplates/"; |
|---|
| 142 | |
|---|
| 143 | $this->circuits = array(); |
|---|
| 144 | $this->reload($appKey,$appPath,$myFusebox); |
|---|
| 145 | |
|---|
| 146 | if ( $this->strictMode ) { |
|---|
| 147 | |
|---|
| 148 | $this->rootdirectory = null; |
|---|
| 149 | } else { |
|---|
| 150 | |
|---|
| 151 | $this->rootdirectory = $this->approotdirectory; |
|---|
| 152 | } |
|---|
| 153 | |
|---|
| 154 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '</li><li>Ending $'.__CLASS__.'->'.__FUNCTION__.'()</li></ul>'; |
|---|
| 155 | return $this; |
|---|
| 156 | |
|---|
| 157 | } |
|---|
| 158 | |
|---|
| 159 | function reload ( |
|---|
| 160 | $appKey, |
|---|
| 161 | $appPath, |
|---|
| 162 | &$myFusebox |
|---|
| 163 | ) { |
|---|
| 164 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '<ul><li>Starting $'.__CLASS__.'->'.__FUNCTION__.'()'; |
|---|
| 165 | |
|---|
| 166 | $fbFile = "fusebox.xml.php"; |
|---|
| 167 | $fbXML = ""; |
|---|
| 168 | $fbCode = ""; |
|---|
| 169 | $encodings = 0; |
|---|
| 170 | $needToLoad = true; |
|---|
| 171 | $fuseboxFiles = 0; |
|---|
| 172 | |
|---|
| 173 | if ( isset($this->timestamp) && ( false !== ( $fuseboxFiles = opendir($this->approotdirectory) ) ) ) { |
|---|
| 174 | $found = false; |
|---|
| 175 | while ( false !== ( $file = readdir($fuseboxFiles) ) && !$found ) { |
|---|
| 176 | if ( strpos('fusebox.xml',$file) === 0 ) { |
|---|
| 177 | $needToLoad = ( filemtime($this->approotdirectory.$file) > $this->timestamp ); |
|---|
| 178 | $found = true; |
|---|
| 179 | } |
|---|
| 180 | |
|---|
| 181 | } |
|---|
| 182 | } |
|---|
| 183 | |
|---|
| 184 | |
|---|
| 185 | if ( $myFusebox->parameters['clean'] ) { |
|---|
| 186 | $this->deleteParsedFiles(); |
|---|
| 187 | } |
|---|
| 188 | |
|---|
| 189 | require_once("udf_XMLUtils.php"); |
|---|
| 190 | if ( $needToLoad ) { |
|---|
| 191 | if ( $this->debug ) { |
|---|
| 192 | $myFusebox->trace("Compiler","Loading fusebox.xml file"); |
|---|
| 193 | } |
|---|
| 194 | |
|---|
| 195 | if ( !file_Exists($this->approotdirectory . $fbFile) ) { |
|---|
| 196 | $fbFile = "fusebox.xml"; |
|---|
| 197 | } |
|---|
| 198 | |
|---|
| 199 | do { |
|---|
| 200 | $okay = false; |
|---|
| 201 | if ( false == ( $fbXMLfile = @fopen($this->approotdirectory . $fbFile,"r") ) ) break; |
|---|
| 202 | if ( false == ( $fbXML = @fread($fbXMLfile,filesize($this->approotdirectory . $fbFile)) ) ) break; |
|---|
| 203 | if ( false == ( @fclose($fbXMLfile) ) ) break; |
|---|
| 204 | $okay = true; |
|---|
| 205 | } while ( false ); |
|---|
| 206 | if ( !$okay ) { |
|---|
| 207 | __cfthrow(array( 'type'=>"fusebox.missingFuseboxXML", |
|---|
| 208 | 'message'=>"missing fusebox.xml", |
|---|
| 209 | 'detail'=>"The file '".$fbFile."' could not be found in $this->approotdirectory." |
|---|
| 210 | )); |
|---|
| 211 | } |
|---|
| 212 | |
|---|
| 213 | do { |
|---|
| 214 | $okay = false; |
|---|
| 215 | |
|---|
| 216 | if ( ereg('(<parameters>).+(<parameter name="characterEncoding" value=")([^"]+)',$fbXML,$match) ) { |
|---|
| 217 | $this->encodings = trim($match[3]); |
|---|
| 218 | } else { |
|---|
| 219 | $this->encodings = "utf-8"; |
|---|
| 220 | } |
|---|
| 221 | if ( false == ($fbCode = @xmlParse($fbXML,$this->encodings) ) ) break; |
|---|
| 222 | $okay = true; |
|---|
| 223 | } while ( false ); |
|---|
| 224 | if ( !$okay ) { |
|---|
| 225 | __cfthrow(array( 'type'=>"fusebox.fuseboxXMLError", |
|---|
| 226 | 'message'=>"Error reading fusebox.xml", |
|---|
| 227 | 'detail'=>"A problem was encountered while reading the ".$fbFile." file. This is usually caused by unmatched XML tags (a <tag> without a </tag> or without use of the <tag/> short-cut.)" |
|---|
| 228 | )); |
|---|
| 229 | } |
|---|
| 230 | |
|---|
| 231 | $this->loadParameters($fbCode); |
|---|
| 232 | $this->loadLexicons($fbCode); |
|---|
| 233 | $this->loadClasses($fbCode); |
|---|
| 234 | $this->loadPlugins($fbCode); |
|---|
| 235 | $this->loadGlobalPreAndPostProcess($fbCode); |
|---|
| 236 | |
|---|
| 237 | $this->cacheFBCode($fbCode,$myFusebox); |
|---|
| 238 | $this->fbFile = $fbFile; |
|---|
| 239 | } else { |
|---|
| 240 | $fbCode = $this->getFBCode(); |
|---|
| 241 | } |
|---|
| 242 | |
|---|
| 243 | |
|---|
| 244 | if ( !isset($_REQUEST['__fusebox']['CircuitsLoaded']) ) $_REQUEST['__fusebox']['CircuitsLoaded'] = array(); |
|---|
| 245 | $this->loadCircuits($fbCode,$myFusebox); |
|---|
| 246 | |
|---|
| 247 | |
|---|
| 248 | |
|---|
| 249 | $this->data = array(); |
|---|
| 250 | |
|---|
| 251 | $this->isFullyLoaded = true; |
|---|
| 252 | $this->applicationStarted = false; |
|---|
| 253 | $this->timestamp = microtime(); |
|---|
| 254 | $this->timestamp = (substr($this->timestamp,-strpos($this->timestamp,' '))) * 1000; |
|---|
| 255 | $this->dateLastLoaded = microtime(); |
|---|
| 256 | $this->dateLastLoaded = (substr($this->dateLastLoaded,-strpos($this->dateLastLoaded,' '))) * 1000; |
|---|
| 257 | |
|---|
| 258 | |
|---|
| 259 | |
|---|
| 260 | |
|---|
| 261 | |
|---|
| 262 | |
|---|
| 263 | |
|---|
| 264 | |
|---|
| 265 | |
|---|
| 266 | |
|---|
| 267 | |
|---|
| 268 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '</li><li>Ending $'.__CLASS__.'->'.__FUNCTION__.'()</li></ul>'; |
|---|
| 269 | } |
|---|
| 270 | |
|---|
| 271 | function getPluginsPath() { |
|---|
| 272 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '<ul><li>Starting $'.__CLASS__.'->'.__FUNCTION__.'()'; |
|---|
| 273 | |
|---|
| 274 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '</li><li>Ending $'.__CLASS__.'->'.__FUNCTION__.'()</li></ul>'; |
|---|
| 275 | return $this->pluginsPath; |
|---|
| 276 | |
|---|
| 277 | } |
|---|
| 278 | |
|---|
| 279 | function getApplicationData() { |
|---|
| 280 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '<ul><li>Starting $'.__CLASS__.'->'.__FUNCTION__.'()'; |
|---|
| 281 | |
|---|
| 282 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '</li><li>Ending $'.__CLASS__.'->'.__FUNCTION__.'()</li></ul>'; |
|---|
| 283 | return $this->data; |
|---|
| 284 | |
|---|
| 285 | } |
|---|
| 286 | |
|---|
| 287 | function getApplicationRoot() { |
|---|
| 288 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '<ul><li>Starting $'.__CLASS__.'->'.__FUNCTION__.'()'; |
|---|
| 289 | |
|---|
| 290 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '</li><li>Ending $'.__CLASS__.'->'.__FUNCTION__.'()</li></ul>'; |
|---|
| 291 | return $this->approotdirectory; |
|---|
| 292 | |
|---|
| 293 | } |
|---|
| 294 | |
|---|
| 295 | function getFuseboxXMLFilename() { |
|---|
| 296 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '<ul><li>Starting $'.__CLASS__.'->'.__FUNCTION__.'()'; |
|---|
| 297 | |
|---|
| 298 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '</li><li>Ending $'.__CLASS__.'->'.__FUNCTION__.'()</li></ul>'; |
|---|
| 299 | return $this->fbFile; |
|---|
| 300 | |
|---|
| 301 | } |
|---|
| 302 | |
|---|
| 303 | function getCoreToAppRootPath() { |
|---|
| 304 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '<ul><li>Starting $'.__CLASS__.'->'.__FUNCTION__.'()'; |
|---|
| 305 | |
|---|
| 306 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '</li><li>Ending $'.__CLASS__.'->'.__FUNCTION__.'()</li></ul>'; |
|---|
| 307 | return $this->coreToAppRootPath; |
|---|
| 308 | |
|---|
| 309 | } |
|---|
| 310 | |
|---|
| 311 | function getWebRootPathToappRoot() { |
|---|
| 312 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '<ul><li>Starting $'.__CLASS__.'->'.__FUNCTION__.'()'; |
|---|
| 313 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '</li><li>Ending $'.__CLASS__.'->'.__FUNCTION__.'()</li></ul>'; |
|---|
| 314 | return $this->WebRootPathToappRoot; |
|---|
| 315 | } |
|---|
| 316 | |
|---|
| 317 | function compileAll ( |
|---|
| 318 | &$myFusebox |
|---|
| 319 | ) { |
|---|
| 320 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '<ul><li>Starting $'.__CLASS__.'->'.__FUNCTION__.'()'; |
|---|
| 321 | |
|---|
| 322 | $c = 0; |
|---|
| 323 | $a = 0; |
|---|
| 324 | $f = 0; |
|---|
| 325 | |
|---|
| 326 | foreach ( array_keys($this->circuits) as $c ) { |
|---|
| 327 | $cir =& $this->circuits[$c]; |
|---|
| 328 | $a =& $cir->getFuseactions(); |
|---|
| 329 | foreach ( array_keys($a) as $f ) { |
|---|
| 330 | if ( $a[$f]->access == "public" ) { |
|---|
| 331 | $this->compileRequest($c . "." . $f,$myFusebox); |
|---|
| 332 | } |
|---|
| 333 | } |
|---|
| 334 | } |
|---|
| 335 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '</li><li>Ending $'.__CLASS__.'->'.__FUNCTION__.'()</li></ul>'; |
|---|
| 336 | |
|---|
| 337 | } |
|---|
| 338 | |
|---|
| 339 | function compileRequest ( |
|---|
| 340 | $circuitFuseaction, |
|---|
| 341 | &$myFusebox |
|---|
| 342 | ) { |
|---|
| 343 | if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '<ul><li>Starting $'.__CLASS__.'->'.__FUNCTION__.'()'; |
|---|
| 344 | $myVersion = $this->getVersion(); |
|---|
| 345 | list($circuit,$fuseaction) = explode('.',$circuitFuseaction); |
|---|
| 346 | $i = 0; |
|---|
| 347 | $n = 0; |
|---|
| 348 | $needRethrow = true; |
|---|
| 349 | $needTryOnFuseaction = false; |
|---|
| 350 | $parsedName = strtolower($circuitFuseaction).".php"; |
|---|
| 351 | $parsedFile = $this->getWebRootPathToappRoot().$this->parsePath.$parsedName; |
|---|
| 352 | $fullParsedFile = $this->getApplicationRoot().$this->parsePath.$parsedName; |
|---|
| 353 | $result = array(); |
|---|
| 354 | $writer = 0; |
|---|
| 355 | |
|---|
| 356 | |
|---|
| 357 | if ( count(explode(".",$circuitFuseaction)) != 2 || substr($circuitFuseaction,-1) == '.' ) { |
|---|
| 358 | __cfthrow(array( 'type'=>"fusebox.malformedFuseaction", |
|---|
| 359 | 'message'=>"malformed Fuseaction", |
|---|
| 360 | 'detail'=>"You specified a malformed Fuseaction of ".$circuitFuseaction.". A fully qualified Fuseaction must be in the form [Circuit].[Fuseaction]." |
|---|
| 361 | )); |
|---|
| 362 | } |
|---|
| 363 | |
|---|
| 364 | |
|---|
| 365 | if ( !isset($_REQUEST['__fusebox']['CircuitsLoaded']) ) $_REQUEST['__fusebox']['CircuitsLoaded'] = array(); |
|---|
| 366 | if ( !isset($_REQUEST['__fusebox']['fuseactionsDone']) ) $_REQUEST['__fusebox']['fuseactionsDone'] = array(); |
|---|
| 367 | |
|---|
| 368 | |
|---|
| 369 | $myFusebox->originalCircuit = $circuit; |
|---|
| 370 | $myFusebox->originalFuseaction = $fuseaction; |
|---|
| 371 | foreach ( array_keys($this->plugins) as $i ) { |
|---|
| 372 | $myFusebox->plugins[$i] = array(); |
|---|
| 373 | } |
|---|
| 374 | |
|---|
| 375 | |
|---|
| 376 | $myFusebox->version['loader'] = $myVersion; |
|---|
| 377 | $myFusebox->version['parser'] = $myVersion; |
|---|
| 378 | $myFusebox->version['transformer'] = $myVersion; |
|---|
| 379 | |
|---|
| 380 | if ( $myFusebox->version['runtime'] != $myFusebox->version['loader'] ) { |
|---|
| 381 | __cfthrow(array( 'type'=>"fusebox.versionMismatchException", |
|---|
| 382 | 'message'=>"The loader is not the same version as the runtime", |
|---|
| 383 | 'detail'=>"" |
|---|
| 384 | )); |
|---|
| 385 | } |
|---|
| 386 | |
|---|
| 387 | |
|---|
| 388 | if ( array_key_exists($circuit,$this->circuits) && |
|---|
| 389 | array_key_exists($fuseaction,$this->circuits[$circuit]->fuseactions) && |
|---|
| 390 | $this->circuits[$circuit]->fuseactions[$fuseaction]->getAccess() != "public" ) { |
|---|
| 391 | __cfthrow(array( 'type'=>"fusebox.invalidAccessModifier", |
|---|
| 392 | 'message'=>"Invalid Access Modifier", |
|---|
| 393 | 'detail'=>"You tried to access $circuit.$fuseaction which does not have access modifier of public. A Fuseaction which is to be accessed from anywhere outside the application (such as called via an URL, or a FORM, or as a web service) must have an access modifier of public or if unspecified at least inherit such a modifier from its circuit." |
|---|
| 394 | )); |
|---|
| 395 | } |
|---|
| 396 | if ( !file_Exists($fullParsedFile) || $myFusebox->parameters['parse'] ) { |
|---|
| 397 | $fp = @fopen($fullParsedFile,"r"); |
|---|
| 398 | |
|---|
| 399 | if ( !file_Exists($fullParsedFile) || $myFusebox->parameters['parse'] ) { |
|---|
| 400 | $_REQUEST['__fusebox']['SuppressPlugins'] = false; |
|---|
| 401 | require_once("fuseboxWriter.php"); |
|---|
| 402 | if ( !isPHP5() ) { eval('$writer =& new FuseboxWriter($this,$myFusebox);'); } else { $writer = new FuseboxWriter($this,$myFusebox); } |
|---|
| 403 | $writer->open($parsedName); |
|---|
| 404 | $writer->rawPrintln("// circuit: $circuit"); |
|---|
| 405 | $writer->rawPrintln("// fuseaction: $fuseaction"); |
|---|
| 406 | if ( array_key_exists("processError",$this->pluginPhases) && |
|---|
| 407 | !$_REQUEST['__fusebox']['SuppressPlugins'] ) { |
|---|
| 408 | if ( $this->scriptVersion{0} == '5' ) { |
|---|
| 409 | $writer->rawPrintln("try {"); |
|---|
|
|---|