diff options
| author | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-30 20:44:53 +1100 |
|---|---|---|
| committer | Savetheinternet <savetheinternet@n0v4.com> | 2010-11-30 20:44:53 +1100 |
| commit | 38ac7187fdccf4a672a3c69763035660df53e6f8 (patch) | |
| tree | 73821dc0b2eb28651e84c2812a19c7374d32b317 /post.php | |
| parent | d3526e020ad977c04387f4df964ec707307557f2 (diff) | |
Bug fix. Multiple boards now work.
Diffstat (limited to 'post.php')
| -rw-r--r-- | post.php | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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); |
