Zeile 6 | Zeile 6 |
---|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* Website: http://mybb.com * License: http://mybb.com/about/license *
|
* $Id: post.php 5380 2011-02-21 12:04:43Z Tomm $
| * $Id: post.php 5412 2011-03-20 03:53:36Z jammerx2 $
|
*/
// Disallow direct access to this file for security reasons
| */
// Disallow direct access to this file for security reasons
|
Zeile 760 | Zeile 760 |
---|
{ $visible = 0; }
|
{ $visible = 0; }
|
| } $post['pid'] = intval($post['pid']); $post['uid'] = intval($post['uid']);
if($post['pid'] > 0) { $query = $db->simple_select("posts", "tid", "pid='{$post['pid']}' AND uid='{$post['uid']}' AND visible='-2'"); $draft_check = $db->fetch_field($query, "tid"); } else { $draft_check = false;
|
} if($this->method != "update" && $visible == 1)
| } if($this->method != "update" && $visible == 1)
|
Zeile 778 | Zeile 791 |
---|
$update_query['edituid'] = intval($post['uid']); $update_query['edittime'] = TIME_NOW; $query = $db->update_query("posts", $update_query, "pid='".$double_post['pid']."'");
|
$update_query['edituid'] = intval($post['uid']); $update_query['edittime'] = TIME_NOW; $query = $db->update_query("posts", $update_query, "pid='".$double_post['pid']."'");
|
| if($draft_check) { $db->delete_query("posts", "pid='".$post['pid']."'"); }
|
// Assign any uploaded attachments with the specific posthash to the merged post. if($double_post['posthash'])
| // Assign any uploaded attachments with the specific posthash to the merged post. if($double_post['posthash'])
|
Zeile 825 | Zeile 843 |
---|
} $db->update_query("users", $update_array, "uid='{$post['uid']}'", 1, true);
|
} $db->update_query("users", $update_array, "uid='{$post['uid']}'", 1, true);
|
}
$post['pid'] = intval($post['pid']); $post['uid'] = intval($post['uid']);
if($post['pid'] > 0) { $query = $db->simple_select("posts", "tid", "pid='{$post['pid']}' AND uid='{$post['uid']}' AND visible='-2'"); $draft_check = $db->fetch_field($query, "tid"); } else { $draft_check = false;
| |
}
// Are we updating a post which is already a draft? Perhaps changing it into a visible post?
| }
// Are we updating a post which is already a draft? Perhaps changing it into a visible post?
|