mirror of
https://github.com/claudehohl/Stikked.git
synced 2025-04-25 20:41:20 -05:00
don't use google captcha on encrypted pastes
This commit is contained in:
parent
6b1b787023
commit
9ea9327a1d
@ -619,6 +619,11 @@ class Main extends CI_Controller
|
||||
}
|
||||
$data = $this->pastes->getPaste(2, true, $this->uri->segment(3) == 'diff');
|
||||
$data['reply_form'] = $this->_form_prep($data['lang_code'], 'Re: ' . $data['title'], $data['raw'], $data['pid']);
|
||||
|
||||
if ($data['private'] == 1)
|
||||
{
|
||||
$data['reply_form']['use_recaptcha'] = 0;
|
||||
}
|
||||
$this->load->view('view/view', $data);
|
||||
}
|
||||
else
|
||||
|
@ -253,6 +253,7 @@ class Pastes extends CI_Model
|
||||
$data['lang'] = $this->languages->code_to_description($row['lang']);
|
||||
$data['paste'] = $this->process->syntax(htmlspecialchars_decode($row['raw']) , $row['lang']);
|
||||
$data['created'] = $row['created'];
|
||||
$data['private'] = $row['private'];
|
||||
$data['expire'] = $row['expire'];
|
||||
$data['toexpire'] = $row['toexpire'];
|
||||
$data['url'] = $this->_get_url($row['pid']);
|
||||
|
Loading…
x
Reference in New Issue
Block a user