function showInvite($page, $hidden) { if (isset($_REQUEST['invite_code'])) { $data['message'] = 'Incorrect invitation code.'; $data['invite_code'] = $this->SfStr->getSafeString($_REQUEST['invite_code'], SAFE_STRING_TEXT); } $data['page'] = $page; if (is_array($hidden)) { foreach ($hidden as $key => $val) { $data['hiddenkey'][] = $key; $data['hiddenval'][] = $val; } } $this->smarty->assign_by_ref('data', $data); return $this->smarty->Fetch($this->template . '/invite_code.tpl'); }