Oyun adresinin son 3 kısmını alın, swf ise swf player kodlarını, dcr ise shockwave paley kodlarını koyun.
Ben php bilmiyorum, asp ile şu şekilde yaptım;
<%
uzanti = right(oyunadresi,3)
if uzanti = "swf" then
response.write "flash player kodları"
elseif uzanti = "dcr" then
response.wirte "shockwave player kodları"
end if
%>
Php bilen arkadaşlar rahatlıkla çevrecektir.
Edit: Haymac yazmış bile.