-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
203 additions
and
61 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
class CleanTalk_ControllerPublic_CleanTalkForum extends XFCP_CleanTalk_ControllerPublic_CleanTalkForum { | ||
|
||
public function actionCreateThread() { | ||
$options = XenForo_Application::getOptions(); | ||
if ($options->get('cleantalk', 'enabled_comm')) { | ||
XenForo_Application::getSession()->set('ct_submit_comment_time', time()); | ||
$field_name = CleanTalk_Base_CleanTalk::getCheckjsName(); | ||
$ct_check_def = CleanTalk_Base_CleanTalk::getCheckjsDefaultValue(); | ||
setcookie($field_name, $ct_check_def, 0, '/'); | ||
} | ||
return parent::actionCreateThread(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
class CleanTalk_ControllerPublic_CleanTalkPost extends XFCP_CleanTalk_ControllerPublic_CleanTalkPost { | ||
|
||
public function actionEdit() { | ||
$options = XenForo_Application::getOptions(); | ||
if ($options->get('cleantalk', 'enabled_comm')) { | ||
XenForo_Application::getSession()->set('ct_submit_comment_time', time()); | ||
$field_name = CleanTalk_Base_CleanTalk::getCheckjsName(); | ||
$ct_check_def = CleanTalk_Base_CleanTalk::getCheckjsDefaultValue(); | ||
setcookie($field_name, $ct_check_def, 0, '/'); | ||
} | ||
return parent::actionEdit(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
class CleanTalk_ControllerPublic_CleanTalkRegister extends XFCP_CleanTalk_ControllerPublic_CleanTalkRegister { | ||
|
||
protected function _getRegisterFormResponse(array $fields, array $errors = array()) { | ||
$options = XenForo_Application::getOptions(); | ||
if ($options->get('cleantalk', 'enabled_reg')) { | ||
XenForo_Application::getSession()->set('ct_submit_register_time', time()); | ||
$field_name = CleanTalk_Base_CleanTalk::getCheckjsName(); | ||
$ct_check_def = CleanTalk_Base_CleanTalk::getCheckjsDefaultValue(); | ||
setcookie($field_name, $ct_check_def, 0, '/'); | ||
} | ||
return parent::_getRegisterFormResponse($fields, $errors); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
<?php | ||
|
||
class CleanTalk_ControllerPublic_CleanTalkThread extends XFCP_CleanTalk_ControllerPublic_CleanTalkThread { | ||
|
||
public function actionReply() { | ||
$options = XenForo_Application::getOptions(); | ||
if ($options->get('cleantalk', 'enabled_comm')) { | ||
XenForo_Application::getSession()->set('ct_submit_comment_time', time()); | ||
$field_name = CleanTalk_Base_CleanTalk::getCheckjsName(); | ||
$ct_check_def = CleanTalk_Base_CleanTalk::getCheckjsDefaultValue(); | ||
setcookie($field_name, $ct_check_def, 0, '/'); | ||
} | ||
return parent::actionReply(); | ||
} | ||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.