If you're not going to use $_GET['th'], you need to change this line to use $themeID instead.