Changeset 1536495
- Timestamp:
- 11/18/2016 06:52:33 PM (9 years ago)
- Location:
- seo-rets/branches/3.3.72
- Files:
-
- 5 edited
-
methods/includes/favorites/display.php (modified) (1 diff)
-
methods/includes/savesearch/display.php (modified) (1 diff)
-
methods/subscribe.php (modified) (1 diff)
-
seo-rets.php (modified) (2 diffs)
-
templates/listing.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
seo-rets/branches/3.3.72/methods/includes/favorites/display.php
r1536471 r1536495 79 79 </div> 80 80 <?php 81 $sql = "SELECT * FROM wp_sr_favorites WHERE user_id = " . $index;81 $sql = "SELECT * FROM {$wpdb->prefix}sr_favorites WHERE user_id = " . $index; 82 82 $res = SEO_RETS_Plugin::wpdbSelectResults($sql); 83 83 $sr = $this; -
seo-rets/branches/3.3.72/methods/includes/savesearch/display.php
r1536471 r1536495 80 80 81 81 <?php 82 $sql = "SELECT * FROM wp_sr_savesearch WHERE user_id = " . $index;82 $sql = "SELECT * FROM {$wpdb->prefix}sr_savesearch WHERE user_id = " . $index; 83 83 $res = SEO_RETS_Plugin::wpdbSelectResults($sql); 84 84 -
seo-rets/branches/3.3.72/methods/subscribe.php
r1536471 r1536495 53 53 date_default_timezone_set("US/Central"); 54 54 55 $sql_getListings = "SELECT * FROM wp_sr_stat_mls WHERE mls=" . $_GET['mls'];55 $sql_getListings = "SELECT * FROM {$wpdb->prefix}sr_stat_mls WHERE mls=" . $_GET['mls']; 56 56 $res_getListings = $this->wpdbSelectResults($sql_getListings); 57 57 $ar = $res_getListings[0]; -
seo-rets/branches/3.3.72/seo-rets.php
r1536471 r1536495 2189 2189 { 2190 2190 global $wpdb; 2191 $wpdb->query("DELETE FROM ` wp_options` where `option_name` LIKE '_transient_timeout_sr%' OR `option_name` LIKE '_transient_sr%';");2191 $wpdb->query("DELETE FROM `{$wpdb->prefix}options` where `option_name` LIKE '_transient_timeout_sr%' OR `option_name` LIKE '_transient_sr%';"); 2192 2192 $this->make_nonce(); 2193 2193 … … 2428 2428 2429 2429 $seo_rets_plugin = $this; 2430 global $wp_query ;2430 global $wp_query,$wpdb; 2431 2431 ob_start(); 2432 2432 $i = include("{$this->server_plugin_dir}/{$loc}"); -
seo-rets/branches/3.3.72/templates/listing.php
r1536471 r1536495 245 245 $users = get_option('sr_users'); 246 246 247 $sql_getListings = "SELECT * FROM wp_sr_stat_mls WHERE mls=" . $l->mls_id;247 $sql_getListings = "SELECT * FROM {$wpdb->prefix}sr_stat_mls WHERE mls=" . $l->mls_id; 248 248 $res_getListings = $sr->wpdbSelectResults($sql_getListings); 249 249 if (empty($res_getListings)) { … … 253 253 'mtype' => $type 254 254 ); 255 $lastId = $sr->wpdbInsertRow('wp_sr_stat_mls', $stat); 255 $lastId = $sr->wpdbInsertRow($wpdb->prefix . 'sr_stat_mls', $stat); 256 $sessionId = $sr->wpdbInsertRow($wpdb->prefix . 'sr_stat_sessions', $stat); 256 257 } 257 258 $ar = $res_getListings[0]; … … 262 263 'time' => date("Y-m-d H:i:s") 263 264 ); 264 $sr->wpdbInsertRow( 'wp_sr_stat_option', $statOptAdd);265 $sr->wpdbInsertRow($wpdb->prefix . 'sr_stat_option', $statOptAdd); 265 266 // if ($index !== false) { 266 267 // $users[$index]['favorites'];
Note: See TracChangeset
for help on using the changeset viewer.