Changeset 749 for phpframework/branches
- Timestamp:
- 08/12/08 22:22:10 (3 months ago)
- Location:
- phpframework/branches/dev
- Files:
-
- 2 modified
-
fusebox5.php (modified) (1 diff)
-
fuseboxApplication.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
phpframework/branches/dev/fusebox5.php
r747 r749 49 49 $__fuseboxAppCfc->onRequestStart($_SERVER['SCRIPT_NAME']); 50 50 51 $__fuseboxAppCfc->onRequest($_SERVER['SCRIPT_NAME']); 51 //$__fuseboxAppCfc->onRequest($_SERVER['SCRIPT_NAME']); 52 if ( $myFusebox->parameters['execute'] ) { 53 if ( $_fba->debug ) { 54 $myFusebox->trace("Fusebox","Including parsed file for '".$attributes['fuseaction']."'"); 55 } 56 if ( file_exists($_parsedFileData['lockName']) ) { 57 $fp = fopen($_parsedFileData['lockName'],'r'); 58 if ( !flock($fp,LOCK_SH) ) { 59 $myFusebox->trace("FuseboxError","Could not get exclusive lock to parsed fuseaction file"); 60 } 61 include($_parsedFileData['parsedFile']); 62 @flock($fp,LOCK_UN); 63 fclose($fp); 64 } else { 65 __cfthrow(array( 'type'=>"fusebox.missingParsedFile", 66 'message'=>"Parsed File or Directory not found.", 67 'detail'=>"Attempting to execute the parsed file '".$_parsedFileData['parsedName']."' threw an error. This can occur if the parsed file does not exist in the parsed directory or if the parsed directory itself is missing." 68 )); 69 } 70 } 52 71 $__fuseboxAppCfc->onRequestEnd($_SERVER['SCRIPT_NAME']); 53 72 ?> -
phpframework/branches/dev/fuseboxApplication.php
r748 r749 1467 1467 } 1468 1468 1469 function fileModificationDate /*I return the last modified date/time for a file.*/ ( 1470 $filePath /*I am the full filesystem path to return the modification date.*/ 1471 ) { 1472 1473 $jFile = 0; 1474 $dtLastModified = 0; 1475 1476 $dtLastModified = filemtime($filePath); 1477 if ( $dtLastModified === false ) { 1478 /* have to assume it was always modified */ 1479 $dtLastModified = time(); 1480 } 1481 1482 return $dtLastModified; 1483 1484 } 1485 1469 1486 function getFBCode() { 1470 1487 if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '<ul><li>Starting $'.__CLASS__.'->'.__FUNCTION__.'()';
