Changeset 357
- Timestamp:
- 11/09/07 10:35:04 (5 years ago)
- Location:
- trunk/phpbms
- Files:
-
- 1 added
- 3 modified
-
ChangeLog (modified) (2 diffs)
-
install/updatev0.92.sql (added)
-
install/updatexml.php (modified) (1 diff)
-
modules/base/include/adminsettings_include.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/phpbms/ChangeLog
r323 r357 1 phpBMS v0.92 2 http://phpbms.org/browser/tags/phpbms-0.92 3 * Sales Order line item editing 4 * Sales Order line item re-ordering 5 6 The complete list of closed tickets can be found here: http://phpbms.org/query?status=closed&milestone=0.92 7 1 8 phpBMS v0.9 2 9 http://phpbms.org/browser/tags/phpbms-0.9 … … 10 17 * Recoded/formatted Sales Order PDFs 11 18 12 The complete list of closed tickets can be found here: http://phpbms.org/query?status=closed&milestone=0. 819 The complete list of closed tickets can be found here: http://phpbms.org/query?status=closed&milestone=0.9 13 20 14 21 phpBMS v0.8 -
trunk/phpbms/install/updatexml.php
r356 r357 254 254 255 255 //Processing Data Structure Changes 256 //$thereturn .= processSQLfile($db,"updatev0.9.sql");256 $thereturn .= processSQLfile($db,"updatev0.92.sql"); 257 257 258 258 //Updating Module Table -
trunk/phpbms/modules/base/include/adminsettings_include.php
r326 r357 84 84 if(defined(strtoupper($settingname))){ 85 85 if(constant(strtoupper($settingname)) != $settingvalue){ 86 $updatestatement = "UPDATE settings SET value ='".$settingvalue."' WHERE name='".mysql_real_escape_string($settingname)."'"; 86 87 $updatestatement = " 88 UPDATE 89 settings 90 SET 91 value ='".$settingvalue."' 92 WHERE 93 name='".mysql_real_escape_string($settingname)."'"; 94 87 95 $updateresult = $this->db->query($updatestatement); 88 } 96 97 if(!$this->db->affectedRows()){ 98 99 //check to see why the update did not work 100 $querystatement = " 101 SELECT 102 name 103 FROM 104 settings 105 WHERE 106 name = '".mysql_real_escape_string($settingname)."'"; 107 108 $queryresult = $this->db->query($querystatement); 109 110 if(!$this->db->numRows($queryresult)){ 111 112 //insert the setting if need be 113 $insertstatement =" 114 INSERT INTO 115 settings ( 116 `value`, 117 `name`, 118 ) VALUES { 119 '".$settingvalue."', 120 '".mysql_real_escape_string($settingname)."' 121 }"; 122 123 $this->db-query($insertstatement); 124 125 }//end if 126 127 }//end if 128 129 }//end if 89 130 } 90 131 }//end foreach