+ $_SESSION[$this->name . '_page'] = $curpage;
+ if ($curpage != $oldpage) {
+ if (isset($success) && $success) {
+ pl_redirect($baseurl . '/' . $this->inv_lookup[$curpage] . '/null/' . $success);
+ } else {
+ pl_redirect($baseurl . '/' . $this->inv_lookup[$curpage]);
+ }
+ } else if (!isset($page)) {
+ $page = $this->getPage($curpage);
+ }
+ if ($mode == 'ajax') {
+ pl_content_headers("text/html");
+ $smarty->changeTpl($this->layout, NO_SKIN);
+ $smarty->assign('wiz_run_ajax', true);
+ } else {
+ $smarty->changeTpl($this->layout);
+ }