$conn, 'smarty' => $smarty ); $acts = new Model($opts); $acts_ms = new Model_ms($opts); $f = $_REQUEST['f']; switch ($f) { case 'regist': $acts->do_create_member_form(); break; case 'add': $acts->do_creat_member(); break; case 'check_member': $acts_ms->check_member(); break; case 'forgot_password': $acts->do_forgot_password(); break; case 'send_password': $acts->do_send_password(); break; default: $acts->do_create_member_form(); break; } ?>