Jump to content

Gerador De Player


Recommended Posts

Bom como ando vendo por aqui muita gente querendo um Gerador de Player funcional então venho aqui postar um bem útil que funciona com WHMSonic.

---> Caso tenha algum problema pode entrar em contato.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<style type="text/css">
<!--
* {
	margin: 0px;
	padding: 0px;
	font-family: Arial, Helvetica, sans-serif;
}
body {
	font-size: 12px;
}
.campo {
	width: 350px;
	border: 1px solid #CCCCCC;
	line-height: 24px;
	vertical-align: middle;
	height: 24px;
}
#centro {
	margin: auto;
	width: 500px;
	padding-top: 20px;
}
.botao {
	color: #333333;
	background-color: #FFA629;
	padding: 5px;
	border: 1px solid #333333;
	font-weight: bold;
}
.style1 {color: #999999}
-->
</style>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>Untitled Document</title>
</head>

<body>
<form id="form1" name="form1" method="post" action="">
  <div align="center">
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <p><img src="logo.fw.png" width="482" height="115" /></p>
    <p>&nbsp;</p>
    <p>&nbsp;</p>
    <table width="686" border="0" class="style1">
      <tr>
        <td width="150">IP DO STREAMING : </td>
        <td colspan="2"><label for="ip"></label>
          <input type="text" class="ip" name="ip" id="ip" style="width:400px;padding:10px 5px; color:#999; border:1px #0D1015 solid; background:none; font-size:16px;" placeholder="stream.mtekhost.com" /></td>
      </tr>
      <tr>
        <td>PORTA</td>
        <td colspan="2"><label for="porta"></label>
          <input type="text" class="ip" name="porta" id="porta" style="width:400px;padding:10px 5px; color:#999; border:1px #0D1015 solid; background:none; font-size:16px;" placeholder="ex: 9996" /></td>
      </tr>
      <tr>
        <td>Twitter</td>
        <td colspan="2"><label for="Twitter"></label>
          <input type="text" class="ip" name="twitter" id="twitter" style="width:400px;padding:10px 5px; color:#999; border:1px #0D1015 solid; background:none; font-size:16px;" placeholder="ex: Mtekhosting" /></td>
      </tr>
      <tr>
        <td>Facebook</td>
        <td colspan="2"><label for="Facebook"></label>
          <input type="text" class="ip" name="facebook" id="facebook" style="width:400px;padding:10px 5px; color:#999; border:1px #0D1015 solid; background:none; font-size:16px;" placeholder="ex: Mtekhost" /></td>
      </tr>
      <tr>
        <td colspan="2"><p align="center">
          <input type="submit" class="botao" name="Gerar" id="Gerar" value="Gerar Player" />
        </p></td>
        <td width="525"><div align="center">
          <? 
if($_POST["Gerar"])
{
	$IP = $_POST["ip"];
	$PORT = $_POST["porta"];
	$TWITTER = $_POST["twitter"];
	$FACEBOOK = $_POST["facebook"];
	if(empty($IP) or empty($PORT) or empty ($TWITTER) or empty ($FACEBOOK))
	{
		echo("Preencha todos os campos corretamente");
	}
	else
	{
		echo('Player Gerado com sucesso <br>
		  <!--Copyright © -->
<script type="text/javascript" src="player.js"></script>
	     <script type="text/javascript">
		    new WHMSonic({
			path : "http://mtekhost.com/gerar/WHMSonic.swf",
			source : "http://'.$IP.':'.$PORT.'",
			volume : 30,
			autoplay : true,
			width: 372,
			height: 60,
			twitter : "https://twitter.com/'.$TWITTER.'",
			facebook : "http://www.facebook.com/'.$FACEBOOK.'",
			logo : "http://whmsonic.com",
		    });
	        </script>
		<BR>
		<BR>
		
		<label for="textarea"></label>
  <textarea name="textarea" id="textarea" cols="70" rows="5">
  <!--Copyright © -->
<script type="text/javascript" src="player.js"></script>
	     <script type="text/javascript">
		    new WHMSonic({
			path : "http://mtekhost.com/gerar/WHMSonic.swf",
			source : "http://'.$IP.':'.$PORT.'",
			volume : 30,
			autoplay : true,
			width: 372,
			height: 60,
			twitter : "https://twitter.com/'.$TWITTER.'",
			facebook : "http://www.facebook.com/'.$FACEBOOK.'",
			logo : "http://whmsonic.com",
		    });
	        </script>
  </textarea>
  
  <br>
  
		
		');
	}
}
 ?>
        </div></td>
      </tr>
    </table>
  </div>
</form>
</body>
</html> 
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    • No registered users viewing this page.

×
×
  • Create New...

Important Information

Do you agree with our terms?

-