|
@@ 1810-1818 (lines=9) @@
|
| 1807 |
|
$this->trigger_events('set_lang'); |
| 1808 |
|
|
| 1809 |
|
// if the user_expire is set to zero we'll set the expiration two years from now. |
| 1810 |
|
if($this->config->item('user_expire', 'ion_auth') === 0) |
| 1811 |
|
{ |
| 1812 |
|
$expire = (60*60*24*365*2); |
| 1813 |
|
} |
| 1814 |
|
// otherwise use what is set |
| 1815 |
|
else |
| 1816 |
|
{ |
| 1817 |
|
$expire = $this->config->item('user_expire', 'ion_auth'); |
| 1818 |
|
} |
| 1819 |
|
|
| 1820 |
|
set_cookie(array( |
| 1821 |
|
'name' => 'lang_code', |
|
@@ 1880-1888 (lines=9) @@
|
| 1877 |
|
if ($this->db->affected_rows() > -1) |
| 1878 |
|
{ |
| 1879 |
|
// if the user_expire is set to zero we'll set the expiration two years from now. |
| 1880 |
|
if($this->config->item('user_expire', 'ion_auth') === 0) |
| 1881 |
|
{ |
| 1882 |
|
$expire = (60*60*24*365*2); |
| 1883 |
|
} |
| 1884 |
|
// otherwise use what is set |
| 1885 |
|
else |
| 1886 |
|
{ |
| 1887 |
|
$expire = $this->config->item('user_expire', 'ion_auth'); |
| 1888 |
|
} |
| 1889 |
|
|
| 1890 |
|
set_cookie(array( |
| 1891 |
|
'name' => $this->config->item('identity_cookie_name', 'ion_auth'), |