@@ 74-85 (lines=12) @@ | ||
71 | * @author DevImageCms |
|
72 | * @copyright (c) 2013, ImageCMS |
|
73 | */ |
|
74 | private function writeCookies() { |
|
75 | $this->load->helper('cookie'); |
|
76 | if (!strstr($this->uri->uri_string(), 'wishlist') && !strstr($this->uri->uri_string(), 'sync')) { |
|
77 | $cookie = [ |
|
78 | 'name' => 'url', |
|
79 | 'value' => $this->uri->uri_string(), |
|
80 | 'expire' => '15000', |
|
81 | 'prefix' => '', |
|
82 | ]; |
|
83 | @$this->input->set_cookie($cookie); |
|
84 | } |
|
85 | } |
|
86 | ||
87 | /** |
|
88 | * get all users wish lists |
@@ 159-171 (lines=13) @@ | ||
156 | /** |
|
157 | * Write cookies for auth |
|
158 | */ |
|
159 | private function writeCookies() { |
|
160 | ||
161 | $this->load->helper('cookie'); |
|
162 | if (!strstr($this->uri->uri_string(), 'socauth/vk')) { |
|
163 | $cookie = [ |
|
164 | 'name' => 'url', |
|
165 | 'value' => $this->input->server('HTTP_REFERER'), |
|
166 | 'expire' => '15000000', |
|
167 | 'prefix' => '', |
|
168 | ]; |
|
169 | $this->input->set_cookie($cookie); |
|
170 | } |
|
171 | } |
|
172 | ||
173 | /** |
|
174 | * rendering link buttons |