phpBMS

Changeset 674

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
Files:
9 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 
  • trunk/phpbms/modules/base/include/notes.php

    r644 r674  
    6262                        $daysSelected = explode("::",$therecord["repeateachlist"]); 
    6363                else 
    64                         $daysSelected = array(strftime("%u",$repeatbase)); 
     64                        $daysSelected = array(@strftime("%u",$repeatbase)); 
    6565 
    6666                $daysAvailable = array(7,1,2,3,4,5,6); 
     
    8787                        $daysSelected = explode("::",$therecord["repeateachlist"]); 
    8888                else 
    89                         $daysSelected = array(strftime("%e",$repeatbase)); 
     89                        $daysSelected = array(@strftime("%e",$repeatbase)); 
    9090 
    9191 
     
    351351                                                        $weekday = $therecord["repeatontheday"]; 
    352352                                                        $weekday = ($weekday == 7)? 1: ($weekday+1); 
    353                                                         if($therecord["repeatontheday"] != strftime("%u",$tempDate)); 
     353                                                        if($therecord["repeatontheday"] != @strftime("%u",$tempDate)); 
    354354                                                                $tempDate = strtotime(nl_langinfo( constant("DAY_".$weekday) ),$tempDate); 
    355355 
     
    392392                                                                $weekday = $therecord["repeatontheday"]; 
    393393                                                                $weekday = ($weekday == 7)? 1: ($weekday+1); 
    394                                                                 if($therecord["repeatontheday"] != strftime("%u",$tempDate)); 
     394                                                                if($therecord["repeatontheday"] != @strftime("%u",$tempDate)); 
    395395                                                                        $tempDate = strtotime(nl_langinfo( constant("DAY_".$weekday) ),$tempDate); 
    396396 
  • trunk/phpbms/modules/base/notes_addedit.php

    r589 r674  
    172172                         $theinput->setAttribute("disabled","disabled"); 
    173173                         $theinput2->setAttribute("disabled","disabled"); 
    174                          $theinput->value = strftime("%u",$repeatBase); 
    175                          $theinput2->value = strftime("%u",$repeatBase); 
     174                         $theinput->value = @strftime("%u",$repeatBase); 
     175                         $theinput2->value = @strftime("%u",$repeatBase); 
    176176                } 
    177177                $theform->addField($theinput); 
  • trunk/phpbms/modules/base/widgets/events/ajax.php

    r574 r674  
    199199 
    200200                ?><tr class="eventDayName" <?php if(mktime(0,0,0) === ((int) str_replace("d","",$date)) ) echo 'id="today"'?>> 
    201                         <td nowrap="nowrap"><?php echo strftime("%A",((int) str_replace("d","",$date)) ); ?></td> 
    202                         <td width="100%" align="right"><?php echo strftime("%b %e %Y",((int) str_replace("d","",$date)) ); ?></td> 
     201                        <td nowrap="nowrap"><?php echo @strftime("%A",((int) str_replace("d","",$date)) ); ?></td> 
     202                        <td width="100%" align="right"><?php echo @strftime("%b %e %Y",((int) str_replace("d","",$date)) ); ?></td> 
    203203                </tr><?php 
    204204 
  • trunk/phpbms/modules/recurringinvoices/include/recurringinvoices.php

    r627 r674  
    261261                        $daysSelected = explode("::",$therecord["eachlist"]); 
    262262                else 
    263                         $daysSelected = array(strftime("%u",$invoiceDate)); 
     263                        $daysSelected = array(@strftime("%u",$invoiceDate)); 
    264264 
    265265                $daysAvailable = array(7,1,2,3,4,5,6); 
     
    286286                        $daysSelected = explode("::",$therecord["eachlist"]); 
    287287                else 
    288                         $daysSelected = array(strftime("%e",$invoiceDate)); 
     288                        $daysSelected = array(@strftime("%e",$invoiceDate)); 
    289289 
    290290 
  • trunk/phpbms/modules/recurringinvoices/invoices_recurrence.php

    r627 r674  
    109109                         $theinput->setAttribute("disabled","disabled"); 
    110110                         $theinput2->setAttribute("disabled","disabled"); 
    111                          $theinput->value = strftime("%u",$invoiceDate); 
    112                          $theinput2->value = strftime("%u",$invoiceDate); 
     111                         $theinput->value = @strftime("%u",$invoiceDate); 
     112                         $theinput2->value = @strftime("%u",$invoiceDate); 
    113113                } 
    114114                $theform->addField($theinput); 
  • trunk/phpbms/modules/recurringinvoices/scheduler_recurr.php

    r627 r674  
    111111                                                $weekday = $therecord["ontheday"]; 
    112112                                                $weekday = ($weekday == 7)? 1: ($weekday+1); 
    113                                                 if($therecord["ontheday"] != strftime("%u",$tempDate)); 
     113                                                if($therecord["ontheday"] != @strftime("%u",$tempDate)); 
    114114                                                        $tempDate = strtotime(nl_langinfo( constant("DAY_".$weekday) ),$tempDate); 
    115115 
     
    152152                                                        $weekday = $therecord["ontheday"]; 
    153153                                                        $weekday = ($weekday == 7)? 1: ($weekday+1); 
    154                                                         if($therecord["ontheday"] != strftime("%u",$tempDate)); 
     154                                                        if($therecord["ontheday"] != @strftime("%u",$tempDate)); 
    155155                                                                $tempDate = strtotime(nl_langinfo( constant("DAY_".$weekday) ),$tempDate); 
    156156 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.