вот какой код получился
Цитата |
---|
<?php
if(!$txt) { echo "Хакер чтоли?"; }else{ $f = fopen("" . $txt . "", "r"); $arrM = explode(",",fgets($f)); if ($arrM[1] == 1){ echo "<iframe src=\"" . $arrM[2] . "\" width=\"610\" height=\"400\" frameborder=\"0\"></iframe>"; fclose($f); }elseif ($arrM[1] == 2){ echo "<object width=\"610\" height=\"400\"><param name=\"movie\" value=\"" . $arrM[2] . "\"><param name=\"allowScriptAccess\" value=\"always\"><param name=\"wmode\" value=\"transparent\"><param name=\"allowFullScreen\" value=\"true\"><embed src=\"" . $arrM[2] . "\" allowFullScreen=\"true\" wmode=\"transparent\" width=\"610\" height=\"400\" type=\"application/x-shockwave-flash\"></object>"; fclose($f); }elseif ($arrM[1] == 3){ echo "<iframe src=\"" . $arrM[2] . "\" width=\"610\" height=\"400\" frameborder=\"0\" webkitAllowFullScreen mozallowfullscreen allowfullscreen scrolling=\"no\"></iframe>"; fclose($f); }elseif ($arrM[1] == 4){ echo "<iframe title=\"Kiwi player\" width=\"610\" height=\"400\" src=\"" . $arrM[2] . "\" frameborder=\"0\" allowfullscreen></iframe>"; fclose($f); }else{ echo "<iframe width=\"610\" height=\"400\" src=\"" . $arrM[2] . "\" frameborder=\"0\" allowfullscreen></iframe>"; fclose($f); } } ?> |