phpBMS

Changeset 674 for trunk/phpbms/modules

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/modules
Files:
6 modified

Legend:

Unmodified
Added
Removed
  • 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.