phpBMS

Changeset 698 for trunk/phpbms/modules

Show
Ignore:
Timestamp:
12/31/09 16:28:12 (2 years ago)
Author:
nate
Message:
  • Removed unused function in bms/install/update.php
  • Fixed aritem relatedid update in generateuuids.php
  • Fixed sql statement in aritems.php
Location:
trunk/phpbms/modules/bms
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • trunk/phpbms/modules/bms/include/aritems.php

    r610 r698  
    121121                        if($this->aritem["type"] == "deposit") 
    122122                                $querystatement.=" 
    123                                         AND receipts.uuid != ".mysql_real_escape_string($this->aritem["relatedid"]); 
     123                                        AND receipts.uuid != '".mysql_real_escape_string($this->aritem["relatedid"])."'"; 
    124124 
    125125                        $querystatement.= 
  • trunk/phpbms/modules/bms/install/update.php

    r547 r698  
    447447        }//end function v098UpdatePostingSession 
    448448 
    449         /** 
    450          * function v098UpdateProducts 
    451          * Updates the categoryid field from the category's id to uuid. 
    452          */ 
    453  
    454         function v098UpdateProducts() { 
    455  
    456                 $querystatement = " 
    457                         SELECT 
    458                                 `id`, 
    459                                 `uuid` 
    460                         FROM 
    461                                 `productcategories` 
    462                         "; 
    463  
    464                 $queryresult = $this->db->query($querystatement); 
    465  
    466                 while($therecord = $this->db->fetchArray($queryresult)){ 
    467  
    468                         $id = $therecord["id"]; 
    469                         $uuid = $therecord["uuid"]; 
    470  
    471                         $updatestatement = " 
    472                                 UPDATE 
    473                                         `products` 
    474                                 SET 
    475                                         `categoryid`='".$uuid."' 
    476                                 WHERE 
    477                                         `categoryid`='".$id."' 
    478                                 "; 
    479  
    480                         $this->db->query($updatestatement); 
    481  
    482                 }//end while 
    483  
    484         }//end method --v098UpdateProducts00 
    485  
    486449}//end class updateBMS 
    487450 
  • trunk/phpbms/modules/bms/install/updatev0.98.sql

    r695 r698  
    750750--end tablegroupings UPDATE-- 
    751751--tableoptions DELETE-- 
    752 DELETE FROM `tableoptions WHERE `name`='massEmail'; 
     752DELETE FROM `tableoptions` WHERE `name`='massEmail'; 
    753753--end tableoptions DELETe 
    754754--tableoptions INSERT-- 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.