- Timestamp:
- Jul 5, 2010, 11:18:45 PM (14 years ago)
- Location:
- branches/2.1
- Files:
-
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/2.1/admin/include/functions.php
r6152 r6665 295 295 $query = ' 296 296 DELETE FROM '.SESSIONS_TABLE.' 297 WHERE data LIKE "pwg_uid|i:'.(int)$user_id.';%"297 WHERE data LIKE \'pwg_uid|i:'.(int)$user_id.';%\' 298 298 ;'; 299 299 pwg_query($query); -
branches/2.1/admin/include/functions_permalinks.php
r6551 r6665 48 48 FROM '.OLD_PERMALINKS_TABLE.' op INNER JOIN '.CATEGORIES_TABLE.' c 49 49 ON op.cat_id=c.id 50 WHERE op.permalink= "'.$permalink.'"50 WHERE op.permalink=\''.$permalink.'\' 51 51 LIMIT 1'; 52 52 $result = pwg_query($query); -
branches/2.1/include/functions_category.inc.php
r6655 r6665 407 407 { 408 408 if ( !empty($in) ) $in.=', '; 409 $in .= ' "'.$permalink.'"';409 $in .= '\''.$permalink.'\''; 410 410 } 411 411 $query =' -
branches/2.1/include/functions_search.inc.php
r6519 r6665 394 394 if ( strlen($tokens[$i])==0) 395 395 continue; 396 $clauses[] = $field.' LIKE "'.$before.addslashes($tokens[$i]).$after.'"';396 $clauses[] = $field.' LIKE \''.$before.addslashes($tokens[$i]).$after.'\''; 397 397 } 398 398 … … 435 435 436 436 // Step 1 - first we find matches in #images table =========================== 437 $where_clauses='MATCH(i.name, i.comment) AGAINST( "'.$q.'"IN BOOLEAN MODE)';437 $where_clauses='MATCH(i.name, i.comment) AGAINST( \''.$q.'\' IN BOOLEAN MODE)'; 438 438 if (!empty($q_like_clause)) 439 439 { … … 453 453 $query = ' 454 454 SELECT i.id, 455 MATCH(i.name, i.comment) AGAINST( "'.$q.'"IN BOOLEAN MODE) AS weight455 MATCH(i.name, i.comment) AGAINST( \''.$q.'\' IN BOOLEAN MODE) AS weight 456 456 FROM '.IMAGES_TABLE.' i 457 457 WHERE '.implode("\n AND ", $where_clauses); … … 506 506 INNER JOIN '.USER_CACHE_CATEGORIES_TABLE.' ON id=cat_id 507 507 WHERE user_id='.$user['id'].' 508 AND MATCH(name, comment) AGAINST( "'.$q.'"IN BOOLEAN MODE)'.508 AND MATCH(name, comment) AGAINST( \''.$q.'\' IN BOOLEAN MODE)'. 509 509 get_sql_condition_FandF ( 510 510 array( 'visible_categories' => 'cat_id' ), "\n AND" -
branches/2.1/include/section_init.inc.php
r6410 r6665 260 260 FROM '.CATEGORIES_TABLE.' 261 261 WHERE 262 uppercats LIKE "'.$page['category']['uppercats'].',%"'262 uppercats LIKE \''.$page['category']['uppercats'].',%\' ' 263 263 .get_sql_condition_FandF( 264 264 array -
branches/2.1/plugins/LocalFilesEditor/update_config.php
r6364 r6665 38 38 $query = ' 39 39 UPDATE ' . CONFIG_TABLE . ' 40 SET value = "' . $_POST['editarea'] . '"41 WHERE param= "LocalFilesEditor"40 SET value = \'' . $_POST['editarea'] . '\' 41 WHERE param=\'LocalFilesEditor\' 42 42 LIMIT 1'; 43 43 pwg_query($query);
Note: See TracChangeset
for help on using the changeset viewer.