phpBMS

Show
Ignore:
Timestamp:
05/05/09 12:26:06 (3 years ago)
Author:
nate
Message:
  • removed widget's default import
  • For new tabledefs, the import command is disabled by default
  • Products should now use the general import page.
Files:
1 modified

Legend:

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

    r513 r515  
    345345 
    346346 
    347                 function insertRecord($variables,$createdby = NULL, $overrideID = false){ 
     347                function insertRecord($variables,$createdby = NULL, $overrideID = false, $replace = false){ 
    348348 
    349349                        if($createdby === NULL) 
     
    396396                        $insertvalues = substr($insertvalues, 0, strlen($insertvalues)-2); 
    397397 
    398                         $insertstatement = "INSERT INTO ".$this->maintable." (".$fieldlist.") VALUES (".$insertvalues.")"; 
     398                        if($replace) 
     399                                $insertstatement = "REPLACE"; 
     400                        else 
     401                                $insertstatement = "INSERT"; 
     402 
     403                        $insertstatement .= " INTO ".$this->maintable." (".$fieldlist.") VALUES (".$insertvalues.")"; 
    399404                        $insertresult = $this->db->query($insertstatement); 
    400405 
phpBMS vulnerability assesment provided by Orvant Inc. Copyright © 2010 Kreotek, LLC. All Rights reserved.