Changeset 1030 for trunk/wp-mail.php
- Timestamp:
- 03/30/2004 01:16:40 AM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-mail.php (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-mail.php
r1004 r1030 193 193 $blah = explode(':', $userpassstring); 194 194 $user_login = $blah[0]; 195 $user_pass = $blah[1];195 $user_pass = md5($blah[1]); 196 196 197 197 $content = $contentfirstline.str_replace($firstline, '', $content); … … 228 228 $content = addslashes(trim($content)); 229 229 if($flat > 500) { 230 $sql = "INSERT INTO $tableposts (post_author, post_date, post_date_gmt, post_content, post_title, post_ category) VALUES ($post_author, '$post_date', '$post_date_gmt', '$content', '$post_title', $post_category)";230 $sql = "INSERT INTO $tableposts (post_author, post_date, post_date_gmt, post_content, post_title, post_modified, post_modified_gmt) VALUES ($post_author, '$post_date', '$post_date_gmt', '$content', '$post_title', '$post_date', '$post_date_gmt')"; 231 231 } else { 232 $sql = "INSERT INTO $tableposts (post_author, post_date, post_date_gmt, post_content, post_title, post_ category, post_lat, post_lon) VALUES ($post_author, '$post_date', '$post_date_gmt', '$content', '$post_title', $post_category, $flat, $flon)";232 $sql = "INSERT INTO $tableposts (post_author, post_date, post_date_gmt, post_content, post_title, post_modified, post_modified_gmt, post_lat, post_lon) VALUES ($post_author, '$post_date', '$post_date_gmt', '$content', '$post_title', '$post_date', '$post_date_gmt', $flat, $flon)"; 233 233 } 234 234 $result = $wpdb->query($sql); … … 253 253 if (!$post_categories) $post_categories[] = 1; 254 254 foreach ($post_categories as $post_category) { 255 $post_category = intval($post_category); 256 255 257 // Double check it's not there already 256 258 $exists = $wpdb->get_row("SELECT * FROM $tablepost2cat WHERE post_id = $post_ID AND category_id = $post_category");
Note: See TracChangeset
for help on using the changeset viewer.