phpBMS

Show
Ignore:
Timestamp:
12/21/09 16:58:44 (2 years ago)
Author:
nate
Message:
  • Removed unneeded setting from the MailChimp? module.
  • Added additional instructions to the MailChimp? adminsettings.php.
  • Update MailChimp? version information.
  • Fixed error reporting in scheduler_list_sync.php.
  • Fixed sql statement in cron.php and a variable reference in scheduler.php that would break without the installation of the api module.
  • Removed the redundant push_record_ajax.php.
Files:
1 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/base/cron.php

    r665 r686  
    3030                        `scheduler`.`pushrecordid`, 
    3131                        `scheduler`.startdatetime, 
    32                         `scheduler`.enddatetime, 
     32                        `scheduler`.enddatetime 
     33                        "; 
     34                 
     35        if(moduleExists("mod:b2d42220-443b-fe74-dbdb-ed2c0968c38c", $phpbms->modules)){ 
     36                $querystatement .= " 
     37                        , 
    3338                        `tabledefs`.`maintable`, 
    3439                        `modules`.`name` AS `modulename` 
    3540                FROM 
     41                "; 
     42                $querystatement .= " 
    3643                        (((scheduler LEFT JOIN `pushrecords` ON `scheduler`.`pushrecordid` = `pushrecords`.`uuid`) LEFT JOIN `tabledefs` ON `pushrecords`.`originuuid` = `tabledefs`.`uuid`) LEFT JOIN `modules` ON `tabledefs`.`moduleid` = `modules`.`uuid`) 
    37                 WHERE 
    38                         inactive = 0 
    39                         AND startdatetime < NOW() 
    40                         AND (enddatetime > NOW() OR enddatetime IS NULL) 
     44                "; 
     45        }else{ 
     46                $querystatement .= " 
     47                FROM 
     48                "; 
     49                $querystatement .= " 
     50                        `scheduler` 
     51                "; 
     52        }//end if 
     53         
     54        $querystatement .= " WHERE 
     55                        `scheduler`.inactive = '0' 
     56                        AND `scheduler`.startdatetime < NOW() 
     57                        AND (`scheduler`.enddatetime > NOW() OR `scheduler`.enddatetime IS NULL) 
    4158        "; 
    4259 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.