get_assoc($sql); $key = encrypt_key(time()); $pattern = '|\/games|is'; $replace = '/' . $key . '/games'; $new_custom = preg_replace($pattern, $replace, $game_info['g_custom']); $tpl->set('title', 'You are now playing '.$game_info['g_title'].' - '.$titlekeywords); $tpl->set('g_custom', $new_custom); $tpl->set('g_id', $en['g_id']); if (empty($game_info['g_custom'])) $tpl->set('g_custom', '

There was an error displaying this game

'); echo $tpl->fetch('header.tpl'); echo $tpl->fetch('play.tpl'); echo $tpl->fetch('footer.tpl'); ?>