Changeset 6654
- Timestamp:
- Jul 3, 2010, 2:20:38 PM (14 years ago)
- Location:
- trunk
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/admin/include/functions_upgrade.php
r6550 r6654 87 87 SELECT id 88 88 FROM '.PREFIX_TABLE.'plugins 89 WHERE state = "active"89 WHERE state = \'active\' 90 90 AND id NOT IN (\'' . implode('\',\'', $standard_plugins) . '\') 91 91 ;'; … … 102 102 $query = ' 103 103 UPDATE '.PREFIX_TABLE.'plugins 104 SET state= "inactive"104 SET state=\'inactive\' 105 105 WHERE id IN (\'' . implode('\',\'', $plugins) . '\') 106 106 ;'; -
trunk/include/functions_category.inc.php
r6363 r6654 432 432 $query=' 433 433 UPDATE '.OLD_PERMALINKS_TABLE.' SET last_hit=NOW(), hit=hit+1 434 WHERE permalink= "'.$permalinks[$i].'"AND cat_id='.$cat_id.'434 WHERE permalink=\''.$permalinks[$i].'\' AND cat_id='.$cat_id.' 435 435 LIMIT 1'; 436 436 pwg_query($query); -
trunk/picture.php
r6615 r6654 53 53 {// url given by file name 54 54 assert( !empty($page['image_file']) ); 55 $query .= 'file LIKE "' .55 $query .= 'file LIKE \'' . 56 56 str_replace(array('_','%'), array('/_','/%'), $page['image_file'] ). 57 '.% " ESCAPE "/"LIMIT 1';57 '.%\' ESCAPE \'/\' LIMIT 1'; 58 58 } 59 59 if ( ! ( $row = pwg_db_fetch_assoc(pwg_query($query)) ) ) -
trunk/plugins/LocalFilesEditor/maintain.inc.php
r5196 r6654 28 28 $query = ' 29 29 INSERT INTO ' . CONFIG_TABLE . ' (param,value,comment) 30 VALUES ( "LocalFilesEditor" , "off" , "LocalFiles Editor plugin parameters");';30 VALUES (\'LocalFilesEditor\' , \'off\' , \'LocalFiles Editor plugin parameters\');'; 31 31 32 32 pwg_query($query); … … 37 37 global $prefixeTable; 38 38 39 $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param= "LocalFilesEditor"LIMIT 1;';39 $query = 'DELETE FROM ' . CONFIG_TABLE . ' WHERE param=\'LocalFilesEditor\' LIMIT 1;'; 40 40 pwg_query($query); 41 41 } -
trunk/plugins/c13y_upgrade/initialize.inc.php
r6641 r6654 48 48 upper('.$conf['user_fields']['email'].') 49 49 having count(*) > 1 50 limit 0,150 limit 1 51 51 ;'; 52 52
Note: See TracChangeset
for help on using the changeset viewer.