24-08-2009, 07:01 PM
Now I got it figure out. So here is the solution for those who have the same problem as me.
1. Open your FsPlistflight.php in a texteditor
2. Search for: # total flight time / block time
3. Delete following lines:
Copy and paste following lines just under: # total flight time / block time
$query= 'SELECT sum( time_to_sec( TotalBlockTime ) ) FROM flights '. $condition;
$result= mysql_query( $query );
$TFT= mysql_result( $result, 0 );
function int_int_divide( $x, $y ) {
return ( $x- ( $x% $y ) )/ $y;
}
$seconds= $TFT% 60;
$TFT= int_int_divide( $TFT, 60 );
$minutes= $TFT% 60;
$TFT= int_int_divide( $TFT, 60 );
$hours= $TFT;
$TFT= sprintf( '%02d:%02d:%02d', $hours, $minutes, $seconds );
1. Open your FsPlistflight.php in a texteditor
2. Search for: # total flight time / block time
3. Delete following lines:
Quote: $query = "SELECT sec_to_time(sum(time_to_sec(TotalBlockTime))) FROM flights ".$condition;
$result=mysql_query($query);
$TFT = number_format(mysql_result($result,0));
Copy and paste following lines just under: # total flight time / block time
$query= 'SELECT sum( time_to_sec( TotalBlockTime ) ) FROM flights '. $condition;
$result= mysql_query( $query );
$TFT= mysql_result( $result, 0 );
function int_int_divide( $x, $y ) {
return ( $x- ( $x% $y ) )/ $y;
}
$seconds= $TFT% 60;
$TFT= int_int_divide( $TFT, 60 );
$minutes= $TFT% 60;
$TFT= int_int_divide( $TFT, 60 );
$hours= $TFT;
$TFT= sprintf( '%02d:%02d:%02d', $hours, $minutes, $seconds );
![[Image: c23.gif]](http://www.fspassengers.com/images/banner/sig/c23.gif)