Stuff
public text v1 · immutable/* Set this page for the login redirections */
if ($this->uri->segment(1) != "user" and !preg_match('/edit|add_product/', $this->uri->segment(2)))
{
$this_page = $_SERVER['REQUEST_URI'];
$this->session->set('last_page', ($this_page == '/') ? '/index' : str_replace('.html', '', $this_page));
}