@@ 50-52 (lines=3) @@ | ||
47 | ||
48 | // Diable CSRF library form web money service |
|
49 | $ci = $this->ci; |
|
50 | if ($ci->uri->segment(1) == 'shop' && $ci->uri->segment(2) == 'cart' && $ci->uri->segment(3) == 'view' && $ci->input->get('result') == 'true' && $ci->input->get('pm') > 0) { |
|
51 | define('ICMS_DISBALE_CSRF', true); |
|
52 | } |
|
53 | // Support for robokassa |
|
54 | if ($ci->uri->segment(1) == 'shop' && $ci->uri->segment(2) == 'cart' && $ci->uri->segment(3) == 'view' && $ci->input->get('getResult') == 'true') { |
|
55 | define('ICMS_DISBALE_CSRF', true); |
|
@@ 54-56 (lines=3) @@ | ||
51 | define('ICMS_DISBALE_CSRF', true); |
|
52 | } |
|
53 | // Support for robokassa |
|
54 | if ($ci->uri->segment(1) == 'shop' && $ci->uri->segment(2) == 'cart' && $ci->uri->segment(3) == 'view' && $ci->input->get('getResult') == 'true') { |
|
55 | define('ICMS_DISBALE_CSRF', true); |
|
56 | } |
|
57 | if ($ci->uri->segment(1) == 'exchange') { |
|
58 | define('ICMS_DISBALE_CSRF', true); |
|
59 | } |
|
@@ 64-66 (lines=3) @@ | ||
61 | if ($ci->uri->segment(1) == 'shop' && $ci->uri->segment(2) == 'order' && $ci->uri->segment(3) == 'view' && $ci->input->post()) { |
|
62 | define('ICMS_DISBALE_CSRF', true); |
|
63 | } |
|
64 | if ($ci->uri->segment(1) == 'shop' && $ci->uri->segment(2) == 'cart' && $ci->uri->segment(3) == 'view' && $ci->input->get('succes') == 'true') { |
|
65 | define('ICMS_DISBALE_CSRF', true); |
|
66 | } |
|
67 | if ($ci->uri->segment(1) == 'shop' && $ci->uri->segment(2) == 'cart' && $ci->uri->segment(3) == 'view' && $ci->input->get('fail') == 'true') { |
|
68 | define('ICMS_DISBALE_CSRF', true); |
|
69 | } |
|
@@ 67-69 (lines=3) @@ | ||
64 | if ($ci->uri->segment(1) == 'shop' && $ci->uri->segment(2) == 'cart' && $ci->uri->segment(3) == 'view' && $ci->input->get('succes') == 'true') { |
|
65 | define('ICMS_DISBALE_CSRF', true); |
|
66 | } |
|
67 | if ($ci->uri->segment(1) == 'shop' && $ci->uri->segment(2) == 'cart' && $ci->uri->segment(3) == 'view' && $ci->input->get('fail') == 'true') { |
|
68 | define('ICMS_DISBALE_CSRF', true); |
|
69 | } |
|
70 | if ($ci->input->server('HTTP_REFERER') AND strpos($ci->input->server('HTTP_REFERER') . '', 'facebook.com')) { |
|
71 | define('ICMS_DISBALE_CSRF', true); |
|
72 | } |