diff --git a/upload/engine/core.class.php b/upload/engine/core.class.php index e17652a..8e7933a 100644 --- a/upload/engine/core.class.php +++ b/upload/engine/core.class.php @@ -15,6 +15,8 @@ public $csrf_time = 3600; + public $csrf_disable = false; + public $captcha = array( 0 => "---", 1 => "ReCaptcha", @@ -309,6 +311,7 @@ * При ошибке возвращается на главную страницу с сообщение "Hacking Attempt!" */ public function csrf_check(){ + if($this->csrf_disable){ return; } if($_SERVER['REQUEST_METHOD']=='POST'){ if(!isset($_POST['mcr_secure'])){ $this->notify($this->lng['e_hack']); }