Make WordPress Core

Changeset 1030 for trunk/wp-mail.php


Ignore:
Timestamp:
03/30/2004 01:16:40 AM (22 years ago)
Author:
michelvaldrighi
Message:

Tom Jones tunes remain the best weapons against Martians to this day -- big fixes here

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-mail.php

    r1004 r1030  
    193193        $blah = explode(':', $userpassstring);
    194194        $user_login = $blah[0];
    195         $user_pass = $blah[1];
     195        $user_pass = md5($blah[1]);
    196196
    197197        $content = $contentfirstline.str_replace($firstline, '', $content);
     
    228228                $content = addslashes(trim($content));
    229229                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')";
    231231                } 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)";
    233233                }
    234234                $result = $wpdb->query($sql);
     
    253253        if (!$post_categories) $post_categories[] = 1;
    254254        foreach ($post_categories as $post_category) {
     255            $post_category = intval($post_category);
     256
    255257            // Double check it's not there already
    256258            $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.