Chamar qualquer arquivo PHP
Me ajudem por favor.
Meu conhecimento em PHP é Básico e não sei como trocar isso!
Quero modificar esse script para chamar qualquer tipo de arquivo!
Tenho o painel de admin que posto o arquivo mas só roda SWF
Entenderam ?
<?
include ('../includes/BancoDeDados.php');
include ('../includes/Funcoes.php');
include ('../includes/Config.php');
include ('../includes/Imagens.php');
include ('../includes/Validacoes.php');
$dados = db_dados("SELECT * FROM tbedicao_digital WHERE id_edicao=".(int)$_GET['id']);
$arquivo = '../arquivos/edicao_digital/'.substr($dados['arquivo'],0,strlen($dados['arquivo'])-4);
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "[http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">](http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd)
<html xmlns="[http://www.w3.org/1999/xhtml"](http://www.w3.org/1999/xhtml) xml:lang="en" lang="en">
<head>
<title>Portal do Sudeste</title>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<style type="text/css" media="screen" title="CSS do Site">
* { margin:0; padding:0; border:0; list-style:none; font-family:'Trebuchet MS'; }
body, html, table, tr, td, #canvas, table, tr, td, #swf { height:100%; width:100%; }
</style>
<script src="../js/AC_RunActiveContent.js" type="text/javascript"></script>
<script src="../js/scripts.js" type="text/javascript"></script>
</head>
<body>
<table id="canvas" border="0" cellpadding="0" cellspacing="0">
<tr>
<td align="center" valign="middle" >
<div id="swf">
<script type="text/javascript">
AC_FL_RunContent( 'codebase','http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0','width','100%','height','100%','src','<?=$arquivo;?>','quality','high','pluginspage','http://www.macromedia.com/go/getflashplayer','movie','<?=$arquivo;?>','wmode','transparent' ); //end AC code
window.moveTo(0,0);
window.resizeTo(screen.width,screen.height);
</script>
<noscript>
<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="[http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0"](http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0) width="100%" height="100%">
<param name="movie" value="<?=$arquivo;?>.swf" />
<param name="quality" value="high" />
<param name="wmode" value="transparent" />
<embed src="<?=$arquivo;?>.swf" quality="high" pluginspage="[http://www.macromedia.com/go/getflashplayer"](http://www.macromedia.com/go/getflashplayer) type="application/x-shockwave-flash" width="100%" height="100%"></embed>
</object>
</noscript>
</div>
</td>
</tr>
</table>
</body>
</html>Discussão (15)
Carregando comentários...