Changeset 749 for phpframework/branches

Show
Ignore:
Timestamp:
08/12/08 22:22:10 (3 months ago)
Author:
starkraving2002
Message:

code debugging

Location:
phpframework/branches/dev
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • phpframework/branches/dev/fusebox5.php

    r747 r749  
    4949$__fuseboxAppCfc->onRequestStart($_SERVER['SCRIPT_NAME']); 
    5050 
    51 $__fuseboxAppCfc->onRequest($_SERVER['SCRIPT_NAME']); 
     51//$__fuseboxAppCfc->onRequest($_SERVER['SCRIPT_NAME']); 
     52if ( $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} 
    5271$__fuseboxAppCfc->onRequestEnd($_SERVER['SCRIPT_NAME']); 
    5372?> 
  • phpframework/branches/dev/fuseboxApplication.php

    r748 r749  
    14671467        } 
    14681468         
     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         
    14691486        function getFBCode() { 
    14701487                if ( isset($GLOBALS['attributes']['fusebox.debug']) && $GLOBALS['attributes']['fusebox.debug'] == 'true' ) echo '<ul><li>Starting $'.__CLASS__.'->'.__FUNCTION__.'()';