phpBMS

Show
Ignore:
Timestamp:
04/07/09 11:10:54 (3 years ago)
Author:
brieb
Message:
  • Fixed problem with endless loop on workload
  • Fixed problem with assigned notes not falling off after being marked completed.
  • Added 2nd System message detailing how to remove system messages or new installs.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/nathan/modules/base/include/snapshot_include.php

    r479 r484  
    114114 
    115115                                $querystatement.=" 
    116                                         assignedtoid = ".$this->userid." 
    117                                          OR ( 
    118                                                 type = 'TS' 
    119                                                 AND (assignedtoid = 0 OR assignedtoid IS NULL) 
    120                                                 AND createdby = ".$this->userid." 
    121                                         ) AND (completed = 0 
    122                                                 OR (completed = 1 AND completeddate >= CURDATE()) 
     116                                        (( 
     117                                                assignedtoid = ".$this->userid." 
     118                                                OR      ( 
     119                                                        type = 'TS' 
     120                                                        AND (assignedtoid = 0 OR assignedtoid IS NULL) 
     121                                                        AND createdby = ".$this->userid." 
     122                                                        ) 
     123                                        ) 
     124                                                AND     ( 
     125                                                        completed = 0 
     126                                                        OR      ( 
     127                                                                completed = 1 
     128                                                                AND completeddate >= CURDATE() 
     129                                                                ) 
     130                                                        ) 
    123131                                        )"; 
    124132 
     
    130138 
    131139                                $querystatement.=" 
    132                                         assignedbyid = ".$this->userid." 
     140                                        (assignedbyid = ".$this->userid." 
    133141                                        AND (completed = 0 
    134142                                                OR (completed = 1 AND completeddate >= CURDATE()) 
    135                                         )"; 
     143                                        ))"; 
    136144 
    137145                                $title = "Delegations"; 
     
    143151 
    144152                $querystatement.="AND ( 
    145                                         (startdate IS NULL AND enddate IS NULL AND assignedtodate IS NULL) OR 
    146                                         (startdate IS NOT NULL AND startdate <= DATE_ADD(CURDATE(),INTERVAL 30 DAY)) OR 
    147                                         (enddate IS NOT NULL AND enddate <= DATE_ADD(CURDATE(),INTERVAL 30 DAY)) OR 
    148                                         (assignedtodate IS NOT NULL AND assignedtodate <= DATE_ADD(CURDATE(),INTERVAL 30 DAY)) 
     153                                        (startdate IS NULL AND enddate IS NULL AND assignedtodate IS NULL) 
     154 
     155                                        OR ( 
     156                                                (startdate IS NOT NULL AND startdate <= DATE_ADD(CURDATE(),INTERVAL 30 DAY)) 
     157                                                AND ( 
     158                                                        (enddate IS NOT NULL AND enddate <= DATE_ADD(CURDATE(),INTERVAL 30 DAY)) 
     159                                                        OR (assignedtodate IS NOT NULL AND assignedtodate <= DATE_ADD(CURDATE(),INTERVAL 30 DAY)) 
     160                                                ) 
     161                                        ) 
    149162                                   )"; 
    150163 
     
    235248                                                                case "Now": 
    236249                                                                        $section["title"] = "Soon"; 
    237                                                                         $section["date"] = mktime(0,0,0,date("m"),date("d")+7,date("Y"));; 
     250                                                                        $section["date"] = mktime(0,0,0,date("m"),date("d")+7,date("Y")); 
    238251                                                                        break; 
    239252 
    240253                                                                case "Soon": 
    241254                                                                        $section["title"] = "Later"; 
    242                                                                         $section["date"] = mktime(0,0,0,date("m"),date("d")+31,date("Y"));; 
     255//                                                                      $section["date"] = mktime(0,0,0,date("m"),date("d")+31,date("Y")); 
     256                                                                        $section["date"] = mktime(0,0,0,date("m"),date("d"),2038); 
    243257                                                                        break; 
    244258 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.