phpBMS

Changeset 674 for trunk/phpbms/include

Show
Ignore:
Timestamp:
11/05/09 15:34:17 (3 years ago)
Author:
nate
Message:
  • Added @ infront of strftime function calls to supress any warnings given.
Location:
trunk/phpbms/include
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/include/common_functions.php

    r673 r674  
    831831 
    832832                        case "SQL": 
    833                                 $datestring=strftime("%Y-%m-%d",$thedate); 
     833                                $datestring=@strftime("%Y-%m-%d",$thedate); 
    834834                        break; 
    835835 
    836836                        case "English, US": 
    837                                 $datestring=strftime("%m/%d/%Y",$thedate); 
     837                                $datestring=@strftime("%m/%d/%Y",$thedate); 
    838838                        break; 
    839839 
    840840                        case "English, UK": 
    841                                 $datestring=strftime("%d/%m/%Y",$thedate); 
     841                                $datestring=@strftime("%d/%m/%Y",$thedate); 
    842842                        break; 
    843843 
    844844                        case "Dutch, NL": 
    845                                 $datestring=strftime("%d-%m-%Y",$thedate); 
     845                                $datestring=@strftime("%d-%m-%Y",$thedate); 
    846846                        break; 
    847847                } 
     
    855855                switch($format){ 
    856856                        case "24 Hour": 
    857                                 $timestring=strftime("%H:%M:%S",$thetime); 
     857                                $timestring=@strftime("%H:%M:%S",$thetime); 
    858858                        break; 
    859859                        case "12 Hour": 
    860                                 $timestring=trim(strftime(HOUR_FORMAT.":%M %p",$thetime)); 
     860                                $timestring=trim(@strftime(HOUR_FORMAT.":%M %p",$thetime)); 
    861861                        break; 
    862862                } 
  • trunk/phpbms/include/jstransport.php

    r485 r674  
    5252                $mNames = ""; 
    5353                for($i=0; $i < 11; $i++) 
    54                         $mNames .= ', "'.strftime("%B", mktime(0, 0, 0, $i+1, 1, 1974)).'"'; 
     54                        $mNames .= ', "'.@strftime("%B", mktime(0, 0, 0, $i+1, 1, 1974)).'"'; 
    5555                $mNames = substr($mNames, 2); 
    5656 
  • trunk/phpbms/include/tables.php

    r645 r674  
    165165 
    166166                    case "year": 
    167                         $default = strftime("%Y"); 
     167                        $default = @strftime("%Y"); 
    168168                        break; 
    169169 
     
    264264                            $value = NULL; 
    265265                        else 
    266                             $value = strftime("%Y"); 
     266                            $value = @strftime("%Y"); 
    267267                    break; 
    268268 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.