phpBMS

Changeset 294

Show
Ignore:
Timestamp:
08/30/07 12:16:20 (5 years ago)
Author:
brieb
Message:

Fixed #174 - Pound Symbol not showing correctly on PDFs
Fixed API processing.
Fixed demo enabled mass Email

Location:
trunk/phpbms
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/include/session.php

    r290 r294  
    350350                } 
    351351                 
    352                 if($db->numRows($queryresult)){ 
     352                if($this->db->numRows($queryresult)){ 
    353353                        //We found a record that matches in the database 
    354354                        // populate the session and go in 
    355                         $_SESSION["userinfo"]=$db->fetchArray($queryresult); 
     355                        $_SESSION["userinfo"]=$this->db->fetchArray($queryresult); 
    356356                 
    357357                        $querystatement="UPDATE users SET modifieddate=modifieddate, lastlogin=Now() WHERE id = ".$_SESSION["userinfo"]["id"]; 
    358                         $queryresult=@ $db->query($querystatement); 
     358                        $queryresult=@ $this->db->query($querystatement); 
    359359                        if(!$queryresult) { 
    360360                                $error = new appError(-730,"","Error Updaingt User Login Time",true,true,true,"json"); 
     
    421421                        $db = new db(); 
    422422                        $phpbmsSession->db = $db; 
    423                          
     423 
     424                        include_once("common_functions.php");                    
    424425                        $phpbmsSession->loadSettings($sqlEncoding); 
    425426                        $phpbms = new phpbms($db); 
    426427         
    427                         include_once("common_functions.php"); 
    428428         
    429429                        if(!$phpbmsSession->verifyAPILogin($_POST["phpbmsusername"],$_POST["phpbmspassword"],ENCRYPTION_SEED)) 
     
    441441                $phpbmsSession->db = $db; 
    442442                 
    443                 $phpbmsSession->loadSettings(); 
     443                $phpbmsSession->loadSettings($sqlEncoding); 
    444444                 
    445445                include_once("common_functions.php"); 
  • trunk/phpbms/modules/bms/include/clients.php

    r285 r294  
    133133                 
    134134                function massEmail(){ 
    135                         $_SESSION["emailids"]= $this->idsArray; 
    136                         goURL("modules/bms/clients_email.php"); 
     135                        if(DEMO_ENABLED != "true"){ 
     136                                $_SESSION["emailids"]= $this->idsArray; 
     137                                goURL("modules/bms/clients_email.php"); 
     138                        } else { 
     139                                return "mass e-mail feature disabled in demo"; 
     140                        } 
    137141                } 
    138142 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.