Added reCAPTCHA (still needs some testing), updated links (finally), fixed one more invalid token error, fix very minor "exploit"
git-svn-id: http://kusabax.cultnet.net/svn/repo/stable@306 73d99b7e-4f53-4972-b7b7-2ecd3c4d89ee
This commit is contained in:
1 parent
9d84e86b7f
commit
0248cd497a
15 files changed
+336
-15
No files matched your search
@@ -686,6 +686,11 @@ class Board {
|
||||
$oekposts = $tc_db->GetAll("SELECT `id` FROM `" . KU_DBPREFIX."posts` WHERE `boardid` = " . $this->board['id']." AND (`id` = ".$replythread." OR `parentid` = ".$replythread.") AND `file` != '' AND `file` != 'removed' AND `file_type` IN ('jpg', 'gif', 'png') AND `IS_DELETED` = 0 ORDER BY `parentid` ASC, `timestamp` ASC");
|
||||
$this->dwoo_data->assign('oekposts', $oekposts);
|
||||
}
|
||||
if ($this->board['enablecaptcha'] == 1) {
|
||||
require_once(KU_ROOTDIR.'recaptchalib.php');
|
||||
$publickey = "6LdVg8YSAAAAAOhqx0eFT1Pi49fOavnYgy7e-lTO";
|
||||
$this->dwoo_data->assign('recaptcha', recaptcha_get_html($publickey));
|
||||
}
|
||||
if(($this->board['type'] == 1 && $replythread == 0) || $this->board['type'] != 1) {
|
||||
$postbox .= $this->dwoo->get(KU_TEMPLATEDIR . '/' . $this->board['text_readable'] . '_post_box.tpl', $this->dwoo_data);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user