function confirmplayer(&$smarty) { $tournaments = new tournaments(trim($_REQUEST['id'])); $tournaments->confirm_player($_REQUEST['sid']); }