summaryrefslogtreecommitdiff
path: root/post.php
diff options
context:
space:
mode:
authorSavetheinternet <savetheinternet@n0v4.com>2010-11-30 20:44:53 +1100
committerPaul Merrill <napalminc@gmail.com>2010-12-01 04:14:16 -0800
commit8809b2e50e2c0bb725aeb09d82f6c352e3110332 (patch)
treef71736bc9c88a59fb109674d5e64d31b771d62cc /post.php
parent09880ef231668bd8cd9ec7cb7bb77bf40369f6c8 (diff)
Bug fix. Multiple boards now work.
Diffstat (limited to 'post.php')
-rw-r--r--post.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/post.php b/post.php
index 251c54b4..fcaf3bf5 100644
--- a/post.php
+++ b/post.php
@@ -70,6 +70,7 @@
$post['password'] = $_POST['password'];
$post['filename'] = $_FILES['file']['name'];
$post['has_file'] = $OP || !empty($_FILES['file']['tmp_name']);
+ $post['board'] = $_POST['board'];
if($post['has_file']) {
$size = $_FILES['file']['size'];
@@ -80,6 +81,7 @@
'maxsz'=>commaize(MAX_FILESIZE))));
}
+ sql_open();
if(!openBoard($post['board'])) error(ERROR_NOBOARD);
$trip = generate_tripcode($post['name']);
@@ -185,7 +187,6 @@
// Todo: Validate some more, remove messy code, allow more specific configuration
// MySQLify
- sql_open();
mysql_safe_array($post);
$id = post($post, $OP);