All pastes #926578 Raw Edit

Stuff

public text v1 · immutable
·published 2008-03-03 19:28 UTC
rendered paste body
/* 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));
}