diff options
| author | Savetheinternet <savetheinternet@tinyboard.org> | 2011-11-19 01:35:22 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@tinyboard.org> | 2011-11-19 01:35:22 +1100 |
| commit | d8fe3ff8d82b5437fd83de3716728cdff0885d03 (patch) | |
| tree | 706d6658fe1d1f8d88a803b6e9e1a2798aec1365 /inc/functions.php | |
| parent | b966670fe4c72de062374b044e364757b14cfe09 (diff) | |
Ability to "move" a thread to another board (2/3 done)
Diffstat (limited to 'inc/functions.php')
| -rw-r--r-- | inc/functions.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/functions.php b/inc/functions.php index f9b16c8a..c59f6036 100644 --- a/inc/functions.php +++ b/inc/functions.php @@ -614,9 +614,9 @@ $query->bindValue(':name', $post['name']); $query->bindValue(':trip', $post['trip']); $query->bindValue(':body', $post['body']); - $query->bindValue(':time', time(), PDO::PARAM_INT); + $query->bindValue(':time', $post['time'] ? $post['time'] : time(), PDO::PARAM_INT); $query->bindValue(':password', $post['password']); - $query->bindValue(':ip', $_SERVER['REMOTE_ADDR']); + $query->bindValue(':ip', $post['ip'] ? $post['ip'] : $_SERVER['REMOTE_ADDR']); if($post['mod'] && $post['sticky']) { $query->bindValue(':sticky', 1, PDO::PARAM_INT); |
