phpBMS

Changeset 484 for branches/nathan

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.
Location:
branches/nathan
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/nathan/install/notes.sql

    r308 r484  
    11INSERT INTO `notes` (`assignedtoid`, `attachedid`, `attachedtabledefid`, `content`, `assignedtodate`, `subject`, `type`, `createdby`, `creationdate`, `modifiedby`, `modifieddate`, `importance`, `parentid`, `startdate`, `enddate`, `completed`, `private`, `status`, `completeddate`, `location`, `category`, `assignedtotime`, `starttime`, `endtime`, `assignedbyid`, `repeating`, `repeattype`, `repeatuntil`, `repeatevery`, `repeattimes`, `repeateachlist`, `repeatontheday`, `repeatontheweek`, `firstrepeat`, `lastrepeat`, `timesrepeated`, `repeatname`) VALUES (NULL,NULL,NULL,'For more help using this software use the following links:\r\n\r\nhttp://www.phpbms.org - community site and wiki.\r\n\r\nhttp://www.phpbms.org/forum -user support forum.\r\n\r\nhttp://www.kreotek.com - paid support and customization.',NULL,'Welcome to phpBMS','SM',1,NOW(),1,NOW(),0,NULL,NULL,NULL,0,0,NULL,NULL,NULL,NULL,NULL,NULL,NULL,0,0,'Daily',NULL,1,NULL,NULL,NULL,NULL,NULL,NULL,0,NULL); 
     2INSERT INTO `notes` (`assignedtoid`, `attachedid`, `attachedtabledefid`, `content`, `assignedtodate`, `subject`, `type`, `createdby`, `creationdate`, `modifiedby`, `modifieddate`, `importance`, `parentid`, `startdate`, `enddate`, `completed`, `private`, `status`, `completeddate`, `location`, `category`, `assignedtotime`, `starttime`, `endtime`, `assignedbyid`, `repeating`, `repeattype`, `repeatuntil`, `repeatevery`, `repeattimes`, `repeateachlist`, `repeatontheday`, `repeatontheweek`, `firstrepeat`, `lastrepeat`, `timesrepeated`, `repeatname`) VALUES (NULL, NULL, NULL, '1) From the menu, navigate to Tools->Notes.\r\n2) From the find drop down, choose \'System Messages\' and then click the search button.\r\n3) Select the record(s) you want to delete and then click the delete (-) button.', NULL, 'How To Delete System Messages', 'SM', 1, NOW(), 1, NOW(), '0', NULL, NULL, NULL, '0', '0', NULL, NULL, NULL, NULL, NULL, NULL, NULL, '0', '0', 'Daily', NULL, '1', NULL, NULL, NULL, NULL, NULL, NULL, '0', NULL); 
  • 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.